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 : 2007377 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 (3405795) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3405795) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528614 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3405795'] with mtr_portfolio_ids : ['25528614'] and first list_photo_ids : [] new path : /proc/2007377/ Name: python3 Umask: 0002 State: R (running) Tgid: 2007377 Ngid: 0 Pid: 2007377 PPid: 2007376 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2007377 NSpid: 2007377 NSpgid: 2006159 NSsid: 2006159 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100072 kB VmRSS: 100072 kB RssAnon: 59808 kB RssFile: 40264 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2007377', 'Ngid': '0', 'Pid': '2007377', 'PPid': '2007376', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2007377', 'NSpid': '2007377', 'NSpgid': '2006159', 'NSsid': '2006159', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100072 kB', 'VmRSS': '100072 kB', 'RssAnon': '59808 kB', 'RssFile': '40264 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '2007377', '1106856', '0', '1106856', '865608', '100072', b'', 'marlene', '3405795') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25528614) 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 (3405795 ) ) 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 (25528614) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374550503, 'portfolio_id': 25528614}, {'photo_id': 1374550489, 'portfolio_id': 25528614}, {'photo_id': 1374550487, 'portfolio_id': 25528614}, {'photo_id': 1374550485, 'portfolio_id': 25528614}, {'photo_id': 1374550483, 'portfolio_id': 25528614}, {'photo_id': 1374550482, 'portfolio_id': 25528614}, {'photo_id': 1374550478, 'portfolio_id': 25528614}, {'photo_id': 1374550454, 'portfolio_id': 25528614}, {'photo_id': 1374550450, 'portfolio_id': 25528614}, {'photo_id': 1374550449, 'portfolio_id': 25528614}, {'photo_id': 1374550448, 'portfolio_id': 25528614}, {'photo_id': 1374550447, 'portfolio_id': 25528614}, {'photo_id': 1374550445, 'portfolio_id': 25528614}, {'photo_id': 1374550421, 'portfolio_id': 25528614}, {'photo_id': 1374550418, 'portfolio_id': 25528614}, {'photo_id': 1374550417, 'portfolio_id': 25528614}, {'photo_id': 1374550415, 'portfolio_id': 25528614}, {'photo_id': 1374550413, 'portfolio_id': 25528614}, {'photo_id': 1374550405, 'portfolio_id': 25528614}, {'photo_id': 1374550384, 'portfolio_id': 25528614}, {'photo_id': 1374550351, 'portfolio_id': 25528614}, {'photo_id': 1374550337, 'portfolio_id': 25528614}, {'photo_id': 1374550333, 'portfolio_id': 25528614}, {'photo_id': 1374550331, 'portfolio_id': 25528614}, {'photo_id': 1374550329, 'portfolio_id': 25528614}, {'photo_id': 1374550327, 'portfolio_id': 25528614}, {'photo_id': 1374550323, 'portfolio_id': 25528614}, {'photo_id': 1374550300, 'portfolio_id': 25528614}, {'photo_id': 1374550296, 'portfolio_id': 25528614}, {'photo_id': 1374550293, 'portfolio_id': 25528614}, {'photo_id': 1374550286, 'portfolio_id': 25528614}, {'photo_id': 1374550279, 'portfolio_id': 25528614}, {'photo_id': 1374550275, 'portfolio_id': 25528614}, {'photo_id': 1374550259, 'portfolio_id': 25528614}, {'photo_id': 1374550256, 'portfolio_id': 25528614}, {'photo_id': 1374550254, 'portfolio_id': 25528614}, {'photo_id': 1374550252, 'portfolio_id': 25528614}, {'photo_id': 1374550249, 'portfolio_id': 25528614}, {'photo_id': 1374550245, 'portfolio_id': 25528614}, {'photo_id': 1374550211, 'portfolio_id': 25528614}, {'photo_id': 1374550208, 'portfolio_id': 25528614}, {'photo_id': 1374550207, 'portfolio_id': 25528614}, {'photo_id': 1374550205, 'portfolio_id': 25528614}, {'photo_id': 1374550204, 'portfolio_id': 25528614}, {'photo_id': 1374550202, 'portfolio_id': 25528614}, {'photo_id': 1374550179, 'portfolio_id': 25528614}, {'photo_id': 1374550156, 'portfolio_id': 25528614}, {'photo_id': 1374550154, 'portfolio_id': 25528614}, {'photo_id': 1374550151, 'portfolio_id': 25528614}, {'photo_id': 1374550149, 'portfolio_id': 25528614}, {'photo_id': 1374550146, 'portfolio_id': 25528614}, {'photo_id': 1374550133, 'portfolio_id': 25528614}, {'photo_id': 1374550111, 'portfolio_id': 25528614}, {'photo_id': 1374550109, 'portfolio_id': 25528614}, {'photo_id': 1374550107, 'portfolio_id': 25528614}, {'photo_id': 1374550106, 'portfolio_id': 25528614}, {'photo_id': 1374550104, 'portfolio_id': 25528614}, {'photo_id': 1374550101, 'portfolio_id': 25528614}, {'photo_id': 1374549992, 'portfolio_id': 25528614}, {'photo_id': 1374549964, 'portfolio_id': 25528614}, {'photo_id': 1374549949, 'portfolio_id': 25528614}, {'photo_id': 1374549947, 'portfolio_id': 25528614}, {'photo_id': 1374549944, 'portfolio_id': 25528614}, {'photo_id': 1374549941, 'portfolio_id': 25528614}, {'photo_id': 1374549912, 'portfolio_id': 25528614}, {'photo_id': 1374549904, 'portfolio_id': 25528614}, {'photo_id': 1374549891, 'portfolio_id': 25528614}, {'photo_id': 1374549888, 'portfolio_id': 25528614}, {'photo_id': 1374549884, 'portfolio_id': 25528614}, {'photo_id': 1374549880, 'portfolio_id': 25528614}, {'photo_id': 1374549864, 'portfolio_id': 25528614}, {'photo_id': 1374549861, 'portfolio_id': 25528614}, {'photo_id': 1374549857, 'portfolio_id': 25528614}, {'photo_id': 1374549853, 'portfolio_id': 25528614}, {'photo_id': 1374549850, 'portfolio_id': 25528614}, {'photo_id': 1374549847, 'portfolio_id': 25528614}] map_portfolio_id_photo_id: {25528614: [1374550503, 1374550489, 1374550487, 1374550485, 1374550483, 1374550482, 1374550478, 1374550454, 1374550450, 1374550449, 1374550448, 1374550447, 1374550445, 1374550421, 1374550418, 1374550417, 1374550415, 1374550413, 1374550405, 1374550384, 1374550351, 1374550337, 1374550333, 1374550331, 1374550329, 1374550327, 1374550323, 1374550300, 1374550296, 1374550293, 1374550286, 1374550279, 1374550275, 1374550259, 1374550256, 1374550254, 1374550252, 1374550249, 1374550245, 1374550211, 1374550208, 1374550207, 1374550205, 1374550204, 1374550202, 1374550179, 1374550156, 1374550154, 1374550151, 1374550149, 1374550146, 1374550133, 1374550111, 1374550109, 1374550107, 1374550106, 1374550104, 1374550101, 1374549992, 1374549964, 1374549949, 1374549947, 1374549944, 1374549941, 1374549912, 1374549904, 1374549891, 1374549888, 1374549884, 1374549880, 1374549864, 1374549861, 1374549857, 1374549853, 1374549850, 1374549847]} ##### 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.01629161834716797 #### 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 Thu Jul 31 07:32:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25528614) 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 : 25528614 get user id for portfolio 25528614 get sub ptf for main ptf 25528614, type 3726 and hashtags ['kraft', 'papier', 'plastique', 'Carton_gris', 'metal', 'environnement', 'mal_croppe', 'Carton_brun', 'cartonnette', 'flou', 'autre_refus', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25528614 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','Carton_gris','metal','environnement','mal_croppe','Carton_brun','cartonnette','flou','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25528614 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','Carton_gris','metal','environnement','mal_croppe','Carton_brun','cartonnette','flou','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25528614, 'sub_port_id': 25528653, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217976, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'mal_croppe': {'main_port_id': 25528614, 'sub_port_id': 25528654, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217977, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'autre_refus': {'main_port_id': 25528614, 'sub_port_id': 25528655, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217978, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'environnement': {'main_port_id': 25528614, 'sub_port_id': 25528656, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217979, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 25528614, 'sub_port_id': 25528657, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217980, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'metal': {'main_port_id': 25528614, 'sub_port_id': 25528658, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217981, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'papier': {'main_port_id': 25528614, 'sub_port_id': 25528659, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217982, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'plastique': {'main_port_id': 25528614, 'sub_port_id': 25528660, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217983, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'cartonnette': {'main_port_id': 25528614, 'sub_port_id': 25528661, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217984, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'flou': {'main_port_id': 25528614, 'sub_port_id': 25528662, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217985, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'Carton_brun': {'main_port_id': 25528614, 'sub_port_id': 25528663, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217986, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}, 'Carton_gris': {'main_port_id': 25528614, 'sub_port_id': 25528664, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217987, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528653 , 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=25528614 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 (25528653) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528654 , 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=25528614 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 (25528654) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528655 , 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=25528614 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 (25528655) result : ((1374550442,), (1374550443,), (1374550479,), (1374550480,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528656 , 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=25528614 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 (25528656) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528657 , 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=25528614 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 (25528657) result : ((1374550197,), (1374550198,), (1374550406,), (1374550407,), (1374550408,), (1374550409,), (1374550410,), (1374550411,), (1374550476,), (1374550477,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528658 , 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=25528614 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 (25528658) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528659 , 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=25528614 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 (25528659) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528660 , 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=25528614 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 (25528660) result : ((1374550287,), (1374550288,), (1374550289,), (1374550290,), (1374550292,), (1374550412,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528661 , 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=25528614 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 (25528661) result : ((1374550200,), (1374550283,), (1374550285,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528662 , 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=25528614 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 (25528662) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528663 , 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=25528614 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 (25528663) result : ((1374550201,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25528664 , 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=25528614 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 (25528664) result : ((1374550280,), (1374550444,), (1374550481,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25528614) result : ((1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) 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 (1374550300) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25528614 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','Carton_gris','metal','environnement','mal_croppe','Carton_brun','cartonnette','flou','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25528614 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','plastique','Carton_gris','metal','environnement','mal_croppe','Carton_brun','cartonnette','flou','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25528614, 'sub_port_id': 25528665, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217988, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'mal_croppe': {'main_port_id': 25528614, 'sub_port_id': 25528666, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217989, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'autre_refus': {'main_port_id': 25528614, 'sub_port_id': 25528667, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217990, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'environnement': {'main_port_id': 25528614, 'sub_port_id': 25528668, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217991, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 25528614, 'sub_port_id': 25528669, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217992, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'metal': {'main_port_id': 25528614, 'sub_port_id': 25528670, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217993, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'papier': {'main_port_id': 25528614, 'sub_port_id': 25528671, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217994, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'plastique': {'main_port_id': 25528614, 'sub_port_id': 25528672, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217995, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'cartonnette': {'main_port_id': 25528614, 'sub_port_id': 25528673, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217996, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'flou': {'main_port_id': 25528614, 'sub_port_id': 25528674, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217997, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'Carton_brun': {'main_port_id': 25528614, 'sub_port_id': 25528675, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217998, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 17, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}, 'Carton_gris': {'main_port_id': 25528614, 'sub_port_id': 25528676, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17217999, 'last_updated_at': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 7, 30, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 7, 17, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528665,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528653 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528666,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528654 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528667,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528655 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528668,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528656 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528669,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528657 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528670,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528658 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528671,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528659 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528672,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528660 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528661 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528662 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25528676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25528664 lien utilise dans velours : https://www.fotonower.com/velours/25528665,25528666,25528667,25528668,25528669,25528670,25528671,25528672,25528673,25528674,25528675,25528676?tags=kraft,mal_croppe,autre_refus,environnement,Teint_Dans_La_Masse,metal,papier,plastique,cartonnette,flou,Carton_brun,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25528614]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374550503] map_info['map_portfolio_photo'] : {25528614: [1374550503, 1374550489, 1374550487, 1374550485, 1374550483, 1374550482, 1374550478, 1374550454, 1374550450, 1374550449, 1374550448, 1374550447, 1374550445, 1374550421, 1374550418, 1374550417, 1374550415, 1374550413, 1374550405, 1374550384, 1374550351, 1374550337, 1374550333, 1374550331, 1374550329, 1374550327, 1374550323, 1374550300, 1374550296, 1374550293, 1374550286, 1374550279, 1374550275, 1374550259, 1374550256, 1374550254, 1374550252, 1374550249, 1374550245, 1374550211, 1374550208, 1374550207, 1374550205, 1374550204, 1374550202, 1374550179, 1374550156, 1374550154, 1374550151, 1374550149, 1374550146, 1374550133, 1374550111, 1374550109, 1374550107, 1374550106, 1374550104, 1374550101, 1374549992, 1374549964, 1374549949, 1374549947, 1374549944, 1374549941, 1374549912, 1374549904, 1374549891, 1374549888, 1374549884, 1374549880, 1374549864, 1374549861, 1374549857, 1374549853, 1374549850, 1374549847]} final : False mtd_id 4302 list_pids : [1374550503] Looping around the photos to save general results len do output : 1 /25528614. 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, '3405795') ('4302', '25528614', '1374550503', None, None, None, None, None, '3405795') 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, '25528614', "{'kraft': 25528653, 'mal_croppe': 25528654, 'autre_refus': 25528655, 'environnement': 25528656, 'Teint_Dans_La_Masse': 25528657, 'metal': 25528658, 'papier': 25528659, 'plastique': 25528660, 'cartonnette': 25528661, 'flou': 25528662, 'Carton_brun': 25528663, 'Carton_gris': 25528664}", None, None, None, None, '3405795'), ('4302', '25528614', '1374550503', None, None, None, None, None, '3405795')] time used for this insertion : 0.03372693061828613 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.41419315338134766 time spend to save output : 0.0339360237121582 total time spend for step 1 : 0.44812917709350586 step2:final Thu Jul 31 07:32:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (25528614) 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 25528614 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374549864,1374549861,1374549857,1374549853,1374549850,1374549847,1374549912,1374549904,1374549891,1374549888,1374549884,1374549880,1374549992,1374549964,1374549949,1374549947,1374549944,1374549941,1374550111,1374550109,1374550107,1374550106,1374550104,1374550101,1374550156,1374550154,1374550151,1374550149,1374550146,1374550133,1374550179,1374550211,1374550208,1374550207,1374550205,1374550204,1374550202,1374550259,1374550256,1374550254,1374550252,1374550249,1374550245,1374550300,1374550296,1374550293,1374550286,1374550279,1374550275,1374550337,1374550333,1374550331,1374550329,1374550351,1374550327,1374550323,1374550384,1374550421,1374550418,1374550417,1374550415,1374550413,1374550405,1374550454,1374550450,1374550449,1374550448,1374550447,1374550445,1374550489,1374550503,1374550487,1374550485,1374550483,1374550482,1374550478); 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([25528614]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374550503: ('0.05826320114055299',)} new output for save of step final : {1374550503: ('0.05826320114055299',)} [1374550503] map_info['map_portfolio_photo'] : {25528614: [1374550503, 1374550489, 1374550487, 1374550485, 1374550483, 1374550482, 1374550478, 1374550454, 1374550450, 1374550449, 1374550448, 1374550447, 1374550445, 1374550421, 1374550418, 1374550417, 1374550415, 1374550413, 1374550405, 1374550384, 1374550351, 1374550337, 1374550333, 1374550331, 1374550329, 1374550327, 1374550323, 1374550300, 1374550296, 1374550293, 1374550286, 1374550279, 1374550275, 1374550259, 1374550256, 1374550254, 1374550252, 1374550249, 1374550245, 1374550211, 1374550208, 1374550207, 1374550205, 1374550204, 1374550202, 1374550179, 1374550156, 1374550154, 1374550151, 1374550149, 1374550146, 1374550133, 1374550111, 1374550109, 1374550107, 1374550106, 1374550104, 1374550101, 1374549992, 1374549964, 1374549949, 1374549947, 1374549944, 1374549941, 1374549912, 1374549904, 1374549891, 1374549888, 1374549884, 1374549880, 1374549864, 1374549861, 1374549857, 1374549853, 1374549850, 1374549847]} final : False mtd_id 4302 list_pids : [1374550503] Looping around the photos to save general results len do output : 1 /1374550503.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, '3405795') ('4302', '25528614', '1374550503', None, None, None, None, None, '3405795') 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', '25528614', '1374550503', '0.05826320114055299', None, None, None, None, '3405795')] time used for this insertion : 0.01983189582824707 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.12996673583984375 time spend to save output : 0.020015239715576172 total time spend for step 2 : 0.14998197555541992 step3:velours_tree Thu Jul 31 07:32:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {25528614: [{'kraft': 25528653, 'mal_croppe': 25528654, 'autre_refus': 25528655, 'environnement': 25528656, 'Teint_Dans_La_Masse': 25528657, 'metal': 25528658, 'papier': 25528659, 'plastique': 25528660, 'cartonnette': 25528661, 'flou': 25528662, 'Carton_brun': 25528663, 'Carton_gris': 25528664}]} input_args_next_step : {25528614: ()} output_args : {25528614: [{'kraft': 25528653, 'mal_croppe': 25528654, 'autre_refus': 25528655, 'environnement': 25528656, 'Teint_Dans_La_Masse': 25528657, 'metal': 25528658, 'papier': 25528659, 'plastique': 25528660, 'cartonnette': 25528661, 'flou': 25528662, 'Carton_brun': 25528663, 'Carton_gris': 25528664}]} args : 25528614 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 25528653, 'mal_croppe': 25528654, 'autre_refus': 25528655, 'environnement': 25528656, 'Teint_Dans_La_Masse': 25528657, 'metal': 25528658, 'papier': 25528659, 'plastique': 25528660, 'cartonnette': 25528661, 'flou': 25528662, 'Carton_brun': 25528663, 'Carton_gris': 25528664},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25528614) 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([25528614]) 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.2640514373779297 time spend to save output : 3.9577484130859375e-05 total time spend for step 3 : 0.26409101486206055 step4:send_mail_cod Thu Jul 31 07:32:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1374550503: ('0.05826320114055299',)} input_args_next_step : {1374550503: ()} output_args : {1374550503: ('0.05826320114055299',)} args : 1374550503 depend.output_id : 0 complete output_args for input 3 : {25528614: [{'kraft': 25528653, 'mal_croppe': 25528654, 'autre_refus': 25528655, 'environnement': 25528656, 'Teint_Dans_La_Masse': 25528657, 'metal': 25528658, 'papier': 25528659, 'plastique': 25528660, 'cartonnette': 25528661, 'flou': 25528662, 'Carton_brun': 25528663, 'Carton_gris': 25528664}]} input_args_next_step : {1374550503: ('0.05826320114055299',), 25528614: ()} output_args : {25528614: [{'kraft': 25528653, 'mal_croppe': 25528654, 'autre_refus': 25528655, 'environnement': 25528656, 'Teint_Dans_La_Masse': 25528657, 'metal': 25528658, 'papier': 25528659, 'plastique': 25528660, 'cartonnette': 25528661, 'flou': 25528662, 'Carton_brun': 25528663, 'Carton_gris': 25528664}]} args : 25528614 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.05826320114055299',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25528614) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1374550503) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374550503 download finish for photo 1374550503 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette255286531753939977/ imagette255286541753939977/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P25528614_31-07-2025_07_32_57.pdf 25528653 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528653 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255286531753939977 25528654 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528654 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255286541753939977 25528655 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528655 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374550442: '1753939707_709912_1374550111_5ca255dbcefa4a51453bdc80e530fc7e_rle_crop_3898972455_0.png', 1374550443: '1753939707_709912_1374550109_1cf18780c32bb4f7e8b2ca168f122a65_rle_crop_3898972470_0.png', 1374550479: '1753939765_712482_1374550337_b7ac57cb38610bc070c997fcaf5f2695_rle_crop_3898972611_0.png', 1374550480: '1753939765_712482_1374550333_6393fa58c3c68c253b59ec58c5662a11_rle_crop_3898972625_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/4b5f2a0f1adc27157aa2276fcdb62f79_61183960.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/a27e3ace2c5a3a70d8048d1fb379dcef_2844554.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/2bdcc1d9367505c7c5f0098084dd4003_75832563.png change filename to text .imagette255286551753939977/ imagette255286551753939977/1753939707_709912_1374550109_1cf18780c32bb4f7e8b2ca168f122a65_rle_crop_3898972470_0.png.png imagette255286551753939977/1753939765_712482_1374550337_b7ac57cb38610bc070c997fcaf5f2695_rle_crop_3898972611_0.png.png imagette255286551753939977/1753939765_712482_1374550333_6393fa58c3c68c253b59ec58c5662a11_rle_crop_3898972625_0.png.png imagette255286551753939977/1753939707_709912_1374550111_5ca255dbcefa4a51453bdc80e530fc7e_rle_crop_3898972455_0.png.png imagette255286581753939977/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/d4ce07d927f113f0c821aa234221028e_23823749.png imagette255286551753939977 25528658 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528658 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255286581753939977 25528660 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528660 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374550287: '1753939407_695919_1374550156_c741792dc520f566e90a38011cd35a36_rle_crop_3898971394_0.png', 1374550288: '1753939407_695919_1374550154_9090c977769c0ef29135a287acaefc4b_rle_crop_3898971402_0.png', 1374550289: '1753939407_695919_1374550151_5cba5d687a723a15b96dcfcabdbae283_rle_crop_3898971409_0.png', 1374550290: '1753939407_695919_1374550146_794528ee0b0fe208e2be0632248ebd23_rle_crop_3898971431_0.png', 1374550292: '1753939407_695919_1374550133_765027cac6fcb3e38e60d7ce78cb79fd_rle_crop_3898971444_0.png', 1374550412: '1753939645_706550_1374550296_55fd3f04491e48d068cea37cda07dc0c_rle_crop_3898972335_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/6f45606be1ac9ff4c615cc79759cd6ba_86093923.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/72104f1b95f74027756cc3c3c1291e9d_4536028.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/516f52c33056b3eaaf244dd97507db3d_42010274.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/f7dc711a9d50952f0a2415bb8dc0d290_31149461.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/d7e6df93e0aeec2ee530dafb378be944_33299797.png change filename to text .imagette255286601753939977/ imagette255286601753939977/1753939407_695919_1374550151_5cba5d687a723a15b96dcfcabdbae283_rle_crop_3898971409_0.png.png imagette255286601753939977/1753939645_706550_1374550296_55fd3f04491e48d068cea37cda07dc0c_rle_crop_3898972335_0.png.png imagette255286601753939977/1753939407_695919_1374550146_794528ee0b0fe208e2be0632248ebd23_rle_crop_3898971431_0.png.png imagette255286601753939977/1753939407_695919_1374550156_c741792dc520f566e90a38011cd35a36_rle_crop_3898971394_0.png.png imagette255286601753939977/1753939407_695919_1374550133_765027cac6fcb3e38e60d7ce78cb79fd_rle_crop_3898971444_0.png.png imagette255286601753939977/1753939407_695919_1374550154_9090c977769c0ef29135a287acaefc4b_rle_crop_3898971402_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/9c34da03069197917057d7df58b71c46_23475021.png imagette255286601753939977 25528661 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528661 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374550200: '1753939286_688474_1374549847_ff53b8c6502d7d1b3be77de097d61bd6_rle_crop_3898971078_0.png', 1374550283: '1753939407_695919_1374550149_dbe317c15188ac07507129ff4abbb215_rle_crop_3898971416_0.png', 1374550285: '1753939407_695919_1374550149_dbe317c15188ac07507129ff4abbb215_rle_crop_3898971415_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/62fd12ce52e88227b03a86ce8752f470_96227815.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/003b7b136c907b1d6b67835c33704f73_83389380.png change filename to text .imagette255286611753939977/ imagette255286611753939977/1753939407_695919_1374550149_dbe317c15188ac07507129ff4abbb215_rle_crop_3898971415_0.png.png imagette255286611753939977/1753939407_695919_1374550149_dbe317c15188ac07507129ff4abbb215_rle_crop_3898971416_0.png.png imagette255286611753939977/1753939286_688474_1374549847_ff53b8c6502d7d1b3be77de097d61bd6_rle_crop_3898971078_0.png.png imagette255286621753939978/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/433b42cd8fb94e95f286c9531133d534_70015138.png imagette255286611753939977 25528662 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528662 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255286621753939978 25528657 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528657 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374550197: '1753939286_688474_1374549864_57b8f5fb8e71b7856b52902a12f3eaca_rle_crop_3898971023_0.png', 1374550198: '1753939286_688474_1374549847_ff53b8c6502d7d1b3be77de097d61bd6_rle_crop_3898971074_0.png', 1374550406: '1753939645_706550_1374550300_3040678e92681a519ae002c248539663_rle_crop_3898972328_0.png', 1374550407: '1753939645_706550_1374550296_55fd3f04491e48d068cea37cda07dc0c_rle_crop_3898972339_0.png', 1374550408: '1753939645_706550_1374550293_fdcfcedef5e574beee4cbe61d93f2925_rle_crop_3898972351_0.png', 1374550409: '1753939645_706550_1374550286_83b75c2a809a550b4432700458215c9b_rle_crop_3898972365_0.png', 1374550410: '1753939645_706550_1374550279_67918bd0831956186be8e44feb50af8a_rle_crop_3898972375_0.png', 1374550411: '1753939645_706550_1374550275_b886fb4e3ee91a5ba64a99c0dddef63d_rle_crop_3898972388_0.png', 1374550476: '1753939765_712482_1374550337_b7ac57cb38610bc070c997fcaf5f2695_rle_crop_3898972622_0.png', 1374550477: '1753939765_712482_1374550337_b7ac57cb38610bc070c997fcaf5f2695_rle_crop_3898972613_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/97d74eaac594c6a0194f231ff97c7c7c_47471094.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/bb16eac31c5174f30d50b3196fb7a3c3_82806627.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/c5fc4a57cbe7e794ac518875f3721a58_80864048.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/c3fd7a989abc5671df0490080260dbdd_26629467.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/664ce1992c77148b4e455943dcbc46d4_49000571.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/022b6a4972ad6c04b3fc108c0d6e8c58_78951867.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/defad8f1ceef79d9f06a7508c9d0a859_77669729.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/dcedf0c70aea28ce325565b7276bab95_44360038.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/7a9309b12f8506b4c1940d8cadf146cf_4066856.png change filename to text .imagette255286571753939978/ imagette255286571753939978/1753939645_706550_1374550286_83b75c2a809a550b4432700458215c9b_rle_crop_3898972365_0.png.png imagette255286571753939978/1753939645_706550_1374550300_3040678e92681a519ae002c248539663_rle_crop_3898972328_0.png.png imagette255286571753939978/1753939765_712482_1374550337_b7ac57cb38610bc070c997fcaf5f2695_rle_crop_3898972613_0.png.png imagette255286571753939978/1753939645_706550_1374550275_b886fb4e3ee91a5ba64a99c0dddef63d_rle_crop_3898972388_0.png.png imagette255286571753939978/1753939765_712482_1374550337_b7ac57cb38610bc070c997fcaf5f2695_rle_crop_3898972622_0.png.png imagette255286571753939978/1753939286_688474_1374549847_ff53b8c6502d7d1b3be77de097d61bd6_rle_crop_3898971074_0.png.png imagette255286571753939978/1753939645_706550_1374550296_55fd3f04491e48d068cea37cda07dc0c_rle_crop_3898972339_0.png.png imagette255286571753939978/1753939286_688474_1374549864_57b8f5fb8e71b7856b52902a12f3eaca_rle_crop_3898971023_0.png.png imagette255286571753939978/1753939645_706550_1374550279_67918bd0831956186be8e44feb50af8a_rle_crop_3898972375_0.png.png imagette255286571753939978/1753939645_706550_1374550293_fdcfcedef5e574beee4cbe61d93f2925_rle_crop_3898972351_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/38685efe6862bbb6f058955d23412d96_99837913.png imagette255286571753939978 25528663 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528663 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374550201: '1753939286_688474_1374549847_ff53b8c6502d7d1b3be77de097d61bd6_rle_crop_3898971073_0.png'} change filename to text .imagette255286631753939978/ imagette255286631753939978/1753939286_688474_1374549847_ff53b8c6502d7d1b3be77de097d61bd6_rle_crop_3898971073_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/809bcd0a3e963bee8a4d17bb784065dc_36127624.png imagette255286631753939978 25528664 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528664 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374550280: '1753939407_695919_1374550156_c741792dc520f566e90a38011cd35a36_rle_crop_3898971392_0.png', 1374550444: '1753939707_709912_1374550109_1cf18780c32bb4f7e8b2ca168f122a65_rle_crop_3898972468_0.png', 1374550481: '1753939765_712482_1374550333_6393fa58c3c68c253b59ec58c5662a11_rle_crop_3898972626_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/f3f37c0335ce27c6434d7614d1913c77_80661464.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/42e1ed5be107d8574c080d9333400f25_8272480.png change filename to text .imagette255286641753939978/ imagette255286641753939978/1753939407_695919_1374550156_c741792dc520f566e90a38011cd35a36_rle_crop_3898971392_0.png.png imagette255286641753939978/1753939707_709912_1374550109_1cf18780c32bb4f7e8b2ca168f122a65_rle_crop_3898972468_0.png.png imagette255286641753939978/1753939765_712482_1374550333_6393fa58c3c68c253b59ec58c5662a11_rle_crop_3898972626_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/6a14b60d1088c674cb0534e7649124b2_34252452.png imagette255286641753939978 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25528614 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25528665,25528666,25528667,25528668,25528669,25528670,25528671,25528672,25528673,25528674,25528675,25528676?tags=kraft,mal_croppe,autre_refus,environnement,Teint_Dans_La_Masse,metal,papier,plastique,cartonnette,flou,Carton_brun,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1374550503] : ('0.05826320114055299',) no score found for photo 1374550503 We are sending mail with results at report@fotonower.com refus_total : 0.05826320114055299 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528614 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_P25528614_31-07-2025_07_32_57.pdf results_Auto_P25528614_31-07-2025_07_32_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_31-07-2025_07_32_57.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','25528614','results_Auto_P25528614_31-07-2025_07_32_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_31-07-2025_07_32_57.pdf','pdf','','0.11','0.05826320114055299') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25528614]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374550503] map_info['map_portfolio_photo'] : {25528614: [1374550503, 1374550489, 1374550487, 1374550485, 1374550483, 1374550482, 1374550478, 1374550454, 1374550450, 1374550449, 1374550448, 1374550447, 1374550445, 1374550421, 1374550418, 1374550417, 1374550415, 1374550413, 1374550405, 1374550384, 1374550351, 1374550337, 1374550333, 1374550331, 1374550329, 1374550327, 1374550323, 1374550300, 1374550296, 1374550293, 1374550286, 1374550279, 1374550275, 1374550259, 1374550256, 1374550254, 1374550252, 1374550249, 1374550245, 1374550211, 1374550208, 1374550207, 1374550205, 1374550204, 1374550202, 1374550179, 1374550156, 1374550154, 1374550151, 1374550149, 1374550146, 1374550133, 1374550111, 1374550109, 1374550107, 1374550106, 1374550104, 1374550101, 1374549992, 1374549964, 1374549949, 1374549947, 1374549944, 1374549941, 1374549912, 1374549904, 1374549891, 1374549888, 1374549884, 1374549880, 1374549864, 1374549861, 1374549857, 1374549853, 1374549850, 1374549847]} final : False mtd_id 4302 list_pids : [1374550503] 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, '3405795') ('4302', '25528614', '1374550503', None, None, None, None, None, '3405795') 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', '25528614', '1374550503', None, None, None, None, None, '3405795')] time used for this insertion : 0.011842966079711914 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.073904037475586 time spend to save output : 0.011989355087280273 total time spend for step 4 : 3.085893392562866 step5:split_time_score Thu Jul 31 07:33:00 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 : ['25528614'] 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 : [('25528614',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25528614) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374550503: {'path': 'temp/1753939977_2007377_1374550503_b455bd55b20752b44eb9c340dd09b478.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 = 25528614; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25528614 group by h (('07', 76),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25528614 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 (25528614) 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 (25528614) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31072025 25528614 Nombre de photos uploadées : 76 / 23040 (0%) 31072025 25528614 Nombre de photos taguées (types de déchets): 0 / 76 (0%) 31072025 25528614 Nombre de photos taguées (volume) : 0 / 76 (0%) [{'photo_id': 1374549864, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/57b8f5fb8e71b7856b52902a12f3eaca.jpg', 'username': None, 'uploaded_at': 1753938963, 'text': 'image_31072025_07_15_04_010157m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374549861, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/e1d02980bbbf47863143160ce12d7551.jpg', 'username': None, 'uploaded_at': 1753938963, 'text': 'image_31072025_07_15_14_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374549857, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/5e5504ea2981ccc5349f2424850fcd0e.jpg', 'username': None, 'uploaded_at': 1753938963, 'text': 'image_31072025_07_15_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374549853, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/476dc0dbd45f530eefcc62783dac8c54.jpg', 'username': None, 'uploaded_at': 1753938963, 'text': 'image_31072025_07_15_34_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004065990447998047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25528614, '2025-07-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-07-31' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2034079,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20386576652526855 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= 2034079 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25516129, 'dashboard_result_id': 13396705, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_31-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25516552, 'dashboard_result_id': 13396706, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_06_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25516863, 'dashboard_result_id': 13396707, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_31-07-2025_06_30_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25517204, 'dashboard_result_id': 13396708, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_31-07-2025_06_31_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25517620, 'dashboard_result_id': 13396709, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_31-07-2025_06_31_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25518153, 'dashboard_result_id': 13396710, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_31-07-2025_06_32_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25518649, 'dashboard_result_id': 13396711, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_31-07-2025_06_32_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25519140, 'dashboard_result_id': 13396712, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_31-07-2025_06_33_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25519626, 'dashboard_result_id': 13396713, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_31-07-2025_06_34_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25520305, 'dashboard_result_id': 13396714, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_31-07-2025_06_34_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25520841, 'dashboard_result_id': 13396715, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_31-07-2025_06_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25521307, 'dashboard_result_id': 13396716, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_31-07-2025_06_36_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25521737, 'dashboard_result_id': 13396717, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_31-07-2025_06_36_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25522256, 'dashboard_result_id': 13396718, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_31-07-2025_06_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25522735, 'dashboard_result_id': 13396719, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_31-07-2025_06_38_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25523075, 'dashboard_result_id': 13396720, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_31-07-2025_06_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25523385, 'dashboard_result_id': 13396721, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_31-07-2025_06_39_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25523818, 'dashboard_result_id': 13396722, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_31-07-2025_06_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25524141, 'dashboard_result_id': 13396723, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_31-07-2025_06_41_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25524518, 'dashboard_result_id': 13396724, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_31-07-2025_06_41_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25524912, 'dashboard_result_id': 13396725, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_31-07-2025_06_42_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25525411, 'dashboard_result_id': 13396726, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_31-07-2025_06_42_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25525840, 'dashboard_result_id': 13396727, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_31-07-2025_05_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25526254, 'dashboard_result_id': 13396728, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_31-07-2025_06_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25526644, 'dashboard_result_id': 13396729, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_31-07-2025_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25527147, 'dashboard_result_id': 13396730, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_31-07-2025_06_30_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25527500, 'dashboard_result_id': 13396732, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_31-07-2025_06_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25527878, 'dashboard_result_id': 13396733, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_31-07-2025_07_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25528260, 'dashboard_result_id': 13396734, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_31-07-2025_07_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043473, 'mtr_portfolio_id': 25528614, 'dashboard_result_id': 13396735, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_31-07-2025_07_30_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, '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 = 25516129 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405101, 'mtr_portfolio_id': 25516129, 'created_at': datetime.datetime(2025, 7, 31, 6, 28, 29), 'result': '0.12193713324231807', 'result_long': None, 'result_double': None}] Qualite : 0.12193713324231807 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_31-07-2025_06_28_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516129 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_31-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}" where mtr_portfolio_id = 25516129 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25516129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396705, 0.12193713324231807, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_31-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25516552 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405102, 'mtr_portfolio_id': 25516552, 'created_at': datetime.datetime(2025, 7, 31, 6, 29, 30), 'result': '0.044902742839134924', 'result_long': None, 'result_double': None}] Qualite : 0.044902742839134924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_06_29_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516552 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_06_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}" where mtr_portfolio_id = 25516552 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25516552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396706, 0.044902742839134924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_06_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25516863 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405103, 'mtr_portfolio_id': 25516863, 'created_at': datetime.datetime(2025, 7, 31, 6, 29, 58), 'result': '0.031975913392453724', 'result_long': None, 'result_double': None}] Qualite : 0.031975913392453724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_31-07-2025_06_30_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516863 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_31-07-2025_06_30_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, 'pht': 3726}}" where mtr_portfolio_id = 25516863 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25516863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396707, 0.031975913392453724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_31-07-2025_06_30_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25517204 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405104, 'mtr_portfolio_id': 25517204, 'created_at': datetime.datetime(2025, 7, 31, 6, 30, 58), 'result': '0.06841272376470589', 'result_long': None, 'result_double': None}] Qualite : 0.06841272376470589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25517204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_31-07-2025_06_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25517204 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_31-07-2025_06_31_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, 'pht': 3726}}" where mtr_portfolio_id = 25517204 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25517204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396708, 0.06841272376470589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_31-07-2025_06_31_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25517620 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405105, 'mtr_portfolio_id': 25517620, 'created_at': datetime.datetime(2025, 7, 31, 6, 31, 31), 'result': '0.11231447484602866', 'result_long': None, 'result_double': None}] Qualite : 0.11231447484602866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25517620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_31-07-2025_06_31_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25517620 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_31-07-2025_06_31_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, 'pht': 3726}}" where mtr_portfolio_id = 25517620 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25517620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396709, 0.11231447484602866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_31-07-2025_06_31_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25518153 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405106, 'mtr_portfolio_id': 25518153, 'created_at': datetime.datetime(2025, 7, 31, 6, 31, 58), 'result': '0.10034210143151306', 'result_long': None, 'result_double': None}] Qualite : 0.10034210143151306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25518153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_31-07-2025_06_32_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25518153 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_31-07-2025_06_32_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, 'pht': 3726}}" where mtr_portfolio_id = 25518153 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25518153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396710, 0.10034210143151306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_31-07-2025_06_32_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25518649 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405107, 'mtr_portfolio_id': 25518649, 'created_at': datetime.datetime(2025, 7, 31, 6, 32, 29), 'result': '0.02191558326807052', 'result_long': None, 'result_double': None}] Qualite : 0.02191558326807052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25518649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_31-07-2025_06_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25518649 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_31-07-2025_06_32_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, 'pht': 3726}}" where mtr_portfolio_id = 25518649 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25518649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396711, 0.02191558326807052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_31-07-2025_06_32_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25519140 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405108, 'mtr_portfolio_id': 25519140, 'created_at': datetime.datetime(2025, 7, 31, 6, 33, 27), 'result': '0.07508893614699616', 'result_long': None, 'result_double': None}] Qualite : 0.07508893614699616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_31-07-2025_06_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25519140 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_31-07-2025_06_33_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, 'pht': 3726}}" where mtr_portfolio_id = 25519140 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25519140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396712, 0.07508893614699616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_31-07-2025_06_33_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25519626 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405109, 'mtr_portfolio_id': 25519626, 'created_at': datetime.datetime(2025, 7, 31, 6, 34), 'result': '0.15042824762476398', 'result_long': None, 'result_double': None}] Qualite : 0.15042824762476398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25519626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_31-07-2025_06_34_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25519626 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_31-07-2025_06_34_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, 'pht': 3726}}" where mtr_portfolio_id = 25519626 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25519626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396713, 0.15042824762476398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_31-07-2025_06_34_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25520305 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405110, 'mtr_portfolio_id': 25520305, 'created_at': datetime.datetime(2025, 7, 31, 6, 34, 27), 'result': '0.050418820624836574', 'result_long': None, 'result_double': None}] Qualite : 0.050418820624836574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25520305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_31-07-2025_06_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25520305 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_31-07-2025_06_34_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, 'pht': 3726}}" where mtr_portfolio_id = 25520305 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25520305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396714, 0.050418820624836574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_31-07-2025_06_34_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25520841 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405111, 'mtr_portfolio_id': 25520841, 'created_at': datetime.datetime(2025, 7, 31, 6, 35, 29), 'result': '0.05847893604401684', 'result_long': None, 'result_double': None}] Qualite : 0.05847893604401684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25520841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_31-07-2025_06_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25520841 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_31-07-2025_06_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, 'pht': 3726}}" where mtr_portfolio_id = 25520841 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25520841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396715, 0.05847893604401684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_31-07-2025_06_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25521307 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405112, 'mtr_portfolio_id': 25521307, 'created_at': datetime.datetime(2025, 7, 31, 6, 35, 59), 'result': '0.07904000005299237', 'result_long': None, 'result_double': None}] Qualite : 0.07904000005299237 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25521307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_31-07-2025_06_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25521307 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_31-07-2025_06_36_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, 'pht': 3726}}" where mtr_portfolio_id = 25521307 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25521307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396716, 0.07904000005299237, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_31-07-2025_06_36_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25521737 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405113, 'mtr_portfolio_id': 25521737, 'created_at': datetime.datetime(2025, 7, 31, 6, 36, 28), 'result': '0.014298299204653692', 'result_long': None, 'result_double': None}] Qualite : 0.014298299204653692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25521737 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_31-07-2025_06_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25521737 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_31-07-2025_06_36_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, 'pht': 3726}}" where mtr_portfolio_id = 25521737 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25521737 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396717, 0.014298299204653692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_31-07-2025_06_36_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25522256 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405114, 'mtr_portfolio_id': 25522256, 'created_at': datetime.datetime(2025, 7, 31, 6, 37, 29), 'result': '0.03337019429160185', 'result_long': None, 'result_double': None}] Qualite : 0.03337019429160185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25522256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_31-07-2025_06_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25522256 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_31-07-2025_06_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, 'pht': 3726}}" where mtr_portfolio_id = 25522256 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25522256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396718, 0.03337019429160185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_31-07-2025_06_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25522735 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405115, 'mtr_portfolio_id': 25522735, 'created_at': datetime.datetime(2025, 7, 31, 6, 37, 59), 'result': '0.015714648701642922', 'result_long': None, 'result_double': None}] Qualite : 0.015714648701642922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25522735 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_31-07-2025_06_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25522735 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_31-07-2025_06_38_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, 'pht': 3726}}" where mtr_portfolio_id = 25522735 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25522735 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396719, 0.015714648701642922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_31-07-2025_06_38_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25523075 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405116, 'mtr_portfolio_id': 25523075, 'created_at': datetime.datetime(2025, 7, 31, 6, 38, 30), 'result': '0.04700905056536481', 'result_long': None, 'result_double': None}] Qualite : 0.04700905056536481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_31-07-2025_06_38_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523075 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_31-07-2025_06_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, 'pht': 3726}}" where mtr_portfolio_id = 25523075 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25523075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396720, 0.04700905056536481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_31-07-2025_06_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25523385 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405117, 'mtr_portfolio_id': 25523385, 'created_at': datetime.datetime(2025, 7, 31, 6, 39, 26), 'result': '0.08436949260554179', 'result_long': None, 'result_double': None}] Qualite : 0.08436949260554179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_31-07-2025_06_39_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523385 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_31-07-2025_06_39_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, 'pht': 3726}}" where mtr_portfolio_id = 25523385 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25523385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396721, 0.08436949260554179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_31-07-2025_06_39_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25523818 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405118, 'mtr_portfolio_id': 25523818, 'created_at': datetime.datetime(2025, 7, 31, 6, 39, 59), 'result': '0.07638470951750931', 'result_long': None, 'result_double': None}] Qualite : 0.07638470951750931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_31-07-2025_06_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523818 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_31-07-2025_06_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, 'pht': 3726}}" where mtr_portfolio_id = 25523818 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25523818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396722, 0.07638470951750931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_31-07-2025_06_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25524141 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405119, 'mtr_portfolio_id': 25524141, 'created_at': datetime.datetime(2025, 7, 31, 6, 41), 'result': '0.015101512533748229', 'result_long': None, 'result_double': None}] Qualite : 0.015101512533748229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_31-07-2025_06_41_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524141 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_31-07-2025_06_41_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, 'pht': 3726}}" where mtr_portfolio_id = 25524141 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25524141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396723, 0.015101512533748229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_31-07-2025_06_41_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25524518 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405120, 'mtr_portfolio_id': 25524518, 'created_at': datetime.datetime(2025, 7, 31, 6, 41, 29), 'result': '0.0032177157832730076', 'result_long': None, 'result_double': None}] Qualite : 0.0032177157832730076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_31-07-2025_06_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524518 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_31-07-2025_06_41_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, 'pht': 3726}}" where mtr_portfolio_id = 25524518 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25524518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396724, 0.0032177157832730076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_31-07-2025_06_41_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25524912 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405121, 'mtr_portfolio_id': 25524912, 'created_at': datetime.datetime(2025, 7, 31, 6, 41, 59), 'result': '0.03704469321256852', 'result_long': None, 'result_double': None}] Qualite : 0.03704469321256852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_31-07-2025_06_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524912 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_31-07-2025_06_42_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, 'pht': 3726}}" where mtr_portfolio_id = 25524912 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25524912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396725, 0.03704469321256852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_31-07-2025_06_42_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25525411 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405122, 'mtr_portfolio_id': 25525411, 'created_at': datetime.datetime(2025, 7, 31, 6, 42, 30), 'result': '0.04333010024824825', 'result_long': None, 'result_double': None}] Qualite : 0.04333010024824825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25525411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_31-07-2025_06_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25525411 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_31-07-2025_06_42_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, 'pht': 3726}}" where mtr_portfolio_id = 25525411 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25525411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396726, 0.04333010024824825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_31-07-2025_06_42_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25525840 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405001, 'mtr_portfolio_id': 25525840, 'created_at': datetime.datetime(2025, 7, 31, 5, 46, 30), 'result': '0.030544119514134754', 'result_long': None, 'result_double': None}] Qualite : 0.030544119514134754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25525840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_31-07-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25525840 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_31-07-2025_05_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, 'pht': 3726}}" where mtr_portfolio_id = 25525840 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25525840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396727, 0.030544119514134754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_31-07-2025_05_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25526254 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405220, 'mtr_portfolio_id': 25526254, 'created_at': datetime.datetime(2025, 7, 31, 6, 2, 57), 'result': '0.02318603285791583', 'result_long': None, 'result_double': None}] Qualite : 0.02318603285791583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25526254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_31-07-2025_06_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25526254 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_31-07-2025_06_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, 'pht': 3726}}" where mtr_portfolio_id = 25526254 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25526254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396728, 0.02318603285791583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_31-07-2025_06_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25526644 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 = 25526644 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 = 25526644 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25526644 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 = 25526644 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405340, 'mtr_portfolio_id': 25526644, 'created_at': datetime.datetime(2025, 7, 31, 6, 16, 59), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25526644 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_31-07-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25526644 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_31-07-2025_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, 'pht': 3726}}" where mtr_portfolio_id = 25526644 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25526644 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396729, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_31-07-2025_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25527147 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405454, 'mtr_portfolio_id': 25527147, 'created_at': datetime.datetime(2025, 7, 31, 6, 30, 28), 'result': '0.0094188091957387', 'result_long': None, 'result_double': None}] Qualite : 0.0094188091957387 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_31-07-2025_06_30_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527147 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_31-07-2025_06_30_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, 'pht': 3726}}" where mtr_portfolio_id = 25527147 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25527147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396730, 0.0094188091957387, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_31-07-2025_06_30_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25527500 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405525, 'mtr_portfolio_id': 25527500, 'created_at': datetime.datetime(2025, 7, 31, 6, 46, 30), 'result': '0.052309286260890694', 'result_long': None, 'result_double': None}] Qualite : 0.052309286260890694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_31-07-2025_06_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527500 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_31-07-2025_06_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, 'pht': 3726}}" where mtr_portfolio_id = 25527500 and dashboard_run_id = 2043473 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25527500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396732, 0.052309286260890694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_31-07-2025_06_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25527878 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405600, 'mtr_portfolio_id': 25527878, 'created_at': datetime.datetime(2025, 7, 31, 7, 0, 58), 'result': '0.03728631700820891', 'result_long': None, 'result_double': None}] Qualite : 0.03728631700820891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_31-07-2025_07_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527878 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_31-07-2025_07_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, 'pht': 3726}}" where mtr_portfolio_id = 25527878 and dashboard_run_id = 2043475 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25527878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396733, 0.03728631700820891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_31-07-2025_07_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25528260 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405706, 'mtr_portfolio_id': 25528260, 'created_at': datetime.datetime(2025, 7, 31, 7, 16, 59), 'result': '0.03544878293593164', 'result_long': None, 'result_double': None}] Qualite : 0.03544878293593164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25528260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_31-07-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25528260 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_31-07-2025_07_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, 'pht': 3726}}" where mtr_portfolio_id = 25528260 and dashboard_run_id = 2043475 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25528260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396734, 0.03544878293593164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_31-07-2025_07_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25528614 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405795, 'mtr_portfolio_id': 25528614, 'created_at': datetime.datetime(2025, 7, 31, 7, 32, 56), 'result': '0.05826320114055299', 'result_long': None, 'result_double': None}] Qualite : 0.05826320114055299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25528614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_31-07-2025_07_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25528614 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_31-07-2025_07_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, 'pht': 3726}}" where mtr_portfolio_id = 25528614 and dashboard_run_id = 2043475 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25528614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13396735, 0.05826320114055299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_31-07-2025_07_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, '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 (25516129,25516552,25516863,25517204,25517620,25518153,25518649,25519140,25519626,25520305,25520841,25521307,25521737,25522256,25522735,25523075,25523385,25523818,25524141,25524518,25524912,25525411,25525840,25526254,25526644,25527147,25527500,25527878,25528260,25528614) result : ((1374514567,), (1374514596,), (1374514618,), (1374514639,), (1374514661,), (1374514680,), (1374514915,), (1374514956,), (1374514988,), (1374515009,), (1374515045,), (1374515070,), (1374515272,), (1374515291,), (1374515310,), (1374515331,), (1374515334,), (1374515339,), (1374515640,), (1374515710,), (1374515787,), (1374515863,), (1374515931,), (1374515997,), (1374516495,), (1374516889,), (1374516905,), (1374516906,), (1374516918,), (1374516936,), (1374516943,), (1374517031,), (1374517055,), (1374517078,), (1374517098,), (1374517120,), (1374517139,), (1374517293,), (1374517311,), (1374517331,), (1374517349,), (1374517367,), (1374517385,), (1374517831,), (1374517884,), (1374517941,), (1374517990,), (1374518040,), (1374518091,), (1374518410,), (1374518738,), (1374518781,), (1374518785,), (1374518815,), (1374518834,), (1374518837,), (1374518849,), (1374518851,), (1374518853,), (1374518855,), (1374518857,), (1374518859,), (1374518874,), (1374518876,), (1374518879,), (1374518890,), (1374518906,), (1374518908,), (1374518919,), (1374518920,), (1374518922,), (1374518923,), (1374518925,), (1374518941,), (1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,), (1374519958,), (1374519980,), (1374519982,), (1374519988,), (1374519990,), (1374519992,), (1374519995,), (1374520003,), (1374520005,), (1374520008,), (1374520011,), (1374520013,), (1374520015,), (1374520029,), (1374520035,), (1374520036,), (1374520037,), (1374520038,), (1374520040,), (1374520049,), (1374520051,), (1374520053,), (1374520055,), (1374520057,), (1374520060,), (1374520067,), (1374520074,), (1374520078,), (1374520080,), (1374520083,), (1374520086,), (1374520113,), (1374520115,), (1374520116,), (1374520118,), (1374520121,), (1374520123,), (1374520131,), (1374520133,), (1374520136,), (1374520139,), (1374520142,), (1374520144,), (1374520156,), (1374520159,), (1374520162,), (1374520165,), (1374520167,), (1374520168,), (1374520178,), (1374520183,), (1374520184,), (1374520186,), (1374520188,), (1374520191,), (1374520200,), (1374520217,), (1374520219,), (1374520221,), (1374520223,), (1374520225,), (1374520227,), (1374520252,), (1374520255,), (1374520258,), (1374520260,), (1374520263,), (1374520266,), (1374520272,), (1374520275,), (1374520279,), (1374520282,), (1374520284,), (1374520287,), (1374520296,), (1374520300,), (1374520311,), (1374520313,), (1374520314,), (1374520317,), (1374520325,), (1374520327,), (1374520335,), (1374520339,), (1374520342,), (1374520344,), (1374520354,), (1374520357,), (1374520359,), (1374520360,), (1374520361,), (1374520363,), (1374520375,), (1374520377,), (1374520388,), (1374520391,), (1374520394,), (1374520396,), (1374520413,), (1374520414,), (1374520419,), (1374520420,), (1374520422,), (1374520425,), (1374520438,), (1374520441,), (1374520446,), (1374520449,), (1374520451,), (1374520454,), (1374520479,), (1374520589,), (1374520612,), (1374520626,), (1374520629,), (1374520633,), (1374520634,), (1374520648,), (1374520653,), (1374520655,), (1374520656,), (1374520657,), (1374520658,), (1374520671,), (1374520672,), (1374520694,), (1374520711,), (1374520716,), (1374520722,), (1374520741,), (1374520767,), (1374520806,), (1374520813,), (1374520815,), (1374520818,), (1374520829,), (1374520831,), (1374520833,), (1374520835,), (1374520837,), (1374520840,), (1374520853,), (1374520855,), (1374520857,), (1374520864,), (1374520870,), (1374520882,), (1374520890,), (1374520892,), (1374520898,), (1374520905,), (1374520914,), (1374520919,), (1374520933,), (1374520938,), (1374520940,), (1374520943,), (1374520964,), (1374520987,), (1374521182,), (1374521368,), (1374521370,), (1374521382,), (1374521401,), (1374521420,), (1374521439,), (1374521548,), (1374521720,), (1374521739,), (1374521769,), (1374521795,), (1374521816,), (1374521838,), (1374521984,), (1374522003,), (1374522025,), (1374522030,), (1374522032,), (1374522039,), (1374522140,), (1374522146,), (1374522155,), (1374522163,), (1374522182,), (1374522203,), (1374522356,), (1374522377,), (1374522395,), (1374522413,), (1374522435,), (1374522453,), (1374522570,), (1374522583,), (1374522610,), (1374522636,), (1374522653,), (1374522672,), (1374522705,), (1374522707,), (1374522709,), (1374522711,), (1374522714,), (1374522718,), (1374522728,), (1374522731,), (1374522734,), (1374522740,), (1374522749,), (1374522755,), (1374522767,), (1374522814,), (1374522833,), (1374522850,), (1374522872,), (1374522881,), (1374522888,), (1374522941,), (1374522943,), (1374522949,), (1374522958,), (1374522960,), (1374522961,), (1374522976,), (1374522978,), (1374522985,), (1374522992,), (1374522993,), (1374522995,), (1374523006,), (1374523007,), (1374523010,), (1374523012,), (1374523014,), (1374523017,), (1374523028,), (1374523030,), (1374523034,), (1374523040,), (1374523048,), (1374523050,), (1374523075,), (1374523076,), (1374523078,), (1374523090,), (1374523098,), (1374523100,), (1374523109,), (1374523112,), (1374523119,), (1374523127,), (1374523128,), (1374523129,), (1374523167,), (1374523175,), (1374523177,), (1374523179,), (1374523181,), (1374523184,), (1374523223,), (1374523239,), (1374523256,), (1374523277,), (1374523294,), (1374523314,), (1374523411,), (1374523497,), (1374523516,), (1374523536,), (1374523555,), (1374523579,), (1374523605,), (1374523618,), (1374523619,), (1374523621,), (1374523629,), (1374523637,), (1374523650,), (1374523816,), (1374523981,), (1374523985,), (1374523989,), (1374524011,), (1374524034,), (1374524056,), (1374524119,), (1374524212,), (1374524232,), (1374524254,), (1374524273,), (1374524280,), (1374524284,), (1374524316,), (1374524317,), (1374524318,), (1374524323,), (1374524342,), (1374524345,), (1374524388,), (1374524390,), (1374524393,), (1374524396,), (1374524405,), (1374524414,), (1374524539,), (1374524559,), (1374524579,), (1374524585,), (1374524594,), (1374524604,), (1374524678,), (1374524681,), (1374524683,), (1374524685,), (1374524695,), (1374524700,), (1374524811,), (1374524827,), (1374524831,), (1374524835,), (1374524838,), (1374524840,), (1374524842,), (1374524849,), (1374524868,), (1374524870,), (1374524872,), (1374524882,), (1374524886,), (1374524888,), (1374524903,), (1374524906,), (1374524908,), (1374524910,), (1374524913,), (1374524916,), (1374524923,), (1374524925,), (1374524927,), (1374524929,), (1374524938,), (1374524948,), (1374524975,), (1374524978,), (1374524984,), (1374524992,), (1374524993,), (1374524995,), (1374525004,), (1374525006,), (1374525008,), (1374525017,), (1374525025,), (1374525028,), (1374525033,), (1374525036,), (1374525039,), (1374525041,), (1374525043,), (1374525045,), (1374525069,), (1374525073,), (1374525076,), (1374525078,), (1374525081,), (1374525084,), (1374525098,), (1374525137,), (1374525145,), (1374525147,), (1374525149,), (1374525151,), (1374525154,), (1374525163,), (1374525165,), (1374525167,), (1374525169,), (1374525171,), (1374525176,), (1374525197,), (1374525200,), (1374525202,), (1374525204,), (1374525206,), (1374525210,), (1374525225,), (1374525247,), (1374525271,), (1374525273,), (1374525275,), (1374525277,), (1374525280,), (1374525284,), (1374525292,), (1374525295,), (1374525298,), (1374525300,), (1374525303,), (1374525306,), (1374525314,), (1374525317,), (1374525320,), (1374525322,), (1374525323,), (1374525325,), (1374525334,), (1374525336,), (1374525338,), (1374525340,), (1374525342,), (1374525345,), (1374525359,), (1374525376,), (1374525379,), (1374525382,), (1374525383,), (1374525384,), (1374525385,), (1374525395,), (1374525396,), (1374525397,), (1374525406,), (1374525414,), (1374525417,), (1374525422,), (1374525425,), (1374525428,), (1374525431,), (1374525433,), (1374525436,), (1374525444,), (1374525447,), (1374525450,), (1374525452,), (1374525453,), (1374525455,), (1374525466,), (1374525468,), (1374525469,), (1374525470,), (1374525472,), (1374525474,), (1374525486,), (1374525505,), (1374525508,), (1374525510,), (1374525512,), (1374525513,), (1374525515,), (1374525894,), (1374525920,), (1374525939,), (1374525959,), (1374525985,), (1374526012,), (1374526513,), (1374526837,), (1374526857,), (1374526887,), (1374526907,), (1374526942,), (1374526965,), (1374527134,), (1374527153,), (1374527169,), (1374527189,), (1374527213,), (1374527218,), (1374527298,), (1374527468,), (1374527474,), (1374527480,), (1374527487,), (1374527499,), (1374527502,), (1374527564,), (1374527566,), (1374527572,), (1374527580,), (1374527586,), (1374527592,), (1374527729,), (1374527916,), (1374527936,), (1374527975,), (1374528009,), (1374528044,), (1374528084,), (1374528312,), (1374528328,), (1374528345,), (1374528356,), (1374528368,), (1374528386,), (1374528483,), (1374528491,), (1374528509,), (1374528538,), (1374528562,), (1374528591,), (1374528685,), (1374528936,), (1374528959,), (1374528980,), (1374529001,), (1374529010,), (1374529022,), (1374529036,), (1374529039,), (1374529047,), (1374529054,), (1374529056,), (1374529059,), (1374529067,), (1374529068,), (1374529072,), (1374529081,), (1374529093,), (1374529102,), (1374529110,), (1374529113,), (1374529115,), (1374529121,), (1374529128,), (1374529142,), (1374529188,), (1374529191,), (1374529194,), (1374529206,), (1374529210,), (1374529212,), (1374529218,), (1374529220,), (1374529222,), (1374529225,), (1374529252,), (1374529256,), (1374529270,), (1374529273,), (1374529276,), (1374529281,), (1374529294,), (1374529297,), (1374529339,), (1374529363,), (1374529382,), (1374529401,), (1374529419,), (1374529437,), (1374529592,), (1374529610,), (1374529629,), (1374529648,), (1374529667,), (1374529686,), (1374529884,), (1374530015,), (1374530057,), (1374530094,), (1374530117,), (1374530140,), (1374530143,), (1374530199,), (1374530201,), (1374530204,), (1374530209,), (1374530219,), (1374530222,), (1374530229,), (1374530234,), (1374530242,), (1374530246,), (1374530249,), (1374530253,), (1374530262,), (1374530291,), (1374530294,), (1374530297,), (1374530300,), (1374530303,), (1374530305,), (1374530310,), (1374530312,), (1374530314,), (1374530316,), (1374530317,), (1374530318,), (1374530323,), (1374530325,), (1374530327,), (1374530329,), (1374530330,), (1374530332,), (1374530336,), (1374530338,), (1374530341,), (1374530344,), (1374530354,), (1374530362,), (1374530370,), (1374530373,), (1374530384,), (1374530388,), (1374530391,), (1374530394,), (1374530408,), (1374530426,), (1374530429,), (1374530432,), (1374530434,), (1374530436,), (1374530438,), (1374530447,), (1374530448,), (1374530450,), (1374530451,), (1374530458,), (1374530468,), (1374530487,), (1374530490,), (1374530492,), (1374530495,), (1374530496,), (1374530499,), (1374530505,), (1374530507,), (1374530509,), (1374530511,), (1374530513,), (1374530516,), (1374530522,), (1374530525,), (1374530528,), (1374530531,), (1374530532,), (1374530534,), (1374530544,), (1374530545,), (1374530546,), (1374530547,), (1374530548,), (1374530552,), (1374530559,), (1374530562,), (1374530565,), (1374530568,), (1374530570,), (1374530574,), (1374530587,), (1374530590,), (1374530593,), (1374530595,), (1374530596,), (1374530598,), (1374530606,), (1374530609,), (1374530611,), (1374530613,), (1374530615,), (1374530618,), (1374530626,), (1374530644,), (1374530647,), (1374530649,), (1374530650,), (1374530651,), (1374530652,), (1374530660,), (1374530662,), (1374530663,), (1374530664,), (1374530665,), (1374530667,), (1374530681,), (1374530686,), (1374530688,), (1374530689,), (1374530691,), (1374530693,), (1374530700,), (1374530702,), (1374530708,), (1374530711,), (1374530713,), (1374530717,), (1374530727,), (1374530730,), (1374530740,), (1374530742,), (1374530745,), (1374530748,), (1374530759,), (1374530761,), (1374530763,), (1374530766,), (1374530767,), (1374530769,), (1374530776,), (1374530778,), (1374530781,), (1374530784,), (1374530796,), (1374530799,), (1374530807,), (1374530811,), (1374530814,), (1374530817,), (1374530818,), (1374530820,), (1374530828,), (1374530829,), (1374530841,), (1374530848,), (1374530853,), (1374530855,), (1374530876,), (1374530892,), (1374530895,), (1374530898,), (1374530911,), (1374530921,), (1374530928,), (1374530942,), (1374530944,), (1374530946,), (1374530960,), (1374530968,), (1374530977,), (1374530992,), (1374530993,), (1374530997,), (1374531001,), (1374531002,), (1374531005,), (1374531019,), (1374531021,), (1374531023,), (1374531025,), (1374531028,), (1374531032,), (1374531047,), (1374531050,), (1374531053,), (1374531055,), (1374531056,), (1374531057,), (1374531067,), (1374531070,), (1374531078,), (1374531080,), (1374531082,), (1374531086,), (1374531100,), (1374531104,), (1374531111,), (1374531120,), (1374531122,), (1374531124,), (1374531533,), (1374531555,), (1374531574,), (1374531595,), (1374531620,), (1374531646,), (1374531827,), (1374531835,), (1374531842,), (1374531845,), (1374531859,), (1374531881,), (1374532045,), (1374532080,), (1374532106,), (1374532128,), (1374532148,), (1374532168,), (1374532328,), (1374532356,), (1374532383,), (1374532409,), (1374532434,), (1374532460,), (1374532716,), (1374533034,), (1374533035,), (1374533272,), (1374533300,), (1374533326,), (1374533352,), (1374533376,), (1374533404,), (1374533702,), (1374533832,), (1374533858,), (1374533883,), (1374533906,), (1374533932,), (1374533963,), (1374534125,), (1374534131,), (1374534143,), (1374534145,), (1374534147,), (1374534149,), (1374534167,), (1374534169,), (1374534170,), (1374534171,), (1374534172,), (1374534173,), (1374534228,), (1374534256,), (1374534258,), (1374534260,), (1374534263,), (1374534265,), (1374534286,), (1374534458,), (1374534460,), (1374534461,), (1374534462,), (1374534463,), (1374534465,), (1374534478,), (1374534480,), (1374534482,), (1374534483,), (1374534485,), (1374534488,), (1374534498,), (1374534522,), (1374534525,), (1374534526,), (1374534527,), (1374534528,), (1374534530,), (1374534554,), (1374534558,), (1374534569,), (1374534576,), (1374534579,), (1374534582,), (1374534607,), (1374534609,), (1374534611,), (1374534625,), (1374534649,), (1374534674,), (1374534716,), (1374534718,), (1374534720,), (1374534721,), (1374534722,), (1374534724,), (1374534731,), (1374534734,), (1374534737,), (1374534740,), (1374534742,), (1374534745,), (1374534962,), (1374535097,), (1374535099,), (1374535101,), (1374535102,), (1374535104,), (1374535106,), (1374535136,), (1374535175,), (1374535178,), (1374535181,), (1374535184,), (1374535186,), (1374535189,), (1374535197,), (1374535200,), (1374535202,), (1374535204,), (1374535206,), (1374535209,), (1374535222,), (1374535225,), (1374535228,), (1374535230,), (1374535232,), (1374535233,), (1374535244,), (1374535246,), (1374535247,), (1374535248,), (1374535250,), (1374535253,), (1374535263,), (1374535266,), (1374535269,), (1374535271,), (1374535272,), (1374535274,), (1374535282,), (1374535287,), (1374535292,), (1374535294,), (1374535297,), (1374535300,), (1374535309,), (1374535311,), (1374535314,), (1374535316,), (1374535318,), (1374535320,), (1374535343,), (1374535362,), (1374535363,), (1374535364,), (1374535365,), (1374535367,), (1374535369,), (1374535377,), (1374535382,), (1374535384,), (1374535386,), (1374535388,), (1374535391,), (1374535394,), (1374535405,), (1374535408,), (1374535411,), (1374535413,), (1374535416,), (1374535419,), (1374535479,), (1374535481,), (1374535483,), (1374535485,), (1374535492,), (1374535551,), (1374535560,), (1374535563,), (1374535566,), (1374535568,), (1374535569,), (1374535571,), (1374535578,), (1374535581,), (1374535584,), (1374535588,), (1374535590,), (1374535592,), (1374535602,), (1374535605,), (1374535607,), (1374535608,), (1374535610,), (1374535612,), (1374535621,), (1374535623,), (1374535625,), (1374535627,), (1374535630,), (1374535634,), (1374535643,), (1374535646,), (1374535649,), (1374535651,), (1374535653,), (1374535655,), (1374535666,), (1374535685,), (1374535689,), (1374535690,), (1374535691,), (1374535693,), (1374535696,), (1374535706,), (1374535709,), (1374535712,), (1374535714,), (1374535715,), (1374535717,), (1374535730,), (1374535733,), (1374535735,), (1374535737,), (1374535739,), (1374535742,), (1374535754,), (1374535771,), (1374535773,), (1374535775,), (1374535777,), (1374535779,), (1374535781,), (1374535816,), (1374535819,), (1374535821,), (1374535822,), (1374535823,), (1374535824,), (1374535836,), (1374535838,), (1374535840,), (1374535841,), (1374535844,), (1374535847,), (1374535860,), (1374535863,), (1374535866,), (1374535868,), (1374535871,), (1374535874,), (1374535884,), (1374535887,), (1374535890,), (1374535891,), (1374535893,), (1374535895,), (1374535914,), (1374535941,), (1374535944,), (1374535947,), (1374535950,), (1374535952,), (1374535955,), (1374535968,), (1374535984,), (1374535986,), (1374535988,), (1374535990,), (1374535992,), (1374535995,), (1374536008,), (1374536011,), (1374536014,), (1374536017,), (1374536019,), (1374536022,), (1374536033,), (1374536035,), (1374536036,), (1374536037,), (1374536039,), (1374536042,), (1374536055,), (1374536058,), (1374536061,), (1374536062,), (1374536063,), (1374536064,), (1374536088,), (1374536115,), (1374536139,), (1374536165,), (1374536189,), (1374536224,), (1374536679,), (1374536685,), (1374536727,), (1374536754,), (1374536776,), (1374536804,), (1374537303,), (1374537793,), (1374537820,), (1374537848,), (1374537892,), (1374537934,), (1374537983,), (1374538248,), (1374538252,), (1374538255,), (1374538257,), (1374538259,), (1374538261,), (1374538445,), (1374538464,), (1374538469,), (1374538472,), (1374538483,), (1374538511,), (1374538571,), (1374538574,), (1374538582,), (1374538589,), (1374538600,), (1374538605,), (1374538674,), (1374538677,), (1374538679,), (1374538681,), (1374538690,), (1374538701,), (1374538807,), (1374538837,), (1374538840,), (1374538843,), (1374538855,), (1374538856,), (1374538858,), (1374538870,), (1374538874,), (1374538876,), (1374538878,), (1374538882,), (1374538898,), (1374538919,), (1374538922,), (1374538931,), (1374538939,), (1374538940,), (1374538942,), (1374538964,), (1374538981,), (1374538983,), (1374538989,), (1374538997,), (1374538999,), (1374539002,), (1374539019,), (1374539026,), (1374539030,), (1374539032,), (1374539034,), (1374539037,), (1374539049,), (1374539054,), (1374539058,), (1374539073,), (1374539082,), (1374539086,), (1374539109,), (1374539137,), (1374539175,), (1374539177,), (1374539179,), (1374539181,), (1374539184,), (1374539188,), (1374539204,), (1374539207,), (1374539210,), (1374539212,), (1374539213,), (1374539215,), (1374539234,), (1374539235,), (1374539236,), (1374539237,), (1374539238,), (1374539240,), (1374539260,), (1374539263,), (1374539265,), (1374539266,), (1374539267,), (1374539268,), (1374539298,), (1374539318,), (1374539321,), (1374539329,), (1374539332,), (1374539333,), (1374539335,), (1374539351,), (1374539353,), (1374539355,), (1374539357,), (1374539359,), (1374539361,), (1374539379,), (1374539383,), (1374539385,), (1374539387,), (1374539389,), (1374539392,), (1374539419,), (1374539464,), (1374539466,), (1374539486,), (1374539492,), (1374539493,), (1374539496,), (1374539519,), (1374539520,), (1374539521,), (1374539522,), (1374539524,), (1374539525,), (1374539542,), (1374539545,), (1374539554,), (1374539560,), (1374539566,), (1374539569,), (1374539588,), (1374539590,), (1374539600,), (1374539601,), (1374539603,), (1374539606,), (1374539624,), (1374539627,), (1374539632,), (1374539634,), (1374539636,), (1374539638,), (1374539663,), (1374539699,), (1374539702,), (1374539704,), (1374539706,), (1374539708,), (1374539710,), (1374539728,), (1374539738,), (1374539743,), (1374539744,), (1374539745,), (1374539747,), (1374539763,), (1374539766,), (1374539774,), (1374539784,), (1374539786,), (1374539788,), (1374539805,), (1374539808,), (1374539810,), (1374539811,), (1374539812,), (1374539813,), (1374539831,), (1374539836,), (1374539844,), (1374539846,), (1374539848,), (1374539850,), (1374539871,), (1374539875,), (1374539877,), (1374539878,), (1374539890,), (1374539894,), (1374539912,), (1374539913,), (1374539914,), (1374539930,), (1374539932,), (1374539935,), (1374539950,), (1374539953,), (1374539955,), (1374539957,), (1374539959,), (1374539961,), (1374539978,), (1374539981,), (1374539984,), (1374539992,), (1374540004,), (1374540006,), (1374540030,), (1374540047,), (1374540050,), (1374540052,), (1374540054,), (1374540056,), (1374540058,), (1374540079,), (1374540081,), (1374540083,), (1374540084,), (1374540086,), (1374540087,), (1374540105,), (1374540107,), (1374540109,), (1374540110,), (1374540111,), (1374540112,), (1374540129,), (1374540132,), (1374540134,), (1374540136,), (1374540137,), (1374540140,), (1374540162,), (1374540164,), (1374540168,), (1374540170,), (1374540172,), (1374540175,), (1374540190,), (1374540192,), (1374540193,), (1374540194,), (1374540195,), (1374540196,), (1374540213,), (1374540217,), (1374540219,), (1374540221,), (1374540223,), (1374540224,), (1374540237,), (1374540238,), (1374540240,), (1374540242,), (1374540245,), (1374540249,), (1374540266,), (1374540269,), (1374540271,), (1374540273,), (1374540275,), (1374540278,), (1374540301,), (1374540336,), (1374540338,), (1374540339,), (1374540340,), (1374540342,), (1374540344,), (1374540359,), (1374540362,), (1374540364,), (1374540366,), (1374540367,), (1374540369,), (1374540391,), (1374540393,), (1374540395,), (1374540397,), (1374540398,), (1374540401,), (1374540418,), (1374540421,), (1374540424,), (1374540425,), (1374540426,), (1374540427,), (1374540441,), (1374540444,), (1374540448,), (1374540452,), (1374540454,), (1374540456,), (1374540471,), (1374540476,), (1374540479,), (1374540481,), (1374540483,), (1374540485,), (1374540501,), (1374540504,), (1374540507,), (1374540509,), (1374540520,), (1374540521,), (1374541186,), (1374541238,), (1374541303,), (1374541340,), (1374541368,), (1374541400,), (1374541739,), (1374542186,), (1374542211,), (1374542235,), (1374542260,), (1374542286,), (1374542314,), (1374542427,), (1374542448,), (1374542472,), (1374542496,), (1374542529,), (1374542554,), (1374542662,), (1374542665,), (1374542667,), (1374542669,), (1374542671,), (1374542673,), (1374542690,), (1374542693,), (1374542694,), (1374542695,), (1374542698,), (1374542700,), (1374542721,), (1374542725,), (1374542728,), (1374542730,), (1374542732,), (1374542734,), (1374542750,), (1374542753,), (1374542755,), (1374542756,), (1374542757,), (1374542758,), (1374542776,), (1374542781,), (1374542784,), (1374542788,), (1374542790,), (1374542792,), (1374542807,), (1374542810,), (1374542811,), (1374542814,), (1374542816,), (1374542818,), (1374542832,), (1374542836,), (1374542840,), (1374542842,), (1374542844,), (1374542846,), (1374542871,), (1374542888,), (1374542892,), (1374542904,), (1374542906,), (1374542908,), (1374542910,), (1374542925,), (1374542929,), (1374542931,), (1374542932,), (1374542934,), (1374542936,), (1374542952,), (1374542957,), (1374542969,), (1374542976,), (1374542983,), (1374542985,), (1374543000,), (1374543004,), (1374543012,), (1374543017,), (1374543019,), (1374543022,), (1374543036,), (1374543047,), (1374543058,), (1374543067,), (1374543072,), (1374543075,), (1374543101,), (1374543127,), (1374543135,), (1374543138,), (1374543141,), (1374543143,), (1374543146,), (1374543155,), (1374543158,), (1374543161,), (1374543163,), (1374543164,), (1374543166,), (1374543217,), (1374543219,), (1374543223,), (1374543224,), (1374543228,), (1374543230,), (1374543313,), (1374543343,), (1374543361,), (1374543362,), (1374543364,), (1374543367,), (1374543370,), (1374543377,), (1374543380,), (1374543382,), (1374543384,), (1374543386,), (1374543389,), (1374543401,), (1374543403,), (1374543405,), (1374543407,), (1374543409,), (1374543412,), (1374543419,), (1374543423,), (1374543426,), (1374543428,), (1374543431,), (1374543434,), (1374543441,), (1374543442,), (1374543444,), (1374543447,), (1374543465,), (1374543473,), (1374543516,), (1374543519,), (1374543520,), (1374543521,), (1374543523,), (1374543526,), (1374543547,), (1374543549,), (1374543550,), (1374543551,), (1374543554,), (1374543558,), (1374543573,), (1374543574,), (1374543576,), (1374543578,), (1374543580,), (1374543584,), (1374543599,), (1374543608,), (1374543612,), (1374543614,), (1374543616,), (1374543619,), (1374543629,), (1374543655,), (1374543657,), (1374543664,), (1374543669,), (1374543671,), (1374543672,), (1374543688,), (1374543689,), (1374543690,), (1374543691,), (1374543693,), (1374543696,), (1374543707,), (1374543715,), (1374543717,), (1374543718,), (1374543720,), (1374543723,), (1374543737,), (1374543744,), (1374543749,), (1374543750,), (1374543751,), (1374543755,), (1374543766,), (1374543767,), (1374543768,), (1374543769,), (1374543771,), (1374543774,), (1374543794,), (1374543800,), (1374543801,), (1374543802,), (1374543803,), (1374543805,), (1374543824,), (1374543831,), (1374543832,), (1374543833,), (1374543835,), (1374543838,), (1374543848,), (1374543849,), (1374543850,), (1374543851,), (1374543853,), (1374543856,), (1374543870,), (1374543878,), (1374543885,), (1374543886,), (1374543890,), (1374543893,), (1374543912,), (1374543935,), (1374543936,), (1374543937,), (1374543938,), (1374543940,), (1374543941,), (1374543952,), (1374543953,), (1374543954,), (1374543955,), (1374543956,), (1374543958,), (1374543980,), (1374543984,), (1374543985,), (1374543986,), (1374543988,), (1374543991,), (1374544004,), (1374544007,), (1374544008,), (1374544010,), (1374544012,), (1374544013,), (1374544027,), (1374544028,), (1374544029,), (1374544030,), (1374544032,), (1374544035,), (1374544038,), (1374544039,), (1374544045,), (1374544050,), (1374544057,), (1374544058,), (1374544060,), (1374544062,), (1374544070,), (1374544077,), (1374544079,), (1374544080,), (1374544082,), (1374544085,), (1374544094,), (1374544112,), (1374544115,), (1374544117,), (1374544119,), (1374544121,), (1374544124,), (1374544148,), (1374544166,), (1374544174,), (1374544181,), (1374544183,), (1374544186,), (1374544188,), (1374544196,), (1374544198,), (1374544200,), (1374544202,), (1374544204,), (1374544207,), (1374544215,), (1374544218,), (1374544220,), (1374544222,), (1374544224,), (1374544227,), (1374544238,), (1374544239,), (1374544241,), (1374544242,), (1374544244,), (1374544246,), (1374544260,), (1374544262,), (1374544264,), (1374544265,), (1374544267,), (1374544269,), (1374544277,), (1374544279,), (1374544293,), (1374544294,), (1374544296,), (1374544299,), (1374544310,), (1374544311,), (1374544312,), (1374544313,), (1374544315,), (1374544318,), (1374544725,), (1374544750,), (1374544776,), (1374544801,), (1374544832,), (1374544850,), (1374545511,), (1374546105,), (1374546141,), (1374546162,), (1374546173,), (1374546199,), (1374546204,), (1374546340,), (1374546342,), (1374546343,), (1374546344,), (1374546345,), (1374546347,), (1374546360,), (1374546362,), (1374546364,), (1374546366,), (1374546368,), (1374546371,), (1374546379,), (1374546381,), (1374546384,), (1374546387,), (1374546389,), (1374546392,), (1374546397,), (1374546398,), (1374546401,), (1374546404,), (1374546406,), (1374546409,), (1374546415,), (1374546421,), (1374546437,), (1374546443,), (1374546446,), (1374546449,), (1374546465,), (1374546467,), (1374546469,), (1374546471,), (1374546475,), (1374546479,), (1374546490,), (1374546492,), (1374546494,), (1374546496,), (1374546499,), (1374546502,), (1374546516,), (1374546518,), (1374546520,), (1374546522,), (1374546524,), (1374546527,), (1374546549,), (1374546567,), (1374546569,), (1374546571,), (1374546572,), (1374546574,), (1374546576,), (1374546586,), (1374546593,), (1374546600,), (1374546601,), (1374546602,), (1374546604,), (1374546619,), (1374546622,), (1374546624,), (1374546625,), (1374546628,), (1374546629,), (1374546639,), (1374546641,), (1374546644,), (1374546646,), (1374546648,), (1374546652,), (1374546661,), (1374546663,), (1374546665,), (1374546667,), (1374546669,), (1374546672,), (1374546678,), (1374546680,), (1374546690,), (1374546692,), (1374546694,), (1374546696,), (1374546717,), (1374546718,), (1374546719,), (1374546720,), (1374546722,), (1374546725,), (1374546735,), (1374546736,), (1374546737,), (1374546738,), (1374546740,), (1374546743,), (1374546752,), (1374546754,), (1374546757,), (1374546758,), (1374546760,), (1374546762,), (1374546784,), (1374546797,), (1374546798,), (1374546799,), (1374546800,), (1374546802,), (1374546805,), (1374546815,), (1374546816,), (1374546817,), (1374546818,), (1374546820,), (1374546823,), (1374546830,), (1374546832,), (1374546834,), (1374546836,), (1374546838,), (1374546841,), (1374546849,), (1374546860,), (1374546862,), (1374546863,), (1374546865,), (1374546868,), (1374546871,), (1374546887,), (1374546888,), (1374546889,), (1374546890,), (1374546891,), (1374546893,), (1374546906,), (1374546907,), (1374546908,), (1374546909,), (1374546910,), (1374546912,), (1374546925,), (1374546949,), (1374546974,), (1374546976,), (1374546978,), (1374546979,), (1374546981,), (1374546983,), (1374546992,), (1374546995,), (1374546998,), (1374546999,), (1374547002,), (1374547005,), (1374547012,), (1374547013,), (1374547015,), (1374547017,), (1374547019,), (1374547022,), (1374547039,), (1374547040,), (1374547041,), (1374547042,), (1374547044,), (1374547048,), (1374547058,), (1374547059,), (1374547060,), (1374547061,), (1374547063,), (1374547066,), (1374547090,), (1374547091,), (1374547092,), (1374547093,), (1374547095,), (1374547098,), (1374547115,), (1374547140,), (1374547143,), (1374547145,), (1374547146,), (1374547148,), (1374547150,), (1374547159,), (1374547161,), (1374547163,), (1374547164,), (1374547165,), (1374547167,), (1374547180,), (1374547182,), (1374547184,), (1374547185,), (1374547187,), (1374547189,), (1374547201,), (1374547233,), (1374547235,), (1374547246,), (1374547248,), (1374547250,), (1374547252,), (1374547261,), (1374547264,), (1374547266,), (1374547268,), (1374547270,), (1374547274,), (1374547284,), (1374547289,), (1374547294,), (1374547296,), (1374547299,), (1374547314,), (1374547318,), (1374547319,), (1374547321,), (1374547323,), (1374547325,), (1374547339,), (1374547344,), (1374547348,), (1374547349,), (1374547351,), (1374547354,), (1374547366,), (1374547367,), (1374547368,), (1374547369,), (1374547371,), (1374547374,), (1374547394,), (1374547395,), (1374547396,), (1374547397,), (1374547399,), (1374547402,), (1374547413,), (1374547414,), (1374547415,), (1374547416,), (1374547418,), (1374547423,), (1374547433,), (1374547434,), (1374547435,), (1374547436,), (1374547438,), (1374547440,), (1374547459,), (1374547490,), (1374547492,), (1374547494,), (1374547496,), (1374547499,), (1374547502,), (1374547518,), (1374547521,), (1374547522,), (1374547523,), (1374547525,), (1374547527,), (1374547545,), (1374547573,), (1374547581,), (1374547585,), (1374547590,), (1374547592,), (1374547596,), (1374547614,), (1374547615,), (1374547617,), (1374547619,), (1374547622,), (1374547625,), (1374547657,), (1374547659,), (1374547660,), (1374547661,), (1374547662,), (1374547664,), (1374547687,), (1374547697,), (1374547728,), (1374547753,), (1374547791,), (1374547838,), (1374548937,), (1374549238,), (1374549242,), (1374549245,), (1374549247,), (1374549251,), (1374549282,), (1374549284,), (1374549287,), (1374549290,), (1374549294,), (1374549299,), (1374549317,), (1374549319,), (1374549320,), (1374549321,), (1374549323,), (1374549326,), (1374549356,), (1374549388,), (1374549390,), (1374549393,), (1374549402,), (1374549406,), (1374549410,), (1374549433,), (1374549441,), (1374549449,), (1374549454,), (1374549457,), (1374549460,), (1374549491,), (1374549492,), (1374549494,), (1374549495,), (1374549496,), (1374549498,), (1374549522,), (1374549524,), (1374549526,), (1374549528,), (1374549531,), (1374549534,), (1374549553,), (1374549556,), (1374549559,), (1374549560,), (1374549562,), (1374549564,), (1374549582,), (1374549584,), (1374549586,), (1374549588,), (1374549591,), (1374549597,), (1374549626,), (1374549649,), (1374549654,), (1374549656,), (1374549658,), (1374549661,), (1374549664,), (1374549683,), (1374549685,), (1374549686,), (1374549687,), (1374549688,), (1374549690,), (1374549712,), (1374549715,), (1374549718,), (1374549720,), (1374549722,), (1374549724,), (1374549743,), (1374549756,), (1374549766,), (1374549775,), (1374549780,), (1374549782,), (1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31072025': {'nb_upload': 76, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25528614]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374550503] map_info['map_portfolio_photo'] : {25528614: [1374550503, 1374550489, 1374550487, 1374550485, 1374550483, 1374550482, 1374550478, 1374550454, 1374550450, 1374550449, 1374550448, 1374550447, 1374550445, 1374550421, 1374550418, 1374550417, 1374550415, 1374550413, 1374550405, 1374550384, 1374550351, 1374550337, 1374550333, 1374550331, 1374550329, 1374550327, 1374550323, 1374550300, 1374550296, 1374550293, 1374550286, 1374550279, 1374550275, 1374550259, 1374550256, 1374550254, 1374550252, 1374550249, 1374550245, 1374550211, 1374550208, 1374550207, 1374550205, 1374550204, 1374550202, 1374550179, 1374550156, 1374550154, 1374550151, 1374550149, 1374550146, 1374550133, 1374550111, 1374550109, 1374550107, 1374550106, 1374550104, 1374550101, 1374549992, 1374549964, 1374549949, 1374549947, 1374549944, 1374549941, 1374549912, 1374549904, 1374549891, 1374549888, 1374549884, 1374549880, 1374549864, 1374549861, 1374549857, 1374549853, 1374549850, 1374549847]} final : True mtd_id 4302 list_pids : [1374550503] Looping around the photos to save general results len do output : 1 /25528614Didn'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, '3405795') ('4302', '25528614', '1374550503', None, None, None, None, None, '3405795') 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, '25528614', 'None', None, None, None, None, '3405795'), ('4302', '25528614', '1374550503', None, None, None, None, None, '3405795')] time used for this insertion : 0.013455390930175781 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0795278549194336 time spend to save output : 0.013605117797851562 total time spend for step 5 : 3.093132972717285 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 (3405795) 1.85user 2.40system 0:08.80elapsed 48%CPU (0avgtext+0avgdata 156904maxresident)k 0inputs+5264outputs (10major+61960minor)pagefaults 0swaps