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 : 2763222 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 (3807863) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3807863) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405398 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3807863'] with mtr_portfolio_ids : ['27405398'] and first list_photo_ids : [] new path : /proc/2763222/ Name: python3 Umask: 0002 State: R (running) Tgid: 2763222 Ngid: 0 Pid: 2763222 PPid: 2763220 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2763222 NSpid: 2763222 NSpgid: 2762555 NSsid: 2762555 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98308 kB VmRSS: 98308 kB RssAnon: 59844 kB RssFile: 38464 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 560 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: 48 nonvoluntary_ctxt_switches: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2763222', 'Ngid': '0', 'Pid': '2763222', 'PPid': '2763220', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2763222', 'NSpid': '2763222', 'NSpgid': '2762555', 'NSsid': '2762555', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98308 kB', 'VmRSS': '98308 kB', 'RssAnon': '59844 kB', 'RssFile': '38464 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '560 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': '48', 'nonvoluntary_ctxt_switches': '103'} ('datou_batch_current', '2763222', '1106856', '0', '1106856', '865608', '98308', b'', 'marlene', '3807863') 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 (27405398) 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 (3807863 ) ) 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 (27405398) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1387181627, 'portfolio_id': 27405398}, {'photo_id': 1387181591, 'portfolio_id': 27405398}, {'photo_id': 1387181586, 'portfolio_id': 27405398}, {'photo_id': 1387181577, 'portfolio_id': 27405398}, {'photo_id': 1387181568, 'portfolio_id': 27405398}, {'photo_id': 1387181564, 'portfolio_id': 27405398}, {'photo_id': 1387181560, 'portfolio_id': 27405398}, {'photo_id': 1387181556, 'portfolio_id': 27405398}, {'photo_id': 1387181552, 'portfolio_id': 27405398}, {'photo_id': 1387181540, 'portfolio_id': 27405398}, {'photo_id': 1387181535, 'portfolio_id': 27405398}, {'photo_id': 1387181373, 'portfolio_id': 27405398}, {'photo_id': 1387181359, 'portfolio_id': 27405398}, {'photo_id': 1387181355, 'portfolio_id': 27405398}, {'photo_id': 1387181350, 'portfolio_id': 27405398}, {'photo_id': 1387181329, 'portfolio_id': 27405398}, {'photo_id': 1387181323, 'portfolio_id': 27405398}, {'photo_id': 1387181320, 'portfolio_id': 27405398}, {'photo_id': 1387181317, 'portfolio_id': 27405398}, {'photo_id': 1387181294, 'portfolio_id': 27405398}, {'photo_id': 1387181277, 'portfolio_id': 27405398}, {'photo_id': 1387181220, 'portfolio_id': 27405398}, {'photo_id': 1387181217, 'portfolio_id': 27405398}, {'photo_id': 1387181213, 'portfolio_id': 27405398}, {'photo_id': 1387181183, 'portfolio_id': 27405398}, {'photo_id': 1387181181, 'portfolio_id': 27405398}, {'photo_id': 1387181179, 'portfolio_id': 27405398}, {'photo_id': 1387181178, 'portfolio_id': 27405398}, {'photo_id': 1387181175, 'portfolio_id': 27405398}, {'photo_id': 1387181171, 'portfolio_id': 27405398}, {'photo_id': 1387181159, 'portfolio_id': 27405398}, {'photo_id': 1387181156, 'portfolio_id': 27405398}, {'photo_id': 1387181152, 'portfolio_id': 27405398}, {'photo_id': 1387181148, 'portfolio_id': 27405398}, {'photo_id': 1387181145, 'portfolio_id': 27405398}, {'photo_id': 1387181141, 'portfolio_id': 27405398}, {'photo_id': 1387181118, 'portfolio_id': 27405398}, {'photo_id': 1387181115, 'portfolio_id': 27405398}, {'photo_id': 1387181110, 'portfolio_id': 27405398}, {'photo_id': 1387181106, 'portfolio_id': 27405398}, {'photo_id': 1387181086, 'portfolio_id': 27405398}, {'photo_id': 1387181083, 'portfolio_id': 27405398}, {'photo_id': 1387181079, 'portfolio_id': 27405398}, {'photo_id': 1387181064, 'portfolio_id': 27405398}, {'photo_id': 1387181057, 'portfolio_id': 27405398}, {'photo_id': 1387181016, 'portfolio_id': 27405398}, {'photo_id': 1387181014, 'portfolio_id': 27405398}, {'photo_id': 1387181008, 'portfolio_id': 27405398}, {'photo_id': 1387181006, 'portfolio_id': 27405398}, {'photo_id': 1387181005, 'portfolio_id': 27405398}, {'photo_id': 1387180999, 'portfolio_id': 27405398}, {'photo_id': 1387180951, 'portfolio_id': 27405398}, {'photo_id': 1387180948, 'portfolio_id': 27405398}, {'photo_id': 1387180942, 'portfolio_id': 27405398}, {'photo_id': 1387180934, 'portfolio_id': 27405398}, {'photo_id': 1387180913, 'portfolio_id': 27405398}, {'photo_id': 1387180910, 'portfolio_id': 27405398}, {'photo_id': 1387180907, 'portfolio_id': 27405398}, {'photo_id': 1387180899, 'portfolio_id': 27405398}, {'photo_id': 1387180887, 'portfolio_id': 27405398}, {'photo_id': 1387180883, 'portfolio_id': 27405398}, {'photo_id': 1387180877, 'portfolio_id': 27405398}, {'photo_id': 1387180873, 'portfolio_id': 27405398}, {'photo_id': 1387180867, 'portfolio_id': 27405398}, {'photo_id': 1387180865, 'portfolio_id': 27405398}, {'photo_id': 1387180863, 'portfolio_id': 27405398}, {'photo_id': 1387180858, 'portfolio_id': 27405398}, {'photo_id': 1387180855, 'portfolio_id': 27405398}, {'photo_id': 1387180852, 'portfolio_id': 27405398}, {'photo_id': 1387180849, 'portfolio_id': 27405398}, {'photo_id': 1387180846, 'portfolio_id': 27405398}, {'photo_id': 1387180844, 'portfolio_id': 27405398}, {'photo_id': 1387180810, 'portfolio_id': 27405398}, {'photo_id': 1387180807, 'portfolio_id': 27405398}, {'photo_id': 1387180803, 'portfolio_id': 27405398}, {'photo_id': 1387180796, 'portfolio_id': 27405398}, {'photo_id': 1387180782, 'portfolio_id': 27405398}, {'photo_id': 1387180742, 'portfolio_id': 27405398}, {'photo_id': 1387180739, 'portfolio_id': 27405398}, {'photo_id': 1387180736, 'portfolio_id': 27405398}, {'photo_id': 1387180734, 'portfolio_id': 27405398}, {'photo_id': 1387180727, 'portfolio_id': 27405398}, {'photo_id': 1387180714, 'portfolio_id': 27405398}, {'photo_id': 1387180668, 'portfolio_id': 27405398}, {'photo_id': 1387180665, 'portfolio_id': 27405398}, {'photo_id': 1387180664, 'portfolio_id': 27405398}, {'photo_id': 1387180661, 'portfolio_id': 27405398}] map_portfolio_id_photo_id: {27405398: [1387181627, 1387181591, 1387181586, 1387181577, 1387181568, 1387181564, 1387181560, 1387181556, 1387181552, 1387181540, 1387181535, 1387181373, 1387181359, 1387181355, 1387181350, 1387181329, 1387181323, 1387181320, 1387181317, 1387181294, 1387181277, 1387181220, 1387181217, 1387181213, 1387181183, 1387181181, 1387181179, 1387181178, 1387181175, 1387181171, 1387181159, 1387181156, 1387181152, 1387181148, 1387181145, 1387181141, 1387181118, 1387181115, 1387181110, 1387181106, 1387181086, 1387181083, 1387181079, 1387181064, 1387181057, 1387181016, 1387181014, 1387181008, 1387181006, 1387181005, 1387180999, 1387180951, 1387180948, 1387180942, 1387180934, 1387180913, 1387180910, 1387180907, 1387180899, 1387180887, 1387180883, 1387180877, 1387180873, 1387180867, 1387180865, 1387180863, 1387180858, 1387180855, 1387180852, 1387180849, 1387180846, 1387180844, 1387180810, 1387180807, 1387180803, 1387180796, 1387180782, 1387180742, 1387180739, 1387180736, 1387180734, 1387180727, 1387180714, 1387180668, 1387180665, 1387180664, 1387180661]} ##### 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.055707693099975586 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Oct 1 14:49:29 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 (27405398) 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 : 27405398 get user id for portfolio 27405398 get sub ptf for main ptf 27405398, type 3726 and hashtags ['mal_croppe', 'environnement', 'kraft', 'plastique', 'Teint_Dans_La_Masse', 'Carton_brun', 'Carton_gris', 'autre_refus', 'metal', 'flou', 'papier', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27405398 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','kraft','plastique','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','metal','flou','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27405398 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','kraft','plastique','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','metal','flou','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 27405398, 'sub_port_id': 27405425, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518460, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'environnement': {'main_port_id': 27405398, 'sub_port_id': 27405426, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518461, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'flou': {'main_port_id': 27405398, 'sub_port_id': 27405427, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518462, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'kraft': {'main_port_id': 27405398, 'sub_port_id': 27405428, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518463, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'Carton_gris': {'main_port_id': 27405398, 'sub_port_id': 27405429, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518464, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'cartonnette': {'main_port_id': 27405398, 'sub_port_id': 27405430, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518465, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'metal': {'main_port_id': 27405398, 'sub_port_id': 27405431, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518466, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'plastique': {'main_port_id': 27405398, 'sub_port_id': 27405432, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518467, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'Carton_brun': {'main_port_id': 27405398, 'sub_port_id': 27405433, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518468, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'autre_refus': {'main_port_id': 27405398, 'sub_port_id': 27405434, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518469, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'papier': {'main_port_id': 27405398, 'sub_port_id': 27405435, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518470, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}, 'mal_croppe': {'main_port_id': 27405398, 'sub_port_id': 27405436, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518471, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405425 , 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=27405398 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 (27405425) result : ((1387181009,), (1387181010,), (1387181119,), (1387181324,), (1387181786,), (1387181787,), (1387181788,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405426 , 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=27405398 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 (27405426) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405427 , 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=27405398 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 (27405427) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405428 , 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=27405398 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 (27405428) result : ((1387181328,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405429 , 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=27405398 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 (27405429) result : ((1387181325,), (1387181692,), (1387181693,), (1387181694,), (1387181695,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405430 , 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=27405398 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 (27405430) result : ((1387181122,), (1387181327,), (1387181581,), (1387181790,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405431 , 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=27405398 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 (27405431) result : ((1387181698,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405432 , 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=27405398 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 (27405432) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405433 , 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=27405398 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 (27405433) result : ((1387181013,), (1387181584,), (1387181585,), (1387181697,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405434 , 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=27405398 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 (27405434) result : ((1387181011,), (1387181120,), (1387181690,), (1387181789,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405435 , 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=27405398 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 (27405435) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27405436 , 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=27405398 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 (27405436) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27405398) result : ((1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27405398 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','kraft','plastique','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','metal','flou','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27405398 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','environnement','kraft','plastique','Teint_Dans_La_Masse','Carton_brun','Carton_gris','autre_refus','metal','flou','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 27405398, 'sub_port_id': 27405439, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518472, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'environnement': {'main_port_id': 27405398, 'sub_port_id': 27405440, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518473, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'flou': {'main_port_id': 27405398, 'sub_port_id': 27405441, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518474, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'kraft': {'main_port_id': 27405398, 'sub_port_id': 27405442, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518475, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'Carton_gris': {'main_port_id': 27405398, 'sub_port_id': 27405443, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518476, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'cartonnette': {'main_port_id': 27405398, 'sub_port_id': 27405445, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518477, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'metal': {'main_port_id': 27405398, 'sub_port_id': 27405446, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518478, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'plastique': {'main_port_id': 27405398, 'sub_port_id': 27405447, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518479, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'Carton_brun': {'main_port_id': 27405398, 'sub_port_id': 27405448, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518480, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'autre_refus': {'main_port_id': 27405398, 'sub_port_id': 27405449, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518481, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'papier': {'main_port_id': 27405398, 'sub_port_id': 27405450, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518482, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 33, 35), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}, 'mal_croppe': {'main_port_id': 27405398, 'sub_port_id': 27405451, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18518483, 'last_updated_at': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 14, 47, 2), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 14, 33, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405439,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405425 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405440,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405426 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405441,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405427 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405442,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405428 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405443,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405429 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405445,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405430 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405446,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405431 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405447,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405432 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405433 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27405451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27405436 lien utilise dans velours : https://marlene.fotonower.com/velours/27405439,27405440,27405441,27405442,27405443,27405445,27405446,27405447,27405448,27405449,27405450,27405451?tags=Teint_Dans_La_Masse,environnement,flou,kraft,Carton_gris,cartonnette,metal,plastique,Carton_brun,autre_refus,papier,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27405398]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1387181627] map_info['map_portfolio_photo'] : {27405398: [1387181627, 1387181591, 1387181586, 1387181577, 1387181568, 1387181564, 1387181560, 1387181556, 1387181552, 1387181540, 1387181535, 1387181373, 1387181359, 1387181355, 1387181350, 1387181329, 1387181323, 1387181320, 1387181317, 1387181294, 1387181277, 1387181220, 1387181217, 1387181213, 1387181183, 1387181181, 1387181179, 1387181178, 1387181175, 1387181171, 1387181159, 1387181156, 1387181152, 1387181148, 1387181145, 1387181141, 1387181118, 1387181115, 1387181110, 1387181106, 1387181086, 1387181083, 1387181079, 1387181064, 1387181057, 1387181016, 1387181014, 1387181008, 1387181006, 1387181005, 1387180999, 1387180951, 1387180948, 1387180942, 1387180934, 1387180913, 1387180910, 1387180907, 1387180899, 1387180887, 1387180883, 1387180877, 1387180873, 1387180867, 1387180865, 1387180863, 1387180858, 1387180855, 1387180852, 1387180849, 1387180846, 1387180844, 1387180810, 1387180807, 1387180803, 1387180796, 1387180782, 1387180742, 1387180739, 1387180736, 1387180734, 1387180727, 1387180714, 1387180668, 1387180665, 1387180664, 1387180661]} final : False mtd_id 4302 list_pids : [1387181627] Looping around the photos to save general results len do output : 1 /27405398. 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, '3807863') ('4302', '27405398', '1387181627', None, None, None, None, None, '3807863') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '27405398', "{'Teint_Dans_La_Masse': 27405425, 'environnement': 27405426, 'flou': 27405427, 'kraft': 27405428, 'Carton_gris': 27405429, 'cartonnette': 27405430, 'metal': 27405431, 'plastique': 27405432, 'Carton_brun': 27405433, 'autre_refus': 27405434, 'papier': 27405435, 'mal_croppe': 27405436}", None, None, None, None, '3807863'), ('4302', '27405398', '1387181627', None, None, None, None, None, '3807863')] time used for this insertion : 0.037329673767089844 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.188464879989624 time spend to save output : 0.03760576248168945 total time spend for step 1 : 5.2260706424713135 step2:final Wed Oct 1 14:49:34 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 (27405398) 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 27405398 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1387180668,1387180665,1387180664,1387180661,1387180742,1387180739,1387180736,1387180734,1387180727,1387180714,1387180877,1387180810,1387180873,1387180807,1387180867,1387180803,1387180865,1387180796,1387180863,1387180782,1387180858,1387180855,1387180852,1387180849,1387180846,1387180844,1387180913,1387180910,1387180907,1387180899,1387180887,1387180883,1387180951,1387180948,1387180942,1387180934,1387181016,1387181014,1387181008,1387181006,1387181005,1387180999,1387181086,1387181083,1387181079,1387181064,1387181057,1387181118,1387181115,1387181110,1387181106,1387181159,1387181156,1387181152,1387181148,1387181145,1387181141,1387181183,1387181181,1387181179,1387181178,1387181175,1387181171,1387181220,1387181217,1387181213,1387181329,1387181568,1387181323,1387181564,1387181560,1387181320,1387181317,1387181556,1387181294,1387181552,1387181540,1387181277,1387181535,1387181373,1387181359,1387181355,1387181350,1387181591,1387181586,1387181577,1387181627); 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([27405398]) Inside saveOutput : final : False verbose : True original output for save of step final : {1387181627: ('0.04077930641957819',)} new output for save of step final : {1387181627: ('0.04077930641957819',)} [1387181627] map_info['map_portfolio_photo'] : {27405398: [1387181627, 1387181591, 1387181586, 1387181577, 1387181568, 1387181564, 1387181560, 1387181556, 1387181552, 1387181540, 1387181535, 1387181373, 1387181359, 1387181355, 1387181350, 1387181329, 1387181323, 1387181320, 1387181317, 1387181294, 1387181277, 1387181220, 1387181217, 1387181213, 1387181183, 1387181181, 1387181179, 1387181178, 1387181175, 1387181171, 1387181159, 1387181156, 1387181152, 1387181148, 1387181145, 1387181141, 1387181118, 1387181115, 1387181110, 1387181106, 1387181086, 1387181083, 1387181079, 1387181064, 1387181057, 1387181016, 1387181014, 1387181008, 1387181006, 1387181005, 1387180999, 1387180951, 1387180948, 1387180942, 1387180934, 1387180913, 1387180910, 1387180907, 1387180899, 1387180887, 1387180883, 1387180877, 1387180873, 1387180867, 1387180865, 1387180863, 1387180858, 1387180855, 1387180852, 1387180849, 1387180846, 1387180844, 1387180810, 1387180807, 1387180803, 1387180796, 1387180782, 1387180742, 1387180739, 1387180736, 1387180734, 1387180727, 1387180714, 1387180668, 1387180665, 1387180664, 1387180661]} final : False mtd_id 4302 list_pids : [1387181627] Looping around the photos to save general results len do output : 1 /1387181627.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, '3807863') ('4302', '27405398', '1387181627', None, None, None, None, None, '3807863') 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', '27405398', '1387181627', '0.04077930641957819', None, None, None, None, '3807863')] time used for this insertion : 0.0353238582611084 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2507178783416748 time spend to save output : 0.03555417060852051 total time spend for step 2 : 0.2862720489501953 step3:velours_tree Wed Oct 1 14:49:35 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 : {27405398: [{'Teint_Dans_La_Masse': 27405425, 'environnement': 27405426, 'flou': 27405427, 'kraft': 27405428, 'Carton_gris': 27405429, 'cartonnette': 27405430, 'metal': 27405431, 'plastique': 27405432, 'Carton_brun': 27405433, 'autre_refus': 27405434, 'papier': 27405435, 'mal_croppe': 27405436}]} input_args_next_step : {27405398: ()} output_args : {27405398: [{'Teint_Dans_La_Masse': 27405425, 'environnement': 27405426, 'flou': 27405427, 'kraft': 27405428, 'Carton_gris': 27405429, 'cartonnette': 27405430, 'metal': 27405431, 'plastique': 27405432, 'Carton_brun': 27405433, 'autre_refus': 27405434, 'papier': 27405435, 'mal_croppe': 27405436}]} args : 27405398 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': 27405425, 'environnement': 27405426, 'flou': 27405427, 'kraft': 27405428, 'Carton_gris': 27405429, 'cartonnette': 27405430, 'metal': 27405431, 'plastique': 27405432, 'Carton_brun': 27405433, 'autre_refus': 27405434, 'papier': 27405435, 'mal_croppe': 27405436},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27405398) 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([27405398]) 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.3076775074005127 time spend to save output : 5.53131103515625e-05 total time spend for step 3 : 0.30773282051086426 step4:send_mail_cod Wed Oct 1 14:49:35 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 : {1387181627: ('0.04077930641957819',)} input_args_next_step : {1387181627: ()} output_args : {1387181627: ('0.04077930641957819',)} args : 1387181627 depend.output_id : 0 complete output_args for input 3 : {27405398: [{'Teint_Dans_La_Masse': 27405425, 'environnement': 27405426, 'flou': 27405427, 'kraft': 27405428, 'Carton_gris': 27405429, 'cartonnette': 27405430, 'metal': 27405431, 'plastique': 27405432, 'Carton_brun': 27405433, 'autre_refus': 27405434, 'papier': 27405435, 'mal_croppe': 27405436}]} input_args_next_step : {1387181627: ('0.04077930641957819',), 27405398: ()} output_args : {27405398: [{'Teint_Dans_La_Masse': 27405425, 'environnement': 27405426, 'flou': 27405427, 'kraft': 27405428, 'Carton_gris': 27405429, 'cartonnette': 27405430, 'metal': 27405431, 'plastique': 27405432, 'Carton_brun': 27405433, 'autre_refus': 27405434, 'papier': 27405435, 'mal_croppe': 27405436}]} args : 27405398 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 :2, first value : ('0.04077930641957819',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27405398) 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 (1387181627) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1387181627 download finish for photo 1387181627 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette274054271759322975/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P27405398_01-10-2025_14_49_35.pdf 27405427 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=27405427 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274054271759322975 27405428 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=27405428 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387181328: '1759322584_1988252_1387181110_baaa03b138d53f5416f8e2d6b07f2d9a_rle_crop_3982426320_0.png'} change filename to text .imagette274054281759322975/ imagette274054281759322975/1759322584_1988252_1387181110_baaa03b138d53f5416f8e2d6b07f2d9a_rle_crop_3982426320_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/400ccc4251f01ff8a9a9ad0a27f462e7_23909718.png imagette274054281759322975 27405430 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=27405430 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387181122: '1759322346_1980041_1387180934_af425e6739bb3357f9997fabe7afa981_rle_crop_3982422792_0.png', 1387181327: '1759322584_1988252_1387181106_17cbb65e58e03c0a26cb0886b721bfbd_rle_crop_3982426332_0.png', 1387181581: '1759322707_1992450_1387181217_537b99fe9afffadf17fa51f7f3835b65_rle_crop_3982427121_0.png', 1387181790: '1759322945_2001301_1387181577_86710b5d79fe0cf95f06c650bc3ca8ba_rle_crop_3982429233_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/097adf839f7718170728c322c045cb8c_43019390.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/dcae57cbe8709676eef0edc0e2c1f1cd_19158910.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/cd3a25403a19665ebadcac700768c251_49339767.png change filename to text .imagette274054301759322975/ imagette274054301759322975/1759322707_1992450_1387181217_537b99fe9afffadf17fa51f7f3835b65_rle_crop_3982427121_0.png.png imagette274054301759322975/1759322945_2001301_1387181577_86710b5d79fe0cf95f06c650bc3ca8ba_rle_crop_3982429233_0.png.png imagette274054301759322975/1759322584_1988252_1387181106_17cbb65e58e03c0a26cb0886b721bfbd_rle_crop_3982426332_0.png.png imagette274054301759322975/1759322346_1980041_1387180934_af425e6739bb3357f9997fabe7afa981_rle_crop_3982422792_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/5cd624b079a63271cbabb742a45c5687_30032872.png imagette274054301759322975 27405431 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=27405431 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387181698: '1759322825_1998445_1387181320_963b09706b813f2c1c3683dddad30c59_rle_crop_3982428864_0.png'} change filename to text .imagette274054311759322976/ imagette274054311759322976/1759322825_1998445_1387181320_963b09706b813f2c1c3683dddad30c59_rle_crop_3982428864_0.png.png imagette274054321759322976/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/c49a6486d95a7dd81be29d061ccdc9d5_8567856.png imagette274054311759322976 27405432 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=27405432 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274054321759322976 27405434 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=27405434 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387181011: '1759322224_1976025_1387180668_1f434c7ebbb0dc41511e5ba36c597251_rle_crop_3982420884_0.png', 1387181120: '1759322346_1980041_1387180934_af425e6739bb3357f9997fabe7afa981_rle_crop_3982422794_0.png', 1387181690: '1759322825_1998445_1387181323_f5701195d4c18fb575c9ffc1430523f0_rle_crop_3982428849_0.png', 1387181789: '1759322945_2001301_1387181586_d3b2c02148560a6d6a2131b46848570c_rle_crop_3982429222_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/2a01ceb125719e8ec330ded25205f7b2_97313089.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/74c90488c8eff1f5b1050518a8456c17_59133819.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/beb28930dca361574d7dc9c7b8d564a9_30564623.png change filename to text .imagette274054341759322976/ imagette274054341759322976/1759322945_2001301_1387181586_d3b2c02148560a6d6a2131b46848570c_rle_crop_3982429222_0.png.png imagette274054341759322976/1759322224_1976025_1387180668_1f434c7ebbb0dc41511e5ba36c597251_rle_crop_3982420884_0.png.png imagette274054341759322976/1759322346_1980041_1387180934_af425e6739bb3357f9997fabe7afa981_rle_crop_3982422794_0.png.png imagette274054341759322976/1759322825_1998445_1387181323_f5701195d4c18fb575c9ffc1430523f0_rle_crop_3982428849_0.png.png imagette274054361759322976/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/1b7e7a30f93c5e6c9f1fad5cb9405664_32919603.png imagette274054341759322976 27405436 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=27405436 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette274054361759322976 27405425 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=27405425 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387181009: '1759322224_1976025_1387180664_ee622919606dc325b17d5979aecce011_rle_crop_3982420920_0.png', 1387181010: '1759322224_1976025_1387180661_88455921b0481cac44b0c3d2426dbda5_rle_crop_3982420929_0.png', 1387181119: '1759322346_1980041_1387180942_c92a41a1bba7f6bb59bc0dc6195a7375_rle_crop_3982422779_0.png', 1387181324: '1759322584_1988252_1387181115_7c93741eadbaa5f72c0e2adf79462500_rle_crop_3982426312_0.png', 1387181786: '1759322945_2001301_1387181586_d3b2c02148560a6d6a2131b46848570c_rle_crop_3982429226_0.png', 1387181787: '1759322945_2001301_1387181577_86710b5d79fe0cf95f06c650bc3ca8ba_rle_crop_3982429239_0.png', 1387181788: '1759322945_2001301_1387181577_86710b5d79fe0cf95f06c650bc3ca8ba_rle_crop_3982429238_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/cf831db5d575e8a67634a6e27cb86c4a_77748267.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/d60ac53cdae3e6253ff356c34141198c_84219810.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/bfcbb01d34ecd2ea45838cad528c8803_32675385.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/a9b85773ef2e062467851a4d2d3364ff_97282941.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/14a50984674538bea22ca58a9a23691c_21804117.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/dc507b10901cf90defe57e5c119441a4_62159346.png change filename to text .imagette274054251759322976/ imagette274054251759322976/1759322224_1976025_1387180664_ee622919606dc325b17d5979aecce011_rle_crop_3982420920_0.png.png imagette274054251759322976/1759322945_2001301_1387181577_86710b5d79fe0cf95f06c650bc3ca8ba_rle_crop_3982429238_0.png.png imagette274054251759322976/1759322346_1980041_1387180942_c92a41a1bba7f6bb59bc0dc6195a7375_rle_crop_3982422779_0.png.png imagette274054251759322976/1759322945_2001301_1387181577_86710b5d79fe0cf95f06c650bc3ca8ba_rle_crop_3982429239_0.png.png imagette274054251759322976/1759322224_1976025_1387180661_88455921b0481cac44b0c3d2426dbda5_rle_crop_3982420929_0.png.png imagette274054251759322976/1759322584_1988252_1387181115_7c93741eadbaa5f72c0e2adf79462500_rle_crop_3982426312_0.png.png imagette274054251759322976/1759322945_2001301_1387181586_d3b2c02148560a6d6a2131b46848570c_rle_crop_3982429226_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/d5ecfe35ade518875d2d85f69036c678_97051381.png imagette274054251759322976 27405429 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=27405429 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387181325: '1759322584_1988252_1387181110_baaa03b138d53f5416f8e2d6b07f2d9a_rle_crop_3982426323_0.png', 1387181692: '1759322825_1998445_1387181320_963b09706b813f2c1c3683dddad30c59_rle_crop_3982428866_0.png', 1387181693: '1759322825_1998445_1387181320_963b09706b813f2c1c3683dddad30c59_rle_crop_3982428860_0.png', 1387181694: '1759322825_1998445_1387181294_b4ec6a322de936726c0bca9fe9303a18_rle_crop_3982428886_0.png', 1387181695: '1759322825_1998445_1387181294_b4ec6a322de936726c0bca9fe9303a18_rle_crop_3982428887_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/21324afbc6e01c68665f2a9529538807_23400147.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/997754481950358c68df5c4a5d506df4_7884836.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/959398f8d8f6b2b9076b0b609c36a25e_28490117.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/65bec0e7a5a6e35d8e5cad69e89d94d5_18500249.png change filename to text .imagette274054291759322977/ imagette274054291759322977/1759322825_1998445_1387181294_b4ec6a322de936726c0bca9fe9303a18_rle_crop_3982428886_0.png.png imagette274054291759322977/1759322825_1998445_1387181294_b4ec6a322de936726c0bca9fe9303a18_rle_crop_3982428887_0.png.png imagette274054291759322977/1759322825_1998445_1387181320_963b09706b813f2c1c3683dddad30c59_rle_crop_3982428860_0.png.png imagette274054291759322977/1759322584_1988252_1387181110_baaa03b138d53f5416f8e2d6b07f2d9a_rle_crop_3982426323_0.png.png imagette274054291759322977/1759322825_1998445_1387181320_963b09706b813f2c1c3683dddad30c59_rle_crop_3982428866_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/d4c6a8044c18aab6e4b2e71a5439717f_54833322.png imagette274054291759322977 27405433 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=27405433 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387181013: '1759322224_1976025_1387180664_ee622919606dc325b17d5979aecce011_rle_crop_3982420916_0.png', 1387181584: '1759322707_1992450_1387181217_537b99fe9afffadf17fa51f7f3835b65_rle_crop_3982427120_0.png', 1387181585: '1759322707_1992450_1387181213_061fdb09304801bae9cb22b59b2846fe_rle_crop_3982427133_0.png', 1387181697: '1759322825_1998445_1387181323_f5701195d4c18fb575c9ffc1430523f0_rle_crop_3982428847_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/c0afbcc4a3c7809066fdab01103aa048_63342955.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/4d44d8dc6deb1cb9274db1217b0c31df_8864272.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/472a6ece3012cbe301e30db40e30c82e_64558309.png change filename to text .imagette274054331759322977/ imagette274054331759322977/1759322707_1992450_1387181217_537b99fe9afffadf17fa51f7f3835b65_rle_crop_3982427120_0.png.png imagette274054331759322977/1759322825_1998445_1387181323_f5701195d4c18fb575c9ffc1430523f0_rle_crop_3982428847_0.png.png imagette274054331759322977/1759322707_1992450_1387181213_061fdb09304801bae9cb22b59b2846fe_rle_crop_3982427133_0.png.png imagette274054331759322977/1759322224_1976025_1387180664_ee622919606dc325b17d5979aecce011_rle_crop_3982420916_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/13bd92cae0e9ed8f2ae8de33ae897782_44257291.png imagette274054331759322977 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27405398 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27405439,27405440,27405441,27405442,27405443,27405445,27405446,27405447,27405448,27405449,27405450,27405451?tags=Teint_Dans_La_Masse,environnement,flou,kraft,Carton_gris,cartonnette,metal,plastique,Carton_brun,autre_refus,papier,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1387181627] : ('0.04077930641957819',) no score found for photo 1387181627 We are sending mail with results at report@fotonower.com refus_total : 0.04077930641957819 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=27405398 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_P27405398_01-10-2025_14_49_35.pdf results_Auto_P27405398_01-10-2025_14_49_35.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27405398_01-10-2025_14_49_35.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','27405398','results_Auto_P27405398_01-10-2025_14_49_35.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27405398_01-10-2025_14_49_35.pdf','pdf','','0.13','0.04077930641957819') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27405398]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1387181627] map_info['map_portfolio_photo'] : {27405398: [1387181627, 1387181591, 1387181586, 1387181577, 1387181568, 1387181564, 1387181560, 1387181556, 1387181552, 1387181540, 1387181535, 1387181373, 1387181359, 1387181355, 1387181350, 1387181329, 1387181323, 1387181320, 1387181317, 1387181294, 1387181277, 1387181220, 1387181217, 1387181213, 1387181183, 1387181181, 1387181179, 1387181178, 1387181175, 1387181171, 1387181159, 1387181156, 1387181152, 1387181148, 1387181145, 1387181141, 1387181118, 1387181115, 1387181110, 1387181106, 1387181086, 1387181083, 1387181079, 1387181064, 1387181057, 1387181016, 1387181014, 1387181008, 1387181006, 1387181005, 1387180999, 1387180951, 1387180948, 1387180942, 1387180934, 1387180913, 1387180910, 1387180907, 1387180899, 1387180887, 1387180883, 1387180877, 1387180873, 1387180867, 1387180865, 1387180863, 1387180858, 1387180855, 1387180852, 1387180849, 1387180846, 1387180844, 1387180810, 1387180807, 1387180803, 1387180796, 1387180782, 1387180742, 1387180739, 1387180736, 1387180734, 1387180727, 1387180714, 1387180668, 1387180665, 1387180664, 1387180661]} final : False mtd_id 4302 list_pids : [1387181627] 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, '3807863') ('4302', '27405398', '1387181627', None, None, None, None, None, '3807863') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '27405398', '1387181627', None, None, None, None, None, '3807863')] time used for this insertion : 0.03534412384033203 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.612795829772949 time spend to save output : 0.03548240661621094 total time spend for step 4 : 3.64827823638916 step5:split_time_score Wed Oct 1 14:49:39 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 : ['27405398'] 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 : [('27405398',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27405398) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1387181627: {'path': 'temp/1759322975_2763222_1387181627_9b2bcadfbe57582b1ddb2e3be24f4dd6.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 = 27405398; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27405398 group by h (('14', 87),) 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=27405398 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 (27405398) 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 (27405398) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01102025 27405398 Nombre de photos uploadées : 87 / 23040 (0%) 01102025 27405398 Nombre de photos taguées (types de déchets): 0 / 87 (0%) 01102025 27405398 Nombre de photos taguées (volume) : 0 / 87 (0%) [{'photo_id': 1387180668, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/1f434c7ebbb0dc41511e5ba36c597251.jpg', 'username': None, 'uploaded_at': 1759321867, 'text': 'image_01102025_14_30_04_009151m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387180665, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/7511004905ec500a2729eacf0ec65d9a.jpg', 'username': None, 'uploaded_at': 1759321867, 'text': 'image_01102025_14_30_24_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387180664, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/ee622919606dc325b17d5979aecce011.jpg', 'username': None, 'uploaded_at': 1759321867, 'text': 'image_01102025_14_30_34_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1387180661, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/88455921b0481cac44b0c3d2426dbda5.jpg', 'username': None, 'uploaded_at': 1759321867, 'text': 'image_01102025_14_30_44_010140m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ??????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0048062801361083984 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27405398, '2025-10-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-10-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2369419,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6653518676757812 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= 2369419 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27375839, 'dashboard_result_id': 15871794, '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_P27375839_01-10-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27376525, 'dashboard_result_id': 15871795, '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_P27376525_01-10-2025_06_16_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27376906, 'dashboard_result_id': 15871796, '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_P27376906_01-10-2025_06_16_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27376933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376939, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27377191, 'dashboard_result_id': 15871797, '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_P27377191_01-10-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27377197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27377198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27377199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27377200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27377201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27377202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27377203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27377204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27377205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27377206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27377207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27377208, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27378456, 'dashboard_result_id': 15871798, '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_P27378456_01-10-2025_06_18_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378473, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27378717, 'dashboard_result_id': 15871799, '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_P27378717_01-10-2025_06_18_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378740, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27378994, 'dashboard_result_id': 15871800, '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_P27378994_01-10-2025_06_20_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379018, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27379410, 'dashboard_result_id': 15871801, '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_P27379410_01-10-2025_06_20_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379446, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27379907, 'dashboard_result_id': 15871802, '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_P27379907_01-10-2025_06_21_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379923, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27380372, 'dashboard_result_id': 15871803, '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_P27380372_01-10-2025_06_21_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27380395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380403, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27380848, 'dashboard_result_id': 15871804, '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_P27380848_01-10-2025_06_22_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27380892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380904, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27381440, 'dashboard_result_id': 15871805, '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_P27381440_01-10-2025_06_22_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27381451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27381452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27381453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27381454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27381455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27381456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27381458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27381459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27381460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27381461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27381462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27381463, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27381997, 'dashboard_result_id': 15871806, '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_P27381997_01-10-2025_06_23_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382014, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27382455, 'dashboard_result_id': 15871807, '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_P27382455_01-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382473, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27382890, 'dashboard_result_id': 15871808, '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_P27382890_01-10-2025_06_24_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382952, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27384322, 'dashboard_result_id': 15871809, '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_P27384322_01-10-2025_06_25_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384339, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27384680, 'dashboard_result_id': 15871810, '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_P27384680_01-10-2025_06_26_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384697, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27384953, 'dashboard_result_id': 15871811, '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_P27384953_01-10-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27384965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384976, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27385199, 'dashboard_result_id': 15871812, '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_P27385199_01-10-2025_06_05_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385223, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27385566, 'dashboard_result_id': 15871813, '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_P27385566_01-10-2025_06_19_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385627, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27385977, 'dashboard_result_id': 15871814, '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_P27385977_01-10-2025_06_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385994, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27386362, 'dashboard_result_id': 15871815, '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_P27386362_01-10-2025_06_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27386409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386412, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27386738, 'dashboard_result_id': 15871816, '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_P27386738_01-10-2025_07_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27386750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386762, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27387203, 'dashboard_result_id': 15871817, '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_P27387203_01-10-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27387269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27387270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27387271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27387272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27387273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27387274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27387276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27387277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27387278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27387279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27387280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27387281, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27387984, 'dashboard_result_id': 15871818, '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_P27387984_01-10-2025_07_33_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388025, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27388759, 'dashboard_result_id': 15871819, '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_P27388759_01-10-2025_07_47_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388812, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27389340, 'dashboard_result_id': 15871820, '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_P27389340_01-10-2025_08_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27389377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27389378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27389379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27389380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27389381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27389382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27389383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27389384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27389385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27389386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27389387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27389388, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27390105, 'dashboard_result_id': 15871821, '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_P27390105_01-10-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390132, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27390791, 'dashboard_result_id': 15871822, '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_P27390791_01-10-2025_08_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390843, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27391355, 'dashboard_result_id': 15871823, '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_P27391355_01-10-2025_08_47_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27391363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27391364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27391365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27391366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27391367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27391368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27391369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27391370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27391371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27391372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27391373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27391374, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27392176, 'dashboard_result_id': 15871824, '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_P27392176_01-10-2025_09_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27392204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27392205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27392206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27392207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27392208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27392209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27392210, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27392211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27392212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27392213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27392214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27392215, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27394659, 'dashboard_result_id': 15871825, '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_P27394659_01-10-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394678, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27395242, 'dashboard_result_id': 15871826, '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_P27395242_01-10-2025_10_03_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395272, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27395913, 'dashboard_result_id': 15871827, '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_P27395913_01-10-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395935, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27396429, 'dashboard_result_id': 15871828, '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_P27396429_01-10-2025_10_33_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27396465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27396466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27396467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27396468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27396469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27396470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27396471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27396472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27396473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27396474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27396475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27396476, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27397076, 'dashboard_result_id': 15871829, '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_P27397076_01-10-2025_10_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397102, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27397673, 'dashboard_result_id': 15871830, '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_P27397673_01-10-2025_11_03_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397693, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27398369, 'dashboard_result_id': 15871831, '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_P27398369_01-10-2025_11_23_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27398446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27398447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27398448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27398449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27398450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27398451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27398452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27398453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27398454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27398455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27398456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27398457, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27399474, 'dashboard_result_id': 15871832, '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_P27399474_01-10-2025_11_33_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27399530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399541, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27399974, 'dashboard_result_id': 15871833, '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_P27399974_01-10-2025_11_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400000, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27400780, 'dashboard_result_id': 15871834, '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_P27400780_01-10-2025_12_09_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27400837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27400838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27400839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27400840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27400841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27400843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27400844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27400845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27400847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27400848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27400849, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27401557, 'dashboard_result_id': 15871835, '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_P27401557_01-10-2025_14_01_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27401581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27401582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27401584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27401585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27401586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27401587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27401588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27401589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27401590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27401591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27401592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27401593, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27403901, 'dashboard_result_id': 15871836, '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_P27403901_01-10-2025_13_49_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27403919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27403920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27403921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27403922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27403923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27403924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27403925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27403926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27403927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27403928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27403929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27403930, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27404296, 'dashboard_result_id': 15871837, '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_P27404296_01-10-2025_14_03_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27404323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27404324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27404325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27404326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27404328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27404329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27404330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27404331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27404332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27404333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27404334, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27404682, 'dashboard_result_id': 15871838, '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_P27404682_01-10-2025_14_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27404694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27404695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27404696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27404697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27404698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27404699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27404700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27404701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27404702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27404703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27404704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27404705, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27405147, 'dashboard_result_id': 15871839, '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_P27405147_01-10-2025_14_33_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27405152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27405153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27405154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27405155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27405156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27405157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27405158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27405159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27405160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27405161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27405162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27405163, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2381801, 'mtr_portfolio_id': 27405398, 'dashboard_result_id': 15871840, '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_P27405398_01-10-2025_14_45_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27405425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27405426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27405427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27405428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27405429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27405430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27405431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27405432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27405433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27405434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27405435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27405436, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27375839 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': 3801426, 'mtr_portfolio_id': 27375839, 'created_at': datetime.datetime(2025, 10, 1, 6, 16), 'result': '0.06789394242096429', 'result_long': None, 'result_double': None}] Qualite : 0.06789394242096429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27375839 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375839_01-10-2025_06_16_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27375839 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_P27375839_01-10-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, 'pht': 3726}}" where mtr_portfolio_id = 27375839 and dashboard_run_id = 2381801 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`=27375839 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871794, 0.06789394242096429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375839_01-10-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, '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 = 27376525 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': 3801427, 'mtr_portfolio_id': 27376525, 'created_at': datetime.datetime(2025, 10, 1, 6, 16, 5), 'result': '0.07886199448450112', 'result_long': None, 'result_double': None}] Qualite : 0.07886199448450112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27376525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376525_01-10-2025_06_16_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27376525 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_P27376525_01-10-2025_06_16_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, 'pht': 3726}}" where mtr_portfolio_id = 27376525 and dashboard_run_id = 2381801 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`=27376525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871795, 0.07886199448450112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376525_01-10-2025_06_16_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, '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 = 27376906 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': 3801428, 'mtr_portfolio_id': 27376906, 'created_at': datetime.datetime(2025, 10, 1, 6, 16, 32), 'result': '0.03770473165226238', 'result_long': None, 'result_double': None}] Qualite : 0.03770473165226238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27376906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376906_01-10-2025_06_16_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27376906 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_P27376906_01-10-2025_06_16_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27376933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376939, 'pht': 3726}}" where mtr_portfolio_id = 27376906 and dashboard_run_id = 2381801 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`=27376906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871796, 0.03770473165226238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376906_01-10-2025_06_16_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27376933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376939, '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 = 27377191 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': 3801429, 'mtr_portfolio_id': 27377191, 'created_at': datetime.datetime(2025, 10, 1, 6, 17, 29), 'result': '0.0717714398830473', 'result_long': None, 'result_double': None}] Qualite : 0.0717714398830473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27377191 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27377191_01-10-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27377191 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_P27377191_01-10-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27377197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27377198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27377199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27377200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27377201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27377202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27377203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27377204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27377205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27377206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27377207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27377208, 'pht': 3726}}" where mtr_portfolio_id = 27377191 and dashboard_run_id = 2381801 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`=27377191 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871797, 0.0717714398830473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27377191_01-10-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27377197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27377198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27377199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27377200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27377201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27377202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27377203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27377204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27377205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27377206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27377207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27377208, '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 = 27378456 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': 3801430, 'mtr_portfolio_id': 27378456, 'created_at': datetime.datetime(2025, 10, 1, 6, 18, 3), 'result': '0.08043277079167623', 'result_long': None, 'result_double': None}] Qualite : 0.08043277079167623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27378456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378456_01-10-2025_06_18_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27378456 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_P27378456_01-10-2025_06_18_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378473, 'pht': 3726}}" where mtr_portfolio_id = 27378456 and dashboard_run_id = 2381801 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`=27378456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871798, 0.08043277079167623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378456_01-10-2025_06_18_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378473, '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 = 27378717 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': 3801431, 'mtr_portfolio_id': 27378717, 'created_at': datetime.datetime(2025, 10, 1, 6, 18, 32), 'result': '0.09620342357616525', 'result_long': None, 'result_double': None}] Qualite : 0.09620342357616525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27378717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378717_01-10-2025_06_18_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27378717 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_P27378717_01-10-2025_06_18_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378740, 'pht': 3726}}" where mtr_portfolio_id = 27378717 and dashboard_run_id = 2381801 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`=27378717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871799, 0.09620342357616525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378717_01-10-2025_06_18_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378740, '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 = 27378994 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': 3801432, 'mtr_portfolio_id': 27378994, 'created_at': datetime.datetime(2025, 10, 1, 6, 20, 2), 'result': '0.05679053781888002', 'result_long': None, 'result_double': None}] Qualite : 0.05679053781888002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27378994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378994_01-10-2025_06_20_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27378994 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_P27378994_01-10-2025_06_20_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379018, 'pht': 3726}}" where mtr_portfolio_id = 27378994 and dashboard_run_id = 2381801 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`=27378994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871800, 0.05679053781888002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378994_01-10-2025_06_20_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379018, '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 = 27379410 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': 3801433, 'mtr_portfolio_id': 27379410, 'created_at': datetime.datetime(2025, 10, 1, 6, 20, 34), 'result': '0.04770836897525871', 'result_long': None, 'result_double': None}] Qualite : 0.04770836897525871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27379410 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379410_01-10-2025_06_20_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27379410 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_P27379410_01-10-2025_06_20_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379446, 'pht': 3726}}" where mtr_portfolio_id = 27379410 and dashboard_run_id = 2381801 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`=27379410 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871801, 0.04770836897525871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379410_01-10-2025_06_20_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379446, '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 = 27379907 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': 3801434, 'mtr_portfolio_id': 27379907, 'created_at': datetime.datetime(2025, 10, 1, 6, 21, 6), 'result': '0.06099107227027687', 'result_long': None, 'result_double': None}] Qualite : 0.06099107227027687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27379907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379907_01-10-2025_06_21_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27379907 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_P27379907_01-10-2025_06_21_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379923, 'pht': 3726}}" where mtr_portfolio_id = 27379907 and dashboard_run_id = 2381801 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`=27379907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871802, 0.06099107227027687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379907_01-10-2025_06_21_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379923, '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 = 27380372 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': 3801435, 'mtr_portfolio_id': 27380372, 'created_at': datetime.datetime(2025, 10, 1, 6, 21, 35), 'result': '0.047009914209299924', 'result_long': None, 'result_double': None}] Qualite : 0.047009914209299924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27380372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380372_01-10-2025_06_21_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27380372 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_P27380372_01-10-2025_06_21_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27380395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380403, 'pht': 3726}}" where mtr_portfolio_id = 27380372 and dashboard_run_id = 2381801 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`=27380372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871803, 0.047009914209299924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380372_01-10-2025_06_21_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27380395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380403, '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 = 27380848 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': 3801436, 'mtr_portfolio_id': 27380848, 'created_at': datetime.datetime(2025, 10, 1, 6, 21, 59), 'result': '0.040862898360302366', 'result_long': None, 'result_double': None}] Qualite : 0.040862898360302366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27380848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380848_01-10-2025_06_22_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27380848 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_P27380848_01-10-2025_06_22_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27380892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380904, 'pht': 3726}}" where mtr_portfolio_id = 27380848 and dashboard_run_id = 2381801 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`=27380848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871804, 0.040862898360302366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380848_01-10-2025_06_22_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27380892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380904, '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 = 27381440 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': 3801437, 'mtr_portfolio_id': 27381440, 'created_at': datetime.datetime(2025, 10, 1, 6, 22, 32), 'result': '0.05168652002226309', 'result_long': None, 'result_double': None}] Qualite : 0.05168652002226309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27381440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381440_01-10-2025_06_22_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27381440 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_P27381440_01-10-2025_06_22_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27381451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27381452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27381453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27381454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27381455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27381456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27381458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27381459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27381460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27381461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27381462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27381463, 'pht': 3726}}" where mtr_portfolio_id = 27381440 and dashboard_run_id = 2381801 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`=27381440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871805, 0.05168652002226309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381440_01-10-2025_06_22_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27381451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27381452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27381453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27381454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27381455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27381456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27381458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27381459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27381460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27381461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27381462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27381463, '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 = 27381997 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': 3801438, 'mtr_portfolio_id': 27381997, 'created_at': datetime.datetime(2025, 10, 1, 6, 23, 33), 'result': '0.04641152411594666', 'result_long': None, 'result_double': None}] Qualite : 0.04641152411594666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27381997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381997_01-10-2025_06_23_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27381997 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_P27381997_01-10-2025_06_23_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382014, 'pht': 3726}}" where mtr_portfolio_id = 27381997 and dashboard_run_id = 2381801 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`=27381997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871806, 0.04641152411594666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381997_01-10-2025_06_23_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382014, '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 = 27382455 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': 3801439, 'mtr_portfolio_id': 27382455, 'created_at': datetime.datetime(2025, 10, 1, 6, 24, 3), 'result': '0.055765434016933804', 'result_long': None, 'result_double': None}] Qualite : 0.055765434016933804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27382455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382455_01-10-2025_06_24_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27382455 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_P27382455_01-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382473, 'pht': 3726}}" where mtr_portfolio_id = 27382455 and dashboard_run_id = 2381801 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`=27382455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871807, 0.055765434016933804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382455_01-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382473, '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 = 27382890 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': 3801440, 'mtr_portfolio_id': 27382890, 'created_at': datetime.datetime(2025, 10, 1, 6, 24, 34), 'result': '0.05617742493750273', 'result_long': None, 'result_double': None}] Qualite : 0.05617742493750273 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27382890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382890_01-10-2025_06_24_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27382890 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_P27382890_01-10-2025_06_24_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382952, 'pht': 3726}}" where mtr_portfolio_id = 27382890 and dashboard_run_id = 2381801 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`=27382890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871808, 0.05617742493750273, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382890_01-10-2025_06_24_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382952, '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 = 27384322 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': 3801441, 'mtr_portfolio_id': 27384322, 'created_at': datetime.datetime(2025, 10, 1, 6, 25, 34), 'result': '0.056190374737689314', 'result_long': None, 'result_double': None}] Qualite : 0.056190374737689314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27384322 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384322_01-10-2025_06_25_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27384322 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_P27384322_01-10-2025_06_25_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384339, 'pht': 3726}}" where mtr_portfolio_id = 27384322 and dashboard_run_id = 2381801 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`=27384322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871809, 0.056190374737689314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384322_01-10-2025_06_25_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384339, '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 = 27384680 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': 3801442, 'mtr_portfolio_id': 27384680, 'created_at': datetime.datetime(2025, 10, 1, 6, 26, 2), 'result': '0.027792684796642698', 'result_long': None, 'result_double': None}] Qualite : 0.027792684796642698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27384680 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384680_01-10-2025_06_26_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27384680 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_P27384680_01-10-2025_06_26_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384697, 'pht': 3726}}" where mtr_portfolio_id = 27384680 and dashboard_run_id = 2381801 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`=27384680 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871810, 0.027792684796642698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384680_01-10-2025_06_26_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384697, '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 = 27384953 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': 3801337, 'mtr_portfolio_id': 27384953, 'created_at': datetime.datetime(2025, 10, 1, 5, 47, 1), 'result': '0.03587679899509765', 'result_long': None, 'result_double': None}] Qualite : 0.03587679899509765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27384953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384953_01-10-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27384953 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_P27384953_01-10-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27384965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384976, 'pht': 3726}}" where mtr_portfolio_id = 27384953 and dashboard_run_id = 2381801 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`=27384953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871811, 0.03587679899509765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384953_01-10-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27384965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384976, '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 = 27385199 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': 3801581, 'mtr_portfolio_id': 27385199, 'created_at': datetime.datetime(2025, 10, 1, 6, 5, 30), 'result': '0.06667589482955814', 'result_long': None, 'result_double': None}] Qualite : 0.06667589482955814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27385199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385199_01-10-2025_06_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27385199 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_P27385199_01-10-2025_06_05_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385223, 'pht': 3726}}" where mtr_portfolio_id = 27385199 and dashboard_run_id = 2381801 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`=27385199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871812, 0.06667589482955814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385199_01-10-2025_06_05_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385223, '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 = 27385566 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': 3801705, 'mtr_portfolio_id': 27385566, 'created_at': datetime.datetime(2025, 10, 1, 6, 19, 35), 'result': '0.08794878679382613', 'result_long': None, 'result_double': None}] Qualite : 0.08794878679382613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27385566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385566_01-10-2025_06_19_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27385566 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_P27385566_01-10-2025_06_19_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385627, 'pht': 3726}}" where mtr_portfolio_id = 27385566 and dashboard_run_id = 2381801 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`=27385566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871813, 0.08794878679382613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385566_01-10-2025_06_19_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385627, '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 = 27385977 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': 3801822, 'mtr_portfolio_id': 27385977, 'created_at': datetime.datetime(2025, 10, 1, 6, 33, 33), 'result': '0.04726542234494339', 'result_long': None, 'result_double': None}] Qualite : 0.04726542234494339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27385977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385977_01-10-2025_06_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27385977 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_P27385977_01-10-2025_06_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385994, 'pht': 3726}}" where mtr_portfolio_id = 27385977 and dashboard_run_id = 2381801 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`=27385977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871814, 0.04726542234494339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385977_01-10-2025_06_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385994, '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 = 27386362 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': 3802022, 'mtr_portfolio_id': 27386362, 'created_at': datetime.datetime(2025, 10, 1, 6, 47), 'result': '0.05934289922956309', 'result_long': None, 'result_double': None}] Qualite : 0.05934289922956309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27386362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386362_01-10-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27386362 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_P27386362_01-10-2025_06_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27386409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386412, 'pht': 3726}}" where mtr_portfolio_id = 27386362 and dashboard_run_id = 2381801 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`=27386362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871815, 0.05934289922956309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386362_01-10-2025_06_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27386409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386412, '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 = 27386738 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': 3802223, 'mtr_portfolio_id': 27386738, 'created_at': datetime.datetime(2025, 10, 1, 7, 2, 59), 'result': '0.04737731496260788', 'result_long': None, 'result_double': None}] Qualite : 0.04737731496260788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27386738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386738_01-10-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27386738 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_P27386738_01-10-2025_07_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27386750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386762, 'pht': 3726}}" where mtr_portfolio_id = 27386738 and dashboard_run_id = 2381801 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`=27386738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871816, 0.04737731496260788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386738_01-10-2025_07_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27386750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386762, '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 = 27387203 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': 3802441, 'mtr_portfolio_id': 27387203, 'created_at': datetime.datetime(2025, 10, 1, 7, 17), 'result': '0.10709898913061865', 'result_long': None, 'result_double': None}] Qualite : 0.10709898913061865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27387203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387203_01-10-2025_07_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27387203 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_P27387203_01-10-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27387269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27387270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27387271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27387272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27387273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27387274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27387276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27387277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27387278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27387279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27387280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27387281, 'pht': 3726}}" where mtr_portfolio_id = 27387203 and dashboard_run_id = 2381801 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`=27387203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871817, 0.10709898913061865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387203_01-10-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27387269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27387270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27387271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27387272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27387273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27387274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27387276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27387277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27387278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27387279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27387280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27387281, '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 = 27387984 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': 3802704, 'mtr_portfolio_id': 27387984, 'created_at': datetime.datetime(2025, 10, 1, 7, 33, 36), 'result': '0.03432529522791524', 'result_long': None, 'result_double': None}] Qualite : 0.03432529522791524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27387984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387984_01-10-2025_07_33_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27387984 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_P27387984_01-10-2025_07_33_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388025, 'pht': 3726}}" where mtr_portfolio_id = 27387984 and dashboard_run_id = 2381801 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`=27387984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871818, 0.03432529522791524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387984_01-10-2025_07_33_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388025, '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 = 27388759 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': 3802946, 'mtr_portfolio_id': 27388759, 'created_at': datetime.datetime(2025, 10, 1, 7, 47, 4), 'result': '0.029221342880138702', 'result_long': None, 'result_double': None}] Qualite : 0.029221342880138702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27388759 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27388759_01-10-2025_07_47_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27388759 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_P27388759_01-10-2025_07_47_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388812, 'pht': 3726}}" where mtr_portfolio_id = 27388759 and dashboard_run_id = 2381801 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`=27388759 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871819, 0.029221342880138702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27388759_01-10-2025_07_47_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388812, '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 = 27389340 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': 3803167, 'mtr_portfolio_id': 27389340, 'created_at': datetime.datetime(2025, 10, 1, 8, 5, 31), 'result': '0.043546774742017916', 'result_long': None, 'result_double': None}] Qualite : 0.043546774742017916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27389340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27389340_01-10-2025_08_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27389340 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_P27389340_01-10-2025_08_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27389377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27389378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27389379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27389380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27389381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27389382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27389383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27389384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27389385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27389386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27389387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27389388, 'pht': 3726}}" where mtr_portfolio_id = 27389340 and dashboard_run_id = 2381801 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`=27389340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871820, 0.043546774742017916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27389340_01-10-2025_08_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27389377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27389378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27389379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27389380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27389381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27389382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27389383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27389384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27389385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27389386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27389387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27389388, '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 = 27390105 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': 3803495, 'mtr_portfolio_id': 27390105, 'created_at': datetime.datetime(2025, 10, 1, 8, 18, 59), 'result': '0.045633077260058254', 'result_long': None, 'result_double': None}] Qualite : 0.045633077260058254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27390105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390105_01-10-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27390105 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_P27390105_01-10-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390132, 'pht': 3726}}" where mtr_portfolio_id = 27390105 and dashboard_run_id = 2381801 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`=27390105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871821, 0.045633077260058254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390105_01-10-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390132, '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 = 27390791 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': 3803728, 'mtr_portfolio_id': 27390791, 'created_at': datetime.datetime(2025, 10, 1, 8, 33, 28), 'result': '0.06617770179097766', 'result_long': None, 'result_double': None}] Qualite : 0.06617770179097766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27390791 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390791_01-10-2025_08_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27390791 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_P27390791_01-10-2025_08_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390843, 'pht': 3726}}" where mtr_portfolio_id = 27390791 and dashboard_run_id = 2381801 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`=27390791 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871822, 0.06617770179097766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390791_01-10-2025_08_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390843, '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 = 27391355 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': 3803988, 'mtr_portfolio_id': 27391355, 'created_at': datetime.datetime(2025, 10, 1, 8, 47, 3), 'result': '0.08950805302203253', 'result_long': None, 'result_double': None}] Qualite : 0.08950805302203253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27391355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27391355_01-10-2025_08_47_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27391355 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_P27391355_01-10-2025_08_47_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27391363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27391364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27391365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27391366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27391367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27391368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27391369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27391370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27391371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27391372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27391373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27391374, 'pht': 3726}}" where mtr_portfolio_id = 27391355 and dashboard_run_id = 2381801 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`=27391355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871823, 0.08950805302203253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27391355_01-10-2025_08_47_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27391363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27391364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27391365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27391366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27391367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27391368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27391369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27391370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27391371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27391372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27391373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27391374, '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 = 27392176 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 = 27392176 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 = 27392176 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27392176 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 = 27392176 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 = 27392176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27392176_01-10-2025_09_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27392176 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_P27392176_01-10-2025_09_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27392204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27392205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27392206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27392207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27392208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27392209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27392210, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27392211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27392212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27392213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27392214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27392215, 'pht': 3726}}" where mtr_portfolio_id = 27392176 and dashboard_run_id = 2381801 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27394659 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': 3804916, 'mtr_portfolio_id': 27394659, 'created_at': datetime.datetime(2025, 10, 1, 9, 47), 'result': '0.053429043929547525', 'result_long': None, 'result_double': None}] Qualite : 0.053429043929547525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27394659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27394659_01-10-2025_09_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27394659 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_P27394659_01-10-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394678, 'pht': 3726}}" where mtr_portfolio_id = 27394659 and dashboard_run_id = 2381801 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`=27394659 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871825, 0.053429043929547525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27394659_01-10-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394678, '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 = 27395242 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': 3804968, 'mtr_portfolio_id': 27395242, 'created_at': datetime.datetime(2025, 10, 1, 10, 3, 33), 'result': '0.042913388907675626', 'result_long': None, 'result_double': None}] Qualite : 0.042913388907675626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27395242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27395242_01-10-2025_10_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27395242 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_P27395242_01-10-2025_10_03_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395272, 'pht': 3726}}" where mtr_portfolio_id = 27395242 and dashboard_run_id = 2381801 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`=27395242 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871826, 0.042913388907675626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27395242_01-10-2025_10_03_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395272, '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 = 27395913 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': 3805088, 'mtr_portfolio_id': 27395913, 'created_at': datetime.datetime(2025, 10, 1, 10, 16, 58), 'result': '0.03279612333547262', 'result_long': None, 'result_double': None}] Qualite : 0.03279612333547262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27395913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27395913_01-10-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27395913 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_P27395913_01-10-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395935, 'pht': 3726}}" where mtr_portfolio_id = 27395913 and dashboard_run_id = 2381801 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`=27395913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871827, 0.03279612333547262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27395913_01-10-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27395922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27395923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27395925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27395926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27395927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27395928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27395929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27395931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27395932, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27395933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27395934, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27395935, '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 = 27396429 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': 3805206, 'mtr_portfolio_id': 27396429, 'created_at': datetime.datetime(2025, 10, 1, 10, 33, 36), 'result': '0.043550904037359235', 'result_long': None, 'result_double': None}] Qualite : 0.043550904037359235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27396429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27396429_01-10-2025_10_33_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27396429 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_P27396429_01-10-2025_10_33_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27396465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27396466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27396467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27396468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27396469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27396470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27396471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27396472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27396473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27396474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27396475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27396476, 'pht': 3726}}" where mtr_portfolio_id = 27396429 and dashboard_run_id = 2381801 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`=27396429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871828, 0.043550904037359235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27396429_01-10-2025_10_33_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27396465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27396466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27396467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27396468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27396469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27396470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27396471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27396472, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27396473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27396474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27396475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27396476, '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 = 27397076 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': 3805309, 'mtr_portfolio_id': 27397076, 'created_at': datetime.datetime(2025, 10, 1, 10, 47, 3), 'result': '0.04184023677921255', 'result_long': None, 'result_double': None}] Qualite : 0.04184023677921255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27397076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27397076_01-10-2025_10_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27397076 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_P27397076_01-10-2025_10_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397102, 'pht': 3726}}" where mtr_portfolio_id = 27397076 and dashboard_run_id = 2381801 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`=27397076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871829, 0.04184023677921255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27397076_01-10-2025_10_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397099, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397102, '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 = 27397673 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': 3805527, 'mtr_portfolio_id': 27397673, 'created_at': datetime.datetime(2025, 10, 1, 11, 3, 2), 'result': '0.04418884890634897', 'result_long': None, 'result_double': None}] Qualite : 0.04418884890634897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27397673 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27397673_01-10-2025_11_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27397673 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_P27397673_01-10-2025_11_03_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397693, 'pht': 3726}}" where mtr_portfolio_id = 27397673 and dashboard_run_id = 2381801 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`=27397673 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871830, 0.04418884890634897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27397673_01-10-2025_11_03_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27397682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27397683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27397684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27397685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27397686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27397687, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27397688, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27397689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27397690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27397691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27397692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27397693, '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 = 27398369 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': 3805766, 'mtr_portfolio_id': 27398369, 'created_at': datetime.datetime(2025, 10, 1, 11, 23, 2), 'result': '0.03474066181206954', 'result_long': None, 'result_double': None}] Qualite : 0.03474066181206954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27398369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27398369_01-10-2025_11_23_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27398369 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_P27398369_01-10-2025_11_23_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27398446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27398447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27398448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27398449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27398450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27398451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27398452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27398453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27398454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27398455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27398456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27398457, 'pht': 3726}}" where mtr_portfolio_id = 27398369 and dashboard_run_id = 2381801 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`=27398369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871831, 0.03474066181206954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27398369_01-10-2025_11_23_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27398446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27398447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27398448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27398449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27398450, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27398451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27398452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27398453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27398454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27398455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27398456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27398457, '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 = 27399474 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': 3806201, 'mtr_portfolio_id': 27399474, 'created_at': datetime.datetime(2025, 10, 1, 11, 33, 30), 'result': '0.010339588293553898', 'result_long': None, 'result_double': None}] Qualite : 0.010339588293553898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27399474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27399474_01-10-2025_11_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27399474 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_P27399474_01-10-2025_11_33_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27399530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399541, 'pht': 3726}}" where mtr_portfolio_id = 27399474 and dashboard_run_id = 2381801 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`=27399474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871832, 0.010339588293553898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27399474_01-10-2025_11_33_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27399530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399534, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399541, '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 = 27399974 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': 3806361, 'mtr_portfolio_id': 27399974, 'created_at': datetime.datetime(2025, 10, 1, 11, 49), 'result': '0.022585780139675566', 'result_long': None, 'result_double': None}] Qualite : 0.022585780139675566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27399974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27399974_01-10-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27399974 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_P27399974_01-10-2025_11_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400000, 'pht': 3726}}" where mtr_portfolio_id = 27399974 and dashboard_run_id = 2381801 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`=27399974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871833, 0.022585780139675566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27399974_01-10-2025_11_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27399989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27399990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27399991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27399992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27399993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27399994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27399995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27399996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27399997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27399998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27399999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400000, '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 = 27400780 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': 3806640, 'mtr_portfolio_id': 27400780, 'created_at': datetime.datetime(2025, 10, 1, 12, 9, 2), 'result': '0.036449492833167896', 'result_long': None, 'result_double': None}] Qualite : 0.036449492833167896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27400780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27400780_01-10-2025_12_09_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27400780 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_P27400780_01-10-2025_12_09_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27400837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27400838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27400839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27400840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27400841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27400843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27400844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27400845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27400847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27400848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27400849, 'pht': 3726}}" where mtr_portfolio_id = 27400780 and dashboard_run_id = 2381801 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`=27400780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871834, 0.036449492833167896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27400780_01-10-2025_12_09_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27400837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27400838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27400839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27400840, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27400841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27400842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27400843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27400844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27400845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27400847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27400848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27400849, '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 = 27401557 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': 3806938, 'mtr_portfolio_id': 27401557, 'created_at': datetime.datetime(2025, 10, 1, 14, 1, 6), 'result': '0.06869781155440395', 'result_long': None, 'result_double': None}] Qualite : 0.06869781155440395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27401557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27401557_01-10-2025_14_01_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27401557 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_P27401557_01-10-2025_14_01_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27401581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27401582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27401584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27401585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27401586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27401587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27401588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27401589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27401590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27401591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27401592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27401593, 'pht': 3726}}" where mtr_portfolio_id = 27401557 and dashboard_run_id = 2381801 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`=27401557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871835, 0.06869781155440395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27401557_01-10-2025_14_01_07.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27401581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27401582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27401584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27401585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27401586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27401587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27401588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27401589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27401590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27401591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27401592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27401593, '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 = 27403901 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': 3807577, 'mtr_portfolio_id': 27403901, 'created_at': datetime.datetime(2025, 10, 1, 13, 49, 5), 'result': '0.0942114492669756', 'result_long': None, 'result_double': None}] Qualite : 0.0942114492669756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27403901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27403901_01-10-2025_13_49_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27403901 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_P27403901_01-10-2025_13_49_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27403919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27403920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27403921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27403922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27403923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27403924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27403925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27403926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27403927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27403928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27403929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27403930, 'pht': 3726}}" where mtr_portfolio_id = 27403901 and dashboard_run_id = 2381801 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`=27403901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871836, 0.0942114492669756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27403901_01-10-2025_13_49_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27403919, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27403920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27403921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27403922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27403923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27403924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27403925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27403926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27403927, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27403928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27403929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27403930, '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 = 27404296 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': 3807597, 'mtr_portfolio_id': 27404296, 'created_at': datetime.datetime(2025, 10, 1, 14, 3, 35), 'result': '0.040062340918715196', 'result_long': None, 'result_double': None}] Qualite : 0.040062340918715196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27404296 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27404296_01-10-2025_14_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27404296 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_P27404296_01-10-2025_14_03_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27404323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27404324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27404325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27404326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27404328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27404329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27404330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27404331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27404332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27404333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27404334, 'pht': 3726}}" where mtr_portfolio_id = 27404296 and dashboard_run_id = 2381801 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`=27404296 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871837, 0.040062340918715196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27404296_01-10-2025_14_03_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27404323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27404324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27404325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27404326, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27404327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27404328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27404329, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27404330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27404331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27404332, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27404333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27404334, '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 = 27404682 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': 3807658, 'mtr_portfolio_id': 27404682, 'created_at': datetime.datetime(2025, 10, 1, 14, 19, 32), 'result': '0.08044913864657866', 'result_long': None, 'result_double': None}] Qualite : 0.08044913864657866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27404682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27404682_01-10-2025_14_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27404682 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_P27404682_01-10-2025_14_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27404694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27404695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27404696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27404697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27404698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27404699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27404700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27404701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27404702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27404703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27404704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27404705, 'pht': 3726}}" where mtr_portfolio_id = 27404682 and dashboard_run_id = 2381803 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`=27404682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871838, 0.08044913864657866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27404682_01-10-2025_14_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27404694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27404695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27404696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27404697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27404698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27404699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27404700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27404701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27404702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27404703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27404704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27404705, '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 = 27405147 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': 3807771, 'mtr_portfolio_id': 27405147, 'created_at': datetime.datetime(2025, 10, 1, 14, 33, 2), 'result': '0.05271038468149603', 'result_long': None, 'result_double': None}] Qualite : 0.05271038468149603 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27405147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27405147_01-10-2025_14_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27405147 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_P27405147_01-10-2025_14_33_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27405152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27405153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27405154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27405155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27405156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27405157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27405158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27405159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27405160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27405161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27405162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27405163, 'pht': 3726}}" where mtr_portfolio_id = 27405147 and dashboard_run_id = 2381803 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`=27405147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871839, 0.05271038468149603, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27405147_01-10-2025_14_33_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27405152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27405153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27405154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27405155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27405156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27405157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27405158, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27405159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27405160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27405161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27405162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27405163, '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 = 27405398 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': 3807863, 'mtr_portfolio_id': 27405398, 'created_at': datetime.datetime(2025, 10, 1, 14, 49, 35), 'result': '0.04077930641957819', 'result_long': None, 'result_double': None}] Qualite : 0.04077930641957819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27405398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27405398_01-10-2025_14_49_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27405398 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_P27405398_01-10-2025_14_49_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27405425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27405426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27405427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27405428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27405429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27405430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27405431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27405432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27405433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27405434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27405435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27405436, 'pht': 3726}}" where mtr_portfolio_id = 27405398 and dashboard_run_id = 2381803 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`=27405398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15871840, 0.04077930641957819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27405398_01-10-2025_14_49_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27405425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27405426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27405427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27405428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27405429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27405430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27405431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27405432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27405433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27405434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27405435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27405436, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27375839,27376525,27376906,27377191,27378456,27378717,27378994,27379410,27379907,27380372,27380848,27381440,27381997,27382455,27382890,27384322,27384680,27384953,27385199,27385566,27385977,27386362,27386738,27387203,27387984,27388759,27389340,27390105,27390791,27391355,27392176,27394659,27395242,27395913,27396429,27397076,27397673,27398369,27399474,27399974,27400780,27401557,27403901,27404296,27404682,27405147,27405398) result : ((1387049350,), (1387051024,), (1387051025,), (1387051027,), (1387051041,), (1387051044,), (1387051049,), (1387051073,), (1387051318,), (1387051321,), (1387051333,), (1387051551,), (1387051617,), (1387051623,), (1387052038,), (1387052041,), (1387052204,), (1387052206,), (1387052208,), (1387052211,), (1387052272,), (1387052289,), (1387052294,), (1387052297,), (1387052453,), (1387052457,), (1387052478,), (1387052500,), (1387052502,), (1387052504,), (1387052768,), (1387052851,), (1387052908,), (1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,), (1387054013,), (1387054047,), (1387054049,), (1387054069,), (1387054083,), (1387053999,), (1387054002,), (1387054003,), (1387054006,), (1387054009,), (1387054089,), (1387054091,), (1387054095,), (1387054137,), (1387054180,), (1387054182,), (1387054183,), (1387054201,), (1387054206,), (1387054210,), (1387054220,), (1387054223,), (1387054225,), (1387054229,), (1387054231,), (1387054234,), (1387054262,), (1387054270,), (1387054274,), (1387054277,), (1387054281,), (1387054289,), (1387054379,), (1387054382,), (1387054385,), (1387054420,), (1387054426,), (1387054427,), (1387054429,), (1387054454,), (1387054457,), (1387054459,), (1387054463,), (1387054467,), (1387054478,), (1387054481,), (1387054484,), (1387054487,), (1387054499,), (1387054502,), (1387054504,), (1387054506,), (1387054519,), (1387054521,), (1387054522,), (1387054525,), (1387054528,), (1387054565,), (1387054567,), (1387054569,), (1387054573,), (1387054577,), (1387054595,), (1387054598,), (1387054603,), (1387054609,), (1387054610,), (1387054612,), (1387054617,), (1387054620,), (1387054626,), (1387054628,), (1387054631,), (1387054634,), (1387054635,), (1387054636,), (1387054637,), (1387054638,), (1387054639,), (1387054651,), (1387054656,), (1387054658,), (1387054659,), (1387054660,), (1387054680,), (1387054678,), (1387054721,), (1387054745,), (1387054749,), (1387054752,), (1387054755,), (1387054821,), (1387054825,), (1387054828,), (1387054905,), (1387054916,), (1387054931,), (1387054934,), (1387054949,), (1387054959,), (1387054982,), (1387054985,), (1387054988,), (1387054992,), (1387054995,), (1387054997,), (1387055004,), (1387055006,), (1387055008,), (1387055011,), (1387055014,), (1387055017,), (1387055025,), (1387055028,), (1387055032,), (1387055035,), (1387055064,), (1387055075,), (1387055079,), (1387055129,), (1387055131,), (1387055134,), (1387055137,), (1387055146,), (1387055153,), (1387055155,), (1387055156,), (1387055162,), (1387055164,), (1387055167,), (1387055170,), (1387055174,), (1387055176,), (1387055193,), (1387055196,), (1387055200,), (1387055205,), (1387055210,), (1387055228,), (1387055231,), (1387055234,), (1387055249,), (1387055252,), (1387055255,), (1387055299,), (1387055310,), (1387055312,), (1387055315,), (1387055317,), (1387055335,), (1387055401,), (1387055404,), (1387055405,), (1387055579,), (1387055583,), (1387055585,), (1387055589,), (1387055593,), (1387055598,), (1387055599,), (1387055611,), (1387055613,), (1387055643,), (1387055645,), (1387055647,), (1387055655,), (1387056068,), (1387059050,), (1387059081,), (1387059084,), (1387059085,), (1387059087,), (1387059090,), (1387059093,), (1387059106,), (1387059109,), (1387059130,), (1387059138,), (1387059146,), (1387059155,), (1387059162,), (1387059163,), (1387059164,), (1387059169,), (1387059210,), (1387059231,), (1387059245,), (1387059249,), (1387059250,), (1387059251,), (1387059252,), (1387059257,), (1387059275,), (1387059277,), (1387059278,), (1387059281,), (1387059336,), (1387059342,), (1387059386,), (1387059392,), (1387059394,), (1387059397,), (1387059403,), (1387059416,), (1387059419,), (1387059425,), (1387059428,), (1387059432,), (1387059473,), (1387059475,), (1387059477,), (1387059480,), (1387059494,), (1387059501,), (1387059505,), (1387059509,), (1387059516,), (1387059527,), (1387059567,), (1387059574,), (1387059578,), (1387059585,), (1387059589,), (1387059613,), (1387059614,), (1387059616,), (1387059617,), (1387059626,), (1387059633,), (1387059640,), (1387059642,), (1387059644,), (1387059645,), (1387059646,), (1387059648,), (1387059664,), (1387059666,), (1387059668,), (1387059671,), (1387059712,), (1387059705,), (1387059707,), (1387059709,), (1387059755,), (1387059785,), (1387059788,), (1387059904,), (1387059908,), (1387059912,), (1387059975,), (1387059983,), (1387059985,), (1387060001,), (1387060004,), (1387060006,), (1387060008,), (1387060011,), (1387060030,), (1387060033,), (1387060036,), (1387060038,), (1387060065,), (1387060066,), (1387060069,), (1387060073,), (1387060077,), (1387060089,), (1387060093,), (1387060097,), (1387060142,), (1387060145,), (1387060148,), (1387060153,), (1387060229,), (1387060247,), (1387060250,), (1387060254,), (1387060258,), (1387060281,), (1387060284,), (1387060287,), (1387060291,), (1387060295,), (1387060299,), (1387060833,), (1387060835,), (1387060841,), (1387060843,), (1387060844,), (1387060850,), (1387060855,), (1387060864,), (1387060905,), (1387060906,), (1387061570,), (1387061589,), (1387060766,), (1387060769,), (1387060800,), (1387060804,), (1387060899,), (1387060901,), (1387060903,), (1387060930,), (1387060931,), (1387060944,), (1387060950,), (1387061450,), (1387061452,), (1387061459,), (1387061546,), (1387061593,), (1387061594,), (1387061597,), (1387061598,), (1387061602,), (1387061603,), (1387061607,), (1387061608,), (1387061616,), (1387061636,), (1387061638,), (1387061640,), (1387061641,), (1387061671,), (1387061683,), (1387061686,), (1387061690,), (1387061694,), (1387061716,), (1387061719,), (1387061721,), (1387061805,), (1387061997,), (1387061999,), (1387062001,), (1387062020,), (1387062022,), (1387062024,), (1387062040,), (1387062081,), (1387062086,), (1387062089,), (1387062093,), (1387062128,), (1387062130,), (1387062132,), (1387062134,), (1387062136,), (1387062145,), (1387062147,), (1387062149,), (1387062152,), (1387062156,), (1387062157,), (1387062159,), (1387062161,), (1387062163,), (1387062164,), (1387062168,), (1387062175,), (1387062177,), (1387062179,), (1387062181,), (1387062182,), (1387062188,), (1387062189,), (1387062191,), (1387062192,), (1387062199,), (1387062215,), (1387062269,), (1387062236,), (1387062238,), (1387062240,), (1387062327,), (1387062330,), (1387062333,), (1387062335,), (1387062338,), (1387062370,), (1387062384,), (1387062393,), (1387062401,), (1387062404,), (1387062405,), (1387062414,), (1387062416,), (1387062417,), (1387062419,), (1387062435,), (1387062442,), (1387062497,), (1387062499,), (1387062501,), (1387062504,), (1387062539,), (1387062542,), (1387062545,), (1387062547,), (1387062564,), (1387062566,), (1387062570,), (1387062584,), (1387062590,), (1387062591,), (1387062608,), (1387062613,), (1387062615,), (1387062616,), (1387062617,), (1387062631,), (1387062633,), (1387062635,), (1387062637,), (1387062647,), (1387062650,), (1387062653,), (1387062664,), (1387062666,), (1387062668,), (1387062670,), (1387062673,), (1387062676,), (1387062683,), (1387062685,), (1387062687,), (1387062690,), (1387062692,), (1387062694,), (1387062701,), (1387062704,), (1387062707,), (1387062719,), (1387062721,), (1387062723,), (1387062724,), (1387062727,), (1387062758,), (1387062738,), (1387062741,), (1387062744,), (1387062747,), (1387062751,), (1387062779,), (1387062805,), (1387062844,), (1387062850,), (1387062857,), (1387062861,), (1387062867,), (1387062929,), (1387062931,), (1387062933,), (1387062936,), (1387063039,), (1387063050,), (1387063055,), (1387063058,), (1387063082,), (1387063087,), (1387063088,), (1387063089,), (1387063097,), (1387063099,), (1387063100,), (1387063101,), (1387063103,), (1387063111,), (1387063127,), (1387063130,), (1387063132,), (1387063134,), (1387063137,), (1387063139,), (1387063145,), (1387063166,), (1387063170,), (1387063174,), (1387063177,), (1387063180,), (1387063186,), (1387063206,), (1387063208,), (1387063210,), (1387063212,), (1387063214,), (1387063229,), (1387063230,), (1387063231,), (1387063233,), (1387063240,), (1387063246,), (1387063248,), (1387063253,), (1387063258,), (1387063260,), (1387063283,), (1387063269,), (1387063271,), (1387063273,), (1387063278,), (1387063280,), (1387063289,), (1387063294,), (1387063295,), (1387063296,), (1387063298,), (1387063309,), (1387063311,), (1387063315,), (1387063325,), (1387063327,), (1387063329,), (1387063331,), (1387063333,), (1387063336,), (1387063354,), (1387063355,), (1387063356,), (1387063358,), (1387063368,), (1387063393,), (1387063394,), (1387063395,), (1387063397,), (1387063429,), (1387063431,), (1387063433,), (1387063447,), (1387063449,), (1387063453,), (1387063456,), (1387063458,), (1387063461,), (1387063469,), (1387063472,), (1387063476,), (1387063479,), (1387063482,), (1387063495,), (1387063498,), (1387063501,), (1387063515,), (1387063517,), (1387063518,), (1387063521,), (1387063530,), (1387063535,), (1387063572,), (1387063575,), (1387063581,), (1387063583,), (1387063587,), (1387063589,), (1387063609,), (1387063612,), (1387063614,), (1387063632,), (1387063635,), (1387063637,), (1387063647,), (1387063655,), (1387063658,), (1387063709,), (1387064365,), (1387063600,), (1387063602,), (1387063604,), (1387063664,), (1387063666,), (1387063690,), (1387063703,), (1387063752,), (1387063753,), (1387063766,), (1387063767,), (1387063770,), (1387063773,), (1387063776,), (1387063777,), (1387063781,), (1387063782,), (1387063784,), (1387063786,), (1387063789,), (1387064266,), (1387064359,), (1387064361,), (1387064363,), (1387064374,), (1387064378,), (1387064381,), (1387064384,), (1387064388,), (1387065043,), (1387065046,), (1387065049,), (1387065051,), (1387065053,), (1387065066,), (1387065068,), (1387065071,), (1387065075,), (1387065120,), (1387065586,), (1387065602,), (1387065605,), (1387065608,), (1387065620,), (1387065623,), (1387065626,), (1387065628,), (1387065647,), (1387065728,), (1387065725,), (1387065727,), (1387065748,), (1387065752,), (1387065755,), (1387065827,), (1387065830,), (1387065833,), (1387065835,), (1387065837,), (1387065838,), (1387065854,), (1387065856,), (1387065857,), (1387065858,), (1387065866,), (1387065906,), (1387065907,), (1387065908,), (1387065910,), (1387065913,), (1387065926,), (1387065930,), (1387065968,), (1387065972,), (1387065976,), (1387065980,), (1387066018,), (1387066021,), (1387066049,), (1387066051,), (1387066101,), (1387066103,), (1387066104,), (1387066107,), (1387066120,), (1387066122,), (1387066125,), (1387066133,), (1387066194,), (1387066198,), (1387066202,), (1387066205,), (1387066218,), (1387066220,), (1387066222,), (1387066225,), (1387066233,), (1387066241,), (1387066277,), (1387066279,), (1387066280,), (1387066283,), (1387066285,), (1387066287,), (1387066293,), (1387066296,), (1387066299,), (1387066305,), (1387066308,), (1387066310,), (1387066337,), (1387066316,), (1387066323,), (1387066326,), (1387066335,), (1387066343,), (1387066346,), (1387066351,), (1387066355,), (1387066374,), (1387066386,), (1387066387,), (1387066388,), (1387066389,), (1387066413,), (1387066418,), (1387066422,), (1387066424,), (1387066439,), (1387066442,), (1387066444,), (1387066447,), (1387066476,), (1387066478,), (1387066481,), (1387066484,), (1387066489,), (1387066493,), (1387066514,), (1387066518,), (1387066521,), (1387066528,), (1387066539,), (1387066572,), (1387066574,), (1387066597,), (1387066601,), (1387066604,), (1387066607,), (1387066609,), (1387066612,), (1387066634,), (1387066639,), (1387066642,), (1387066645,), (1387066647,), (1387066659,), (1387066661,), (1387066662,), (1387066663,), (1387066667,), (1387066687,), (1387066692,), (1387066696,), (1387066699,), (1387066702,), (1387066718,), (1387066721,), (1387066724,), (1387066727,), (1387066729,), (1387066755,), (1387066757,), (1387066758,), (1387066762,), (1387066768,), (1387066780,), (1387066785,), (1387066788,), (1387066823,), (1387066811,), (1387066814,), (1387066817,), (1387066819,), (1387066821,), (1387066840,), (1387066844,), (1387066846,), (1387066848,), (1387066850,), (1387066876,), (1387066879,), (1387066882,), (1387066885,), (1387066887,), (1387066901,), (1387066904,), (1387066907,), (1387066910,), (1387066914,), (1387066917,), (1387066958,), (1387066961,), (1387066962,), (1387066963,), (1387066965,), (1387066978,), (1387066979,), (1387066982,), (1387066986,), (1387066990,), (1387067016,), (1387067020,), (1387067023,), (1387067026,), (1387067030,), (1387067033,), (1387067065,), (1387067088,), (1387067090,), (1387067092,), (1387067119,), (1387067122,), (1387067123,), (1387067124,), (1387067126,), (1387067128,), (1387067145,), (1387067147,), (1387067149,), (1387067152,), (1387067173,), (1387067175,), (1387067178,), (1387067199,), (1387067203,), (1387067212,), (1387067220,), (1387067222,), (1387067231,), (1387067244,), (1387067248,), (1387067251,), (1387067255,), (1387067281,), (1387067284,), (1387067287,), (1387067289,), (1387067935,), (1387067939,), (1387067945,), (1387067949,), (1387067957,), (1387067313,), (1387067491,), (1387068157,), (1387068161,), (1387068164,), (1387068166,), (1387068170,), (1387068191,), (1387068195,), (1387068198,), (1387068540,), (1387068543,), (1387068727,), (1387068735,), (1387068739,), (1387068743,), (1387068754,), (1387068759,), (1387068950,), (1387069078,), (1387069081,), (1387069083,), (1387069085,), (1387069089,), (1387069114,), (1387069115,), (1387069118,), (1387069121,), (1387069125,), (1387069153,), (1387069158,), (1387069162,), (1387069182,), (1387069186,), (1387069190,), (1387069194,), (1387069197,), (1387069199,), (1387069221,), (1387069224,), (1387069227,), (1387069232,), (1387069250,), (1387069254,), (1387069286,), (1387071779,), (1387071773,), (1387071776,), (1387071897,), (1387071925,), (1387071948,), (1387071951,), (1387071973,), (1387072552,), (1387072576,), (1387072580,), (1387072586,), (1387072591,), (1387072609,), (1387072611,), (1387072615,), (1387072620,), (1387072640,), (1387072643,), (1387072646,), (1387072677,), (1387072681,), (1387072687,), (1387072705,), (1387072709,), (1387072712,), (1387072714,), (1387072734,), (1387072737,), (1387072742,), (1387072750,), (1387072780,), (1387072783,), (1387072786,), (1387072813,), (1387072841,), (1387072845,), (1387072849,), (1387072852,), (1387072874,), (1387072902,), (1387072906,), (1387072911,), (1387072918,), (1387072922,), (1387072925,), (1387072930,), (1387072934,), (1387072937,), (1387072940,), (1387072958,), (1387072960,), (1387072962,), (1387072964,), (1387072967,), (1387072971,), (1387072984,), (1387072986,), (1387072989,), (1387072993,), (1387072995,), (1387072997,), (1387073002,), (1387073005,), (1387073009,), (1387073012,), (1387073015,), (1387073016,), (1387073023,), (1387073031,), (1387073035,), (1387073039,), (1387073048,), (1387073050,), (1387073053,), (1387073056,), (1387073059,), (1387073062,), (1387073073,), (1387073077,), (1387073083,), (1387073114,), (1387073129,), (1387073206,), (1387073213,), (1387073218,), (1387073224,), (1387073228,), (1387073231,), (1387073251,), (1387073257,), (1387073261,), (1387073267,), (1387073269,), (1387073284,), (1387073288,), (1387073291,), (1387073292,), (1387073294,), (1387073295,), (1387073310,), (1387073314,), (1387073317,), (1387073320,), (1387073325,), (1387073328,), (1387073401,), (1387073405,), (1387073407,), (1387073425,), (1387073428,), (1387073429,), (1387073432,), (1387073485,), (1387073489,), (1387073517,), (1387073514,), (1387073515,), (1387073541,), (1387073544,), (1387073546,), (1387073570,), (1387073572,), (1387073575,), (1387073578,), (1387073583,), (1387073591,), (1387073593,), (1387073600,), (1387073604,), (1387073607,), (1387073610,), (1387073612,), (1387073627,), (1387073630,), (1387073631,), (1387073632,), (1387073634,), (1387073653,), (1387073655,), (1387073657,), (1387073688,), (1387073692,), (1387073696,), (1387073699,), (1387073702,), (1387073716,), (1387073739,), (1387073742,), (1387073744,), (1387073745,), (1387073747,), (1387073749,), (1387073765,), (1387073768,), (1387073769,), (1387073771,), (1387073776,), (1387073795,), (1387073798,), (1387073802,), (1387073805,), (1387073808,), (1387073810,), (1387073821,), (1387073824,), (1387073827,), (1387073830,), (1387073833,), (1387073836,), (1387073843,), (1387073860,), (1387073870,), (1387073880,), (1387073902,), (1387073905,), (1387073909,), (1387073913,), (1387073917,), (1387073920,), (1387073948,), (1387073952,), (1387073955,), (1387073958,), (1387073975,), (1387073977,), (1387073980,), (1387073984,), (1387073988,), (1387073990,), (1387073992,), (1387073993,), (1387073994,), (1387073999,), (1387074009,), (1387074013,), (1387074017,), (1387074019,), (1387074022,), (1387074025,), (1387074038,), (1387074032,), (1387074034,), (1387074036,), (1387074064,), (1387074099,), (1387074228,), (1387074231,), (1387074255,), (1387074259,), (1387074261,), (1387074264,), (1387074271,), (1387074287,), (1387074290,), (1387074293,), (1387074296,), (1387074299,), (1387074300,), (1387074302,), (1387074308,), (1387074310,), (1387074338,), (1387074340,), (1387074344,), (1387074347,), (1387074349,), (1387074352,), (1387074354,), (1387074355,), (1387074357,), (1387074359,), (1387074394,), (1387074396,), (1387074398,), (1387074401,), (1387074407,), (1387074424,), (1387074426,), (1387074430,), (1387074433,), (1387074454,), (1387074739,), (1387074817,), (1387074820,), (1387074915,), (1387074966,), (1387075000,), (1387075005,), (1387075010,), (1387075013,), (1387075019,), (1387075028,), (1387075047,), (1387075050,), (1387075053,), (1387075055,), (1387075492,), (1387075060,), (1387075489,), (1387075519,), (1387075522,), (1387075524,), (1387075526,), (1387075528,), (1387075537,), (1387075546,), (1387075549,), (1387075552,), (1387076018,), (1387076021,), (1387076024,), (1387076027,), (1387076240,), (1387076343,), (1387076346,), (1387076348,), (1387076351,), (1387076354,), (1387076365,), (1387076369,), (1387076373,), (1387076377,), (1387076402,), (1387076413,), (1387076415,), (1387076418,), (1387076434,), (1387076436,), (1387076439,), (1387076442,), (1387076454,), (1387076460,), (1387076485,), (1387076491,), (1387076495,), (1387076499,), (1387076515,), (1387076518,), (1387076522,), (1387076525,), (1387076547,), (1387076552,), (1387076554,), (1387076556,), (1387076558,), (1387076572,), (1387076575,), (1387076578,), (1387076580,), (1387076582,), (1387076584,), (1387076629,), (1387076612,), (1387076616,), (1387076621,), (1387076625,), (1387076645,), (1387076650,), (1387076652,), (1387076711,), (1387076715,), (1387076717,), (1387076721,), (1387076724,), (1387076728,), (1387076741,), (1387076744,), (1387076747,), (1387076750,), (1387076753,), (1387076760,), (1387076777,), (1387076780,), (1387076785,), (1387076788,), (1387076792,), (1387076795,), (1387076799,), (1387076801,), (1387076802,), (1387076806,), (1387076809,), (1387076815,), (1387076819,), (1387076827,), (1387076830,), (1387076849,), (1387076852,), (1387076853,), (1387076854,), (1387076869,), (1387076872,), (1387076873,), (1387076875,), (1387076878,), (1387076884,), (1387076901,), (1387076904,), (1387076907,), (1387076910,), (1387076913,), (1387076914,), (1387076918,), (1387076920,), (1387076922,), (1387076926,), (1387076927,), (1387076929,), (1387076932,), (1387076951,), (1387076956,), (1387076961,), (1387076965,), (1387076968,), (1387076981,), (1387076984,), (1387076986,), (1387076988,), (1387076990,), (1387076998,), (1387077034,), (1387077038,), (1387077091,), (1387077096,), (1387077098,), (1387077105,), (1387077119,), (1387077124,), (1387077127,), (1387077131,), (1387077134,), (1387077167,), (1387077151,), (1387077155,), (1387077157,), (1387077160,), (1387077164,), (1387077172,), (1387077175,), (1387077178,), (1387077188,), (1387077191,), (1387077196,), (1387077200,), (1387077210,), (1387077231,), (1387077233,), (1387077235,), (1387077237,), (1387077239,), (1387077241,), (1387077257,), (1387077260,), (1387077262,), (1387077289,), (1387077292,), (1387077295,), (1387077297,), (1387077300,), (1387077303,), (1387077311,), (1387077313,), (1387077316,), (1387077319,), (1387077323,), (1387077332,), (1387077347,), (1387077357,), (1387077359,), (1387077362,), (1387077379,), (1387077381,), (1387077383,), (1387077385,), (1387077393,), (1387077397,), (1387077416,), (1387077420,), (1387077423,), (1387077427,), (1387077440,), (1387077444,), (1387077447,), (1387077450,), (1387077453,), (1387077456,), (1387077484,), (1387077488,), (1387077509,), (1387077551,), (1387077570,), (1387077574,), (1387077630,), (1387077621,), (1387077627,), (1387077650,), (1387077653,), (1387077655,), (1387077657,), (1387077658,), (1387077667,), (1387077676,), (1387077680,), (1387077683,), (1387077686,), (1387077689,), (1387077692,), (1387077705,), (1387077707,), (1387077709,), (1387077731,), (1387077734,), (1387077737,), (1387077741,), (1387077744,), (1387077748,), (1387077750,), (1387077760,), (1387077762,), (1387077765,), (1387077770,), (1387077776,), (1387077782,), (1387077801,), (1387077805,), (1387077809,), (1387077813,), (1387077831,), (1387077835,), (1387077838,), (1387077839,), (1387077873,), (1387077876,), (1387077879,), (1387077883,), (1387077888,), (1387077891,), (1387077897,), (1387077898,), (1387077908,), (1387077913,), (1387077923,), (1387077927,), (1387077937,), (1387077945,), (1387077959,), (1387077961,), (1387077962,), (1387077964,), (1387077966,), (1387077994,), (1387077997,), (1387078000,), (1387078003,), (1387078006,), (1387078016,), (1387078036,), (1387078041,), (1387078044,), (1387078420,), (1387078478,), (1387078481,), (1387078485,), (1387078684,), (1387078686,), (1387078689,), (1387078696,), (1387078697,), (1387078673,), (1387078677,), (1387078681,), (1387078849,), (1387078851,), (1387078854,), (1387078856,), (1387078928,), (1387078959,), (1387078961,), (1387078962,), (1387078965,), (1387078970,), (1387078976,), (1387078996,), (1387078999,), (1387079002,), (1387079007,), (1387079010,), (1387079013,), (1387079019,), (1387079021,), (1387079026,), (1387079028,), (1387079031,), (1387079143,), (1387079413,), (1387079417,), (1387079421,), (1387079534,), (1387079537,), (1387079615,), (1387079621,), (1387079627,), (1387079704,), (1387079738,), (1387079742,), (1387079746,), (1387079780,), (1387079784,), (1387079788,), (1387079993,), (1387079997,), (1387080000,), (1387080009,), (1387080014,), (1387080123,), (1387080125,), (1387080127,), (1387080133,), (1387080140,), (1387080156,), (1387080179,), (1387080184,), (1387080188,), (1387080206,), (1387080289,), (1387080291,), (1387080295,), (1387080300,), (1387080304,), (1387080306,), (1387080311,), (1387080312,), (1387080314,), (1387080319,), (1387080331,), (1387080336,), (1387080346,), (1387080348,), (1387080351,), (1387080378,), (1387080361,), (1387080366,), (1387080398,), (1387080402,), (1387080404,), (1387080415,), (1387080421,), (1387080564,), (1387080580,), (1387080589,), (1387080592,), (1387080595,), (1387080602,), (1387080670,), (1387080680,), (1387080795,), (1387080798,), (1387080809,), (1387080811,), (1387080998,), (1387081003,), (1387081061,), (1387081065,), (1387081247,), (1387081260,), (1387081283,), (1387081311,), (1387081320,), (1387081414,), (1387081418,), (1387081423,), (1387081426,), (1387081455,), (1387081458,), (1387081462,), (1387081466,), (1387081469,), (1387081471,), (1387081476,), (1387081479,), (1387081485,), (1387081504,), (1387081507,), (1387081512,), (1387081516,), (1387081520,), (1387081644,), (1387081648,), (1387081652,), (1387081661,), (1387081669,), (1387081699,), (1387081705,), (1387081708,), (1387081712,), (1387081894,), (1387081908,), (1387081910,), (1387081912,), (1387081915,), (1387081918,), (1387081977,), (1387081979,), (1387081984,), (1387081987,), (1387081990,), (1387081994,), (1387082139,), (1387082152,), (1387082164,), (1387082168,), (1387082173,), (1387082217,), (1387082199,), (1387082215,), (1387082258,), (1387082262,), (1387082266,), (1387082281,), (1387082284,), (1387082371,), (1387082375,), (1387082379,), (1387082435,), (1387082437,), (1387082440,), (1387082443,), (1387082557,), (1387082703,), (1387082740,), (1387082743,), (1387082844,), (1387082896,), (1387082897,), (1387082999,), (1387083001,), (1387083003,), (1387083005,), (1387083009,), (1387083013,), (1387083035,), (1387083043,), (1387083045,), (1387083047,), (1387083049,), (1387083080,), (1387083082,), (1387083084,), (1387083111,), (1387083116,), (1387083120,), (1387083124,), (1387083127,), (1387083132,), (1387083160,), (1387083163,), (1387083165,), (1387083168,), (1387083171,), (1387083188,), (1387083193,), (1387083197,), (1387083248,), (1387083253,), (1387083255,), (1387083257,), (1387083260,), (1387083263,), (1387083430,), (1387083464,), (1387083469,), (1387083473,), (1387083589,), (1387083594,), (1387083597,), (1387083602,), (1387083607,), (1387083610,), (1387083612,), (1387083615,), (1387083622,), (1387083628,), (1387083632,), (1387083634,), (1387083674,), (1387083666,), (1387083669,), (1387083672,), (1387083756,), (1387083760,), (1387083763,), (1387083767,), (1387083771,), (1387083785,), (1387083803,), (1387083806,), (1387083808,), (1387083829,), (1387083835,), (1387083848,), (1387083884,), (1387083888,), (1387083890,), (1387083893,), (1387083914,), (1387083918,), (1387083921,), (1387083924,), (1387083928,), (1387083933,), (1387083983,), (1387083997,), (1387084002,), (1387084005,), (1387084027,), (1387084031,), (1387084063,), (1387084065,), (1387084068,), (1387084072,), (1387084077,), (1387084090,), (1387084096,), (1387084437,), (1387084441,), (1387084445,), (1387084446,), (1387085086,), (1387085092,), (1387085097,), (1387085100,), (1387085111,), (1387085310,), (1387085328,), (1387085332,), (1387085337,), (1387085005,), (1387085085,), (1387085458,), (1387085463,), (1387085467,), (1387085951,), (1387085966,), (1387085982,), (1387086206,), (1387086210,), (1387086215,), (1387086220,), (1387086226,), (1387086232,), (1387086239,), (1387086244,), (1387086248,), (1387086252,), (1387086255,), (1387086263,), (1387086293,), (1387086297,), (1387086300,), (1387086701,), (1387086730,), (1387086889,), (1387086893,), (1387086897,), (1387086995,), (1387087000,), (1387087037,), (1387087043,), (1387087048,), (1387087123,), (1387087128,), (1387087132,), (1387087172,), (1387087174,), (1387087177,), (1387087182,), (1387087185,), (1387087189,), (1387087211,), (1387087225,), (1387087229,), (1387087340,), (1387087344,), (1387087348,), (1387087352,), (1387087432,), (1387087435,), (1387087437,), (1387087440,), (1387087486,), (1387087489,), (1387087494,), (1387087497,), (1387087501,), (1387087504,), (1387087519,), (1387087523,), (1387087526,), (1387087531,), (1387087541,), (1387087547,), (1387087551,), (1387087556,), (1387087603,), (1387087588,), (1387087592,), (1387087595,), (1387087598,), (1387087601,), (1387087621,), (1387087624,), (1387087627,), (1387087631,), (1387087637,), (1387087680,), (1387087683,), (1387087684,), (1387087686,), (1387087691,), (1387087710,), (1387087730,), (1387087734,), (1387087756,), (1387087760,), (1387087763,), (1387087765,), (1387087859,), (1387087888,), (1387087889,), (1387087891,), (1387087895,), (1387087898,), (1387087924,), (1387087927,), (1387087931,), (1387087934,), (1387087940,), (1387087967,), (1387087973,), (1387087975,), (1387087980,), (1387088042,), (1387088044,), (1387088047,), (1387088051,), (1387088055,), (1387088059,), (1387088074,), (1387088100,), (1387088113,), (1387088117,), (1387088119,), (1387088121,), (1387088128,), (1387088162,), (1387088164,), (1387088165,), (1387088167,), (1387088171,), (1387088196,), (1387088199,), (1387088201,), (1387088205,), (1387088210,), (1387088432,), (1387088435,), (1387088437,), (1387088439,), (1387088477,), (1387088503,), (1387088507,), (1387088509,), (1387088527,), (1387088534,), (1387088670,), (1387088672,), (1387088674,), (1387088676,), (1387088679,), (1387088727,), (1387088730,), (1387088733,), (1387088735,), (1387088747,), (1387088751,), (1387088722,), (1387088725,), (1387088762,), (1387088782,), (1387088789,), (1387088838,), (1387088843,), (1387088846,), (1387088851,), (1387088856,), (1387088884,), (1387088887,), (1387088892,), (1387088898,), (1387088903,), (1387088907,), (1387088912,), (1387088916,), (1387088918,), (1387088921,), (1387088941,), (1387088943,), (1387088952,), (1387088959,), (1387088967,), (1387088989,), (1387088990,), (1387089044,), (1387089062,), (1387089065,), (1387089112,), (1387089114,), (1387089117,), (1387089131,), (1387089138,), (1387089141,), (1387089159,), (1387089162,), (1387089165,), (1387089169,), (1387089171,), (1387089216,), (1387089219,), (1387089221,), (1387089308,), (1387089316,), (1387089430,), (1387089444,), (1387089580,), (1387089582,), (1387089588,), (1387089595,), (1387089603,), (1387089608,), (1387089618,), (1387089620,), (1387089621,), (1387089656,), (1387089663,), (1387089671,), (1387089676,), (1387089729,), (1387089730,), (1387089731,), (1387089733,), (1387089735,), (1387089744,), (1387089781,), (1387089783,), (1387089830,), (1387090075,), (1387090091,), (1387090166,), (1387090156,), (1387090160,), (1387090164,), (1387090198,), (1387090201,), (1387090203,), (1387090205,), (1387090275,), (1387090281,), (1387090292,), (1387090297,), (1387090530,), (1387090544,), (1387090554,), (1387090558,), (1387090636,), (1387090642,), (1387090868,), (1387091284,), (1387091308,), (1387091311,), (1387091314,), (1387091318,), (1387091800,), (1387091803,), (1387091825,), (1387091828,), (1387092030,), (1387092035,), (1387092074,), (1387092081,), (1387092082,), (1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,), (1387105581,), (1387105647,), (1387105758,), (1387105761,), (1387105764,), (1387105768,), (1387106201,), (1387106207,), (1387106212,), (1387106216,), (1387106254,), (1387106270,), (1387106273,), (1387106276,), (1387106314,), (1387106316,), (1387106317,), (1387106320,), (1387106719,), (1387106724,), (1387106734,), (1387106737,), (1387106758,), (1387106907,), (1387106911,), (1387107207,), (1387107304,), (1387107367,), (1387107370,), (1387107373,), (1387107379,), (1387107383,), (1387107402,), (1387107407,), (1387107410,), (1387107413,), (1387107579,), (1387107582,), (1387107620,), (1387107645,), (1387107675,), (1387107749,), (1387107753,), (1387107963,), (1387108031,), (1387108036,), (1387108044,), (1387108099,), (1387108104,), (1387108108,), (1387108113,), (1387108514,), (1387108079,), (1387108839,), (1387108841,), (1387109000,), (1387109004,), (1387109149,), (1387109153,), (1387109157,), (1387109187,), (1387109400,), (1387109863,), (1387109866,), (1387109869,), (1387109873,), (1387109881,), (1387110074,), (1387110078,), (1387110121,), (1387110126,), (1387110185,), (1387110927,), (1387111225,), (1387111227,), (1387111229,), (1387111263,), (1387111268,), (1387111271,), (1387111628,), (1387111632,), (1387112156,), (1387112160,), (1387112163,), (1387112167,), (1387112171,), (1387112330,), (1387112335,), (1387112340,), (1387112675,), (1387112716,), (1387112738,), (1387112759,), (1387112781,), (1387112907,), (1387112949,), (1387112990,), (1387113010,), (1387113026,), (1387113030,), (1387113055,), (1387113066,), (1387113413,), (1387113418,), (1387113445,), (1387113744,), (1387113702,), (1387113716,), (1387113738,), (1387113768,), (1387113774,), (1387113968,), (1387114097,), (1387114228,), (1387114413,), (1387115265,), (1387115283,), (1387115347,), (1387115351,), (1387115668,), (1387115671,), (1387115704,), (1387115736,), (1387115767,), (1387115772,), (1387115777,), (1387115805,), (1387115809,), (1387115821,), (1387115824,), (1387115992,), (1387116006,), (1387116237,), (1387116239,), (1387116242,), (1387116263,), (1387116268,), (1387116271,), (1387116275,), (1387116308,), (1387116316,), (1387116321,), (1387116330,), (1387116726,), (1387116730,), (1387116733,), (1387116804,), (1387116815,), (1387116865,), (1387116870,), (1387116873,), (1387116877,), (1387116946,), (1387116950,), (1387116954,), (1387116956,), (1387116960,), (1387116999,), (1387117004,), (1387117007,), (1387117010,), (1387117243,), (1387117240,), (1387117253,), (1387117446,), (1387118235,), (1387118308,), (1387118313,), (1387118318,), (1387118323,), (1387118329,), (1387118331,), (1387118768,), (1387118769,), (1387118772,), (1387118774,), (1387118775,), (1387118777,), (1387118982,), (1387119077,), (1387119081,), (1387119379,), (1387119894,), (1387119897,), (1387119904,), (1387119936,), (1387119941,), (1387119945,), (1387119948,), (1387119952,), (1387120433,), (1387120458,), (1387120475,), (1387120484,), (1387120767,), (1387120770,), (1387120772,), (1387120775,), (1387120780,), (1387120798,), (1387120803,), (1387120807,), (1387120810,), (1387120837,), (1387120841,), (1387120844,), (1387120847,), (1387120868,), (1387120872,), (1387120875,), (1387120879,), (1387120887,), (1387121692,), (1387122161,), (1387122251,), (1387122255,), (1387122258,), (1387122298,), (1387122303,), (1387122858,), (1387122867,), (1387122870,), (1387122875,), (1387122897,), (1387122904,), (1387123094,), (1387123099,), (1387123457,), (1387123369,), (1387123481,), (1387123485,), (1387123486,), (1387123489,), (1387123508,), (1387123511,), (1387123514,), (1387123516,), (1387123548,), (1387123630,), (1387125003,), (1387125049,), (1387125595,), (1387125600,), (1387127209,), (1387127213,), (1387127215,), (1387127619,), (1387127639,), (1387127815,), (1387127822,), (1387127824,), (1387128236,), (1387128552,), (1387128554,), (1387128557,), (1387128559,), (1387128562,), (1387128565,), (1387128571,), (1387128574,), (1387128576,), (1387128578,), (1387128584,), (1387128880,), (1387128884,), (1387128888,), (1387128896,), (1387128941,), (1387128945,), (1387128980,), (1387128985,), (1387128989,), (1387129900,), (1387129932,), (1387129964,), (1387129966,), (1387130193,), (1387130433,), (1387130437,), (1387130520,), (1387130834,), (1387130852,), (1387131004,), (1387130981,), (1387130987,), (1387130998,), (1387131002,), (1387131191,), (1387131195,), (1387131200,), (1387131203,), (1387131207,), (1387131211,), (1387131223,), (1387131226,), (1387131228,), (1387131232,), (1387131238,), (1387131258,), (1387131260,), (1387131263,), (1387131267,), (1387131270,), (1387131273,), (1387131829,), (1387132005,), (1387132014,), (1387132019,), (1387132055,), (1387132058,), (1387132082,), (1387132289,), (1387132380,), (1387132382,), (1387132386,), (1387132390,), (1387132394,), (1387132415,), (1387132426,), (1387132455,), (1387132811,), (1387133294,), (1387133297,), (1387133430,), (1387133563,), (1387133570,), (1387133580,), (1387133700,), (1387133703,), (1387133706,), (1387133710,), (1387133719,), (1387133722,), (1387133738,), (1387133741,), (1387133743,), (1387133802,), (1387133821,), (1387133827,), (1387133837,), (1387133839,), (1387133869,), (1387133873,), (1387133875,), (1387133881,), (1387133885,), (1387133889,), (1387133892,), (1387133895,), (1387134965,), (1387135662,), (1387135822,), (1387135833,), (1387135942,), (1387136035,), (1387136058,), (1387136253,), (1387136257,), (1387136261,), (1387136870,), (1387136876,), (1387138986,), (1387138983,), (1387139192,), (1387139206,), (1387139398,), (1387139407,), (1387139429,), (1387139432,), (1387139509,), (1387139515,), (1387139521,), (1387139524,), (1387139528,), (1387139530,), (1387139586,), (1387139595,), (1387139610,), (1387139617,), (1387139629,), (1387139633,), (1387139637,), (1387139656,), (1387139662,), (1387139666,), (1387139671,), (1387139675,), (1387139677,), (1387140018,), (1387140034,), (1387140039,), (1387140041,), (1387140043,), (1387140554,), (1387140557,), (1387140565,), (1387140572,), (1387140701,), (1387140900,), (1387140906,), (1387140909,), (1387140911,), (1387140916,), (1387140972,), (1387140989,), (1387140995,), (1387141006,), (1387141034,), (1387141083,), (1387141056,), (1387141068,), (1387141071,), (1387141077,), (1387141080,), (1387141113,), (1387141116,), (1387141119,), (1387141123,), (1387141168,), (1387141783,), (1387141814,), (1387141831,), (1387141834,), (1387141868,), (1387142188,), (1387142192,), (1387142197,), (1387142202,), (1387142206,), (1387142208,), (1387142229,), (1387142263,), (1387142271,), (1387142275,), (1387142285,), (1387142290,), (1387142300,), (1387142308,), (1387142310,), (1387142439,), (1387142493,), (1387142502,), (1387142515,), (1387142848,), (1387142933,), (1387143249,), (1387143266,), (1387143279,), (1387143882,), (1387143886,), (1387144192,), (1387144196,), (1387144200,), (1387144228,), (1387144232,), (1387144235,), (1387144239,), (1387144244,), (1387144699,), (1387144752,), (1387144767,), (1387144838,), (1387144981,), (1387144998,), (1387145012,), (1387145035,), (1387145068,), (1387145071,), (1387145224,), (1387145227,), (1387145419,), (1387145422,), (1387145544,), (1387145566,), (1387145613,), (1387145616,), (1387145706,), (1387145710,), (1387145714,), (1387145719,), (1387145849,), (1387145831,), (1387145836,), (1387145839,), (1387145842,), (1387145845,), (1387145993,), (1387146022,), (1387146076,), (1387146094,), (1387146112,), (1387146126,), (1387146459,), (1387146463,), (1387146554,), (1387146558,), (1387146762,), (1387146769,), (1387146783,), (1387146786,), (1387146789,), (1387147142,), (1387147145,), (1387147172,), (1387147174,), (1387147178,), (1387147200,), (1387147204,), (1387147206,), (1387147237,), (1387147240,), (1387147264,), (1387147600,), (1387147608,), (1387147629,), (1387147632,), (1387147668,), (1387147688,), (1387147711,), (1387147713,), (1387147716,), (1387147720,), (1387147723,), (1387148128,), (1387148134,), (1387148137,), (1387148140,), (1387148142,), (1387148147,), (1387148280,), (1387148290,), (1387148295,), (1387148308,), (1387148485,), (1387148488,), (1387148489,), (1387148490,), (1387148838,), (1387148842,), (1387149035,), (1387149038,), (1387149040,), (1387149084,), (1387149344,), (1387149360,), (1387149371,), (1387149379,), (1387149418,), (1387149428,), (1387149452,), (1387149457,), (1387149463,), (1387149475,), (1387149479,), (1387149543,), (1387149612,), (1387150164,), (1387150269,), (1387150272,), (1387150275,), (1387150283,), (1387150471,), (1387150516,), (1387150522,), (1387150554,), (1387151688,), (1387151691,), (1387152413,), (1387149521,), (1387149525,), (1387149528,), (1387149531,), (1387149535,), (1387150313,), (1387150317,), (1387150321,), (1387150325,), (1387150328,), (1387150586,), (1387150590,), (1387150603,), (1387151116,), (1387151258,), (1387151274,), (1387151476,), (1387151477,), (1387151529,), (1387151533,), (1387151575,), (1387151584,), (1387151597,), (1387151601,), (1387151605,), (1387151609,), (1387151613,), (1387151615,), (1387151621,), (1387151625,), (1387151629,), (1387151632,), (1387151635,), (1387151639,), (1387151662,), (1387151668,), (1387151677,), (1387151682,), (1387151697,), (1387151701,), (1387151706,), (1387151917,), (1387152410,), (1387152418,), (1387152420,), (1387152424,), (1387152428,), (1387152431,), (1387152434,), (1387152709,), (1387152714,), (1387152716,), (1387152719,), (1387152739,), (1387152744,), (1387152748,), (1387152750,), (1387152753,), (1387152769,), (1387152771,), (1387169071,), (1387169330,), (1387169437,), (1387169854,), (1387169857,), (1387170390,), (1387170394,), (1387170398,), (1387170438,), (1387171005,), (1387171034,), (1387171329,), (1387171478,), (1387171480,), (1387171482,), (1387172120,), (1387172308,), (1387172339,), (1387172381,), (1387172425,), (1387172427,), (1387172430,), (1387172532,), (1387172621,), (1387172627,), (1387172631,), (1387172987,), (1387172992,), (1387172996,), (1387173001,), (1387173013,), (1387173025,), (1387173156,), (1387173160,), (1387173166,), (1387173168,), (1387173422,), (1387173424,), (1387173456,), (1387173461,), (1387173465,), (1387173469,), (1387173482,), (1387173483,), (1387173484,), (1387173509,), (1387173638,), (1387173657,), (1387173968,), (1387173979,), (1387174003,), (1387174053,), (1387174058,), (1387174063,), (1387174066,), (1387174070,), (1387175206,), (1387175211,), (1387175215,), (1387175217,), (1387175451,), (1387175497,), (1387175549,), (1387175769,), (1387175773,), (1387175778,), (1387175993,), (1387175998,), (1387176004,), (1387176007,), (1387176012,), (1387176068,), (1387176074,), (1387176111,), (1387176369,), (1387176813,), (1387176828,), (1387176041,), (1387176047,), (1387176051,), (1387176065,), (1387176857,), (1387176862,), (1387176866,), (1387176910,), (1387176912,), (1387176913,), (1387176915,), (1387177079,), (1387177251,), (1387177254,), (1387177778,), (1387177781,), (1387177784,), (1387177787,), (1387177795,), (1387177798,), (1387177801,), (1387177805,), (1387178000,), (1387178009,), (1387178010,), (1387178154,), (1387178190,), (1387178193,), (1387178195,), (1387178249,), (1387178257,), (1387178285,), (1387178291,), (1387178730,), (1387178952,), (1387179018,), (1387179021,), (1387179056,), (1387179061,), (1387179080,), (1387179085,), (1387179088,), (1387179090,), (1387179093,), (1387179139,), (1387179143,), (1387179145,), (1387179148,), (1387179457,), (1387179460,), (1387179490,), (1387179494,), (1387179499,), (1387179503,), (1387179540,), (1387179560,), (1387179574,), (1387179577,), (1387179581,), (1387179632,), (1387179646,), (1387179664,), (1387179689,), (1387179694,), (1387179711,), (1387179779,), (1387179784,), (1387179788,), (1387179795,), (1387179811,), (1387179815,), (1387179822,), (1387179823,), (1387179827,), (1387179832,), (1387179886,), (1387179891,), (1387179893,), (1387179896,), (1387179902,), (1387179904,), (1387179908,), (1387179866,), (1387179878,), (1387179881,), (1387179949,), (1387179953,), (1387179957,), (1387179959,), (1387179962,), (1387179966,), (1387180005,), (1387180010,), (1387180015,), (1387180019,), (1387180024,), (1387180027,), (1387180051,), (1387180055,), (1387180058,), (1387180062,), (1387180096,), (1387180099,), (1387180102,), (1387180105,), (1387180109,), (1387180112,), (1387180145,), (1387180149,), (1387180151,), (1387180153,), (1387180173,), (1387180199,), (1387180202,), (1387180205,), (1387180208,), (1387180213,), (1387180262,), (1387180273,), (1387180277,), (1387180283,), (1387180306,), (1387180307,), (1387180309,), (1387180311,), (1387180315,), (1387180318,), (1387180332,), (1387180334,), (1387180337,), (1387180338,), (1387180353,), (1387180354,), (1387180362,), (1387180366,), (1387180369,), (1387180372,), (1387180373,), (1387180376,), (1387180382,), (1387180386,), (1387180592,), (1387180595,), (1387180597,), (1387180602,), (1387180608,), (1387180635,), (1387180640,), (1387180641,), (1387180644,), (1387180647,), (1387180672,), (1387180661,), (1387180664,), (1387180665,), (1387180668,), (1387180714,), (1387180727,), (1387180734,), (1387180736,), (1387180739,), (1387180742,), (1387180782,), (1387180796,), (1387180803,), (1387180807,), (1387180810,), (1387180844,), (1387180846,), (1387180849,), (1387180852,), (1387180855,), (1387180858,), (1387180863,), (1387180865,), (1387180867,), (1387180873,), (1387180877,), (1387180883,), (1387180887,), (1387180899,), (1387180907,), (1387180910,), (1387180913,), (1387180934,), (1387180942,), (1387180948,), (1387180951,), (1387180999,), (1387181005,), (1387181006,), (1387181008,), (1387181014,), (1387181016,), (1387181057,), (1387181064,), (1387181079,), (1387181083,), (1387181086,), (1387181106,), (1387181110,), (1387181115,), (1387181118,), (1387181141,), (1387181145,), (1387181148,), (1387181152,), (1387181156,), (1387181159,), (1387181171,), (1387181175,), (1387181178,), (1387181179,), (1387181181,), (1387181183,), (1387181213,), (1387181217,), (1387181220,), (1387181277,), (1387181294,), (1387181317,), (1387181320,), (1387181323,), (1387181329,), (1387181350,), (1387181355,), (1387181359,), (1387181373,), (1387181535,), (1387181540,), (1387181552,), (1387181556,), (1387181560,), (1387181564,), (1387181568,), (1387181577,), (1387181586,), (1387181591,), (1387181627,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01102025': {'nb_upload': 87, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27405398]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1387181627] map_info['map_portfolio_photo'] : {27405398: [1387181627, 1387181591, 1387181586, 1387181577, 1387181568, 1387181564, 1387181560, 1387181556, 1387181552, 1387181540, 1387181535, 1387181373, 1387181359, 1387181355, 1387181350, 1387181329, 1387181323, 1387181320, 1387181317, 1387181294, 1387181277, 1387181220, 1387181217, 1387181213, 1387181183, 1387181181, 1387181179, 1387181178, 1387181175, 1387181171, 1387181159, 1387181156, 1387181152, 1387181148, 1387181145, 1387181141, 1387181118, 1387181115, 1387181110, 1387181106, 1387181086, 1387181083, 1387181079, 1387181064, 1387181057, 1387181016, 1387181014, 1387181008, 1387181006, 1387181005, 1387180999, 1387180951, 1387180948, 1387180942, 1387180934, 1387180913, 1387180910, 1387180907, 1387180899, 1387180887, 1387180883, 1387180877, 1387180873, 1387180867, 1387180865, 1387180863, 1387180858, 1387180855, 1387180852, 1387180849, 1387180846, 1387180844, 1387180810, 1387180807, 1387180803, 1387180796, 1387180782, 1387180742, 1387180739, 1387180736, 1387180734, 1387180727, 1387180714, 1387180668, 1387180665, 1387180664, 1387180661]} final : True mtd_id 4302 list_pids : [1387181627] Looping around the photos to save general results len do output : 1 /27405398Didn'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, '3807863') ('4302', '27405398', '1387181627', None, None, None, None, None, '3807863') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '27405398', 'None', None, None, None, None, '3807863'), ('4302', '27405398', '1387181627', None, None, None, None, None, '3807863')] time used for this insertion : 0.03702378273010254 save_final save missing photos in datou_result : time spend for datou_step_exec : 10.867262125015259 time spend to save output : 0.03713488578796387 total time spend for step 5 : 10.904397010803223 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 (3807863) 2.05user 2.32system 0:24.18elapsed 18%CPU (0avgtext+0avgdata 154948maxresident)k 144inputs+6024outputs (16major+62100minor)pagefaults 0swaps