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 : 2477219 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 (3299153) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3299153) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992907 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3299153'] with mtr_portfolio_ids : ['24992907'] and first list_photo_ids : [] new path : /proc/2477219/ Name: python3 Umask: 0002 State: R (running) Tgid: 2477219 Ngid: 0 Pid: 2477219 PPid: 2477217 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2477219 NSpid: 2477219 NSpgid: 2476355 NSsid: 2476355 VmPeak: 385984 kB VmSize: 385984 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99916 kB VmRSS: 99916 kB RssAnon: 59820 kB RssFile: 40096 kB RssShmem: 0 kB VmData: 144736 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 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: 111 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2477219', 'Ngid': '0', 'Pid': '2477219', 'PPid': '2477217', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2477219', 'NSpid': '2477219', 'NSpgid': '2476355', 'NSsid': '2476355', 'VmPeak': '385984 kB', 'VmSize': '385984 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99916 kB', 'VmRSS': '99916 kB', 'RssAnon': '59820 kB', 'RssFile': '40096 kB', 'RssShmem': '0 kB', 'VmData': '144736 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 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': '111'} ('datou_batch_current', '2477219', '385984', '0', '385984', '144736', '99916', b'', 'marlene', '3299153') 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 (24992907) 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 (3299153 ) ) 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 (24992907) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1372282969, 'portfolio_id': 24992907}, {'photo_id': 1372282964, 'portfolio_id': 24992907}, {'photo_id': 1372282960, 'portfolio_id': 24992907}, {'photo_id': 1372282957, 'portfolio_id': 24992907}, {'photo_id': 1372282954, 'portfolio_id': 24992907}, {'photo_id': 1372282950, 'portfolio_id': 24992907}, {'photo_id': 1372282937, 'portfolio_id': 24992907}, {'photo_id': 1372282933, 'portfolio_id': 24992907}, {'photo_id': 1372282929, 'portfolio_id': 24992907}, {'photo_id': 1372282924, 'portfolio_id': 24992907}, {'photo_id': 1372282913, 'portfolio_id': 24992907}, {'photo_id': 1372282905, 'portfolio_id': 24992907}, {'photo_id': 1372282883, 'portfolio_id': 24992907}, {'photo_id': 1372282880, 'portfolio_id': 24992907}, {'photo_id': 1372282875, 'portfolio_id': 24992907}, {'photo_id': 1372282872, 'portfolio_id': 24992907}, {'photo_id': 1372282869, 'portfolio_id': 24992907}, {'photo_id': 1372282866, 'portfolio_id': 24992907}, {'photo_id': 1372282833, 'portfolio_id': 24992907}, {'photo_id': 1372282830, 'portfolio_id': 24992907}, {'photo_id': 1372282822, 'portfolio_id': 24992907}, {'photo_id': 1372282810, 'portfolio_id': 24992907}, {'photo_id': 1372282808, 'portfolio_id': 24992907}, {'photo_id': 1372282799, 'portfolio_id': 24992907}, {'photo_id': 1372282734, 'portfolio_id': 24992907}, {'photo_id': 1372282722, 'portfolio_id': 24992907}, {'photo_id': 1372282714, 'portfolio_id': 24992907}, {'photo_id': 1372282694, 'portfolio_id': 24992907}, {'photo_id': 1372282656, 'portfolio_id': 24992907}, {'photo_id': 1372282618, 'portfolio_id': 24992907}, {'photo_id': 1372282426, 'portfolio_id': 24992907}, {'photo_id': 1372282389, 'portfolio_id': 24992907}, {'photo_id': 1372282350, 'portfolio_id': 24992907}, {'photo_id': 1372282308, 'portfolio_id': 24992907}, {'photo_id': 1372282272, 'portfolio_id': 24992907}, {'photo_id': 1372282233, 'portfolio_id': 24992907}, {'photo_id': 1372282172, 'portfolio_id': 24992907}, {'photo_id': 1372282165, 'portfolio_id': 24992907}, {'photo_id': 1372282159, 'portfolio_id': 24992907}, {'photo_id': 1372282155, 'portfolio_id': 24992907}, {'photo_id': 1372282148, 'portfolio_id': 24992907}, {'photo_id': 1372282144, 'portfolio_id': 24992907}, {'photo_id': 1372282091, 'portfolio_id': 24992907}, {'photo_id': 1372282081, 'portfolio_id': 24992907}, {'photo_id': 1372282078, 'portfolio_id': 24992907}, {'photo_id': 1372282075, 'portfolio_id': 24992907}, {'photo_id': 1372282072, 'portfolio_id': 24992907}, {'photo_id': 1372282062, 'portfolio_id': 24992907}, {'photo_id': 1372281948, 'portfolio_id': 24992907}, {'photo_id': 1372281935, 'portfolio_id': 24992907}, {'photo_id': 1372281925, 'portfolio_id': 24992907}, {'photo_id': 1372281919, 'portfolio_id': 24992907}, {'photo_id': 1372281915, 'portfolio_id': 24992907}, {'photo_id': 1372281911, 'portfolio_id': 24992907}, {'photo_id': 1372281893, 'portfolio_id': 24992907}, {'photo_id': 1372281889, 'portfolio_id': 24992907}, {'photo_id': 1372281880, 'portfolio_id': 24992907}, {'photo_id': 1372281864, 'portfolio_id': 24992907}, {'photo_id': 1372281828, 'portfolio_id': 24992907}, {'photo_id': 1372281824, 'portfolio_id': 24992907}] map_portfolio_id_photo_id: {24992907: [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799, 1372282734, 1372282722, 1372282714, 1372282694, 1372282656, 1372282618, 1372282426, 1372282389, 1372282350, 1372282308, 1372282272, 1372282233, 1372282172, 1372282165, 1372282159, 1372282155, 1372282148, 1372282144, 1372282091, 1372282081, 1372282078, 1372282075, 1372282072, 1372282062, 1372281948, 1372281935, 1372281925, 1372281919, 1372281915, 1372281911, 1372281893, 1372281889, 1372281880, 1372281864, 1372281828, 1372281824]} ##### 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.015856027603149414 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jul 16 08:26:28 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 (24992907) 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 : 24992907 get user id for portfolio 24992907 get sub ptf for main ptf 24992907, type 3726 and hashtags ['environnement', 'cartonnette', 'metal', 'Teint_Dans_La_Masse', 'flou', 'papier', 'autre_refus', 'kraft', 'mal_croppe', 'plastique', 'Carton_gris', 'Carton_brun'] 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`=24992907 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','metal','Teint_Dans_La_Masse','flou','papier','autre_refus','kraft','mal_croppe','plastique','Carton_gris','Carton_brun')) 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`=24992907 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','metal','Teint_Dans_La_Masse','flou','papier','autre_refus','kraft','mal_croppe','plastique','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 24992907, 'sub_port_id': 24992910, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838162, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'cartonnette': {'main_port_id': 24992907, 'sub_port_id': 24992911, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838163, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'kraft': {'main_port_id': 24992907, 'sub_port_id': 24992912, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838164, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'papier': {'main_port_id': 24992907, 'sub_port_id': 24992913, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838165, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 24992907, 'sub_port_id': 24992914, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838166, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'environnement': {'main_port_id': 24992907, 'sub_port_id': 24992915, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838167, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'flou': {'main_port_id': 24992907, 'sub_port_id': 24992916, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838168, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'mal_croppe': {'main_port_id': 24992907, 'sub_port_id': 24992917, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838169, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'Carton_brun': {'main_port_id': 24992907, 'sub_port_id': 24992918, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838170, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'autre_refus': {'main_port_id': 24992907, 'sub_port_id': 24992919, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838171, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'Carton_gris': {'main_port_id': 24992907, 'sub_port_id': 24992920, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838172, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}, 'metal': {'main_port_id': 24992907, 'sub_port_id': 24992921, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838173, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992910 , 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=24992907 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 (24992910) result : ((1372282942,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992911 , 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=24992907 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 (24992911) result : ((1372282906,), (1372282907,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992912 , 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=24992907 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 (24992912) result : ((1372282850,), (1372282851,), (1372282916,), (1372282917,), (1372282918,), (1372282919,), (1372282921,), (1372282922,), (1372282923,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992913 , 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=24992907 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 (24992913) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992914 , 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=24992907 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 (24992914) result : ((1372282903,), (1372282941,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992915 , 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=24992907 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 (24992915) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992916 , 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=24992907 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 (24992916) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992917 , 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=24992907 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 (24992917) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992918 , 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=24992907 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 (24992918) result : ((1372282910,), (1372282911,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992919 , 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=24992907 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 (24992919) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992920 , 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=24992907 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 (24992920) result : ((1372282780,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24992921 , 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=24992907 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 (24992921) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24992907) result : ((1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24992907 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','metal','Teint_Dans_La_Masse','flou','papier','autre_refus','kraft','mal_croppe','plastique','Carton_gris','Carton_brun')) 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`=24992907 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','cartonnette','metal','Teint_Dans_La_Masse','flou','papier','autre_refus','kraft','mal_croppe','plastique','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 24992907, 'sub_port_id': 24992931, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838186, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'cartonnette': {'main_port_id': 24992907, 'sub_port_id': 24992933, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838187, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'kraft': {'main_port_id': 24992907, 'sub_port_id': 24992934, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838188, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'papier': {'main_port_id': 24992907, 'sub_port_id': 24992935, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838189, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'Teint_Dans_La_Masse': {'main_port_id': 24992907, 'sub_port_id': 24992936, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838190, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'environnement': {'main_port_id': 24992907, 'sub_port_id': 24992938, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838191, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'flou': {'main_port_id': 24992907, 'sub_port_id': 24992939, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838192, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'mal_croppe': {'main_port_id': 24992907, 'sub_port_id': 24992940, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838193, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'Carton_brun': {'main_port_id': 24992907, 'sub_port_id': 24992941, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838194, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'autre_refus': {'main_port_id': 24992907, 'sub_port_id': 24992943, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838195, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'Carton_gris': {'main_port_id': 24992907, 'sub_port_id': 24992944, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838196, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 19), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}, 'metal': {'main_port_id': 24992907, 'sub_port_id': 24992945, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16838197, 'last_updated_at': datetime.datetime(2025, 7, 16, 8, 22, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 16, 8, 22, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 16, 8, 19)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992931,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992933,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992934,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992912 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992935,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992913 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992936,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992914 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992938,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992915 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992939,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992916 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992940,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992917 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992941,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992918 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992943,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992919 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992920 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24992945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24992921 lien utilise dans velours : https://www.fotonower.com/velours/24992931,24992933,24992934,24992935,24992936,24992938,24992939,24992940,24992941,24992943,24992944,24992945?tags=plastique,cartonnette,kraft,papier,Teint_Dans_La_Masse,environnement,flou,mal_croppe,Carton_brun,autre_refus,Carton_gris,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24992907]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799] map_info['map_portfolio_photo'] : {24992907: [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799, 1372282734, 1372282722, 1372282714, 1372282694, 1372282656, 1372282618, 1372282426, 1372282389, 1372282350, 1372282308, 1372282272, 1372282233, 1372282172, 1372282165, 1372282159, 1372282155, 1372282148, 1372282144, 1372282091, 1372282081, 1372282078, 1372282075, 1372282072, 1372282062, 1372281948, 1372281935, 1372281925, 1372281919, 1372281915, 1372281911, 1372281893, 1372281889, 1372281880, 1372281864, 1372281828, 1372281824]} final : False mtd_id 4302 list_pids : [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799] Looping around the photos to save general results len do output : 1 /24992907. 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, '3299153') ('4302', '24992907', '1372282969', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282964', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282960', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282957', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282954', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282950', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282937', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282933', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282929', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282924', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282913', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282905', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282883', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282880', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282875', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282872', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282869', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282866', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282833', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282830', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282822', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282810', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282808', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282799', None, None, None, None, None, '3299153') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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, '24992907', "{'plastique': 24992910, 'cartonnette': 24992911, 'kraft': 24992912, 'papier': 24992913, 'Teint_Dans_La_Masse': 24992914, 'environnement': 24992915, 'flou': 24992916, 'mal_croppe': 24992917, 'Carton_brun': 24992918, 'autre_refus': 24992919, 'Carton_gris': 24992920, 'metal': 24992921}", None, None, None, None, '3299153'), ('4302', '24992907', '1372282969', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282964', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282960', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282957', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282954', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282950', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282937', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282933', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282929', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282924', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282913', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282905', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282883', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282880', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282875', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282872', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282869', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282866', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282833', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282830', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282822', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282810', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282808', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282799', None, None, None, None, None, '3299153')] time used for this insertion : 0.3005552291870117 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5591309070587158 time spend to save output : 0.3009824752807617 total time spend for step 1 : 1.8601133823394775 step2:final Wed Jul 16 08:26:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24992907) 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 24992907 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1372281893,1372281889,1372281880,1372281864,1372281828,1372281824,1372281948,1372281935,1372281925,1372281919,1372281915,1372281911,1372282091,1372282081,1372282078,1372282075,1372282072,1372282062,1372282172,1372282165,1372282159,1372282155,1372282148,1372282144,1372282426,1372282389,1372282350,1372282308,1372282272,1372282233,1372282734,1372282722,1372282714,1372282694,1372282656,1372282618,1372282833,1372282830,1372282822,1372282810,1372282808,1372282799,1372282883,1372282880,1372282875,1372282872,1372282869,1372282866,1372282937,1372282933,1372282929,1372282924,1372282913,1372282905,1372282969,1372282964,1372282960,1372282957,1372282954,1372282950); 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([24992907]) Inside saveOutput : final : False verbose : True original output for save of step final : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} new output for save of step final : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799] map_info['map_portfolio_photo'] : {24992907: [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799, 1372282734, 1372282722, 1372282714, 1372282694, 1372282656, 1372282618, 1372282426, 1372282389, 1372282350, 1372282308, 1372282272, 1372282233, 1372282172, 1372282165, 1372282159, 1372282155, 1372282148, 1372282144, 1372282091, 1372282081, 1372282078, 1372282075, 1372282072, 1372282062, 1372281948, 1372281935, 1372281925, 1372281919, 1372281915, 1372281911, 1372281893, 1372281889, 1372281880, 1372281864, 1372281828, 1372281824]} final : False mtd_id 4302 list_pids : [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799] Looping around the photos to save general results len do output : 24 /1372282969.Didn't retrieve data . /1372282964.Didn't retrieve data . /1372282960.Didn't retrieve data . /1372282957.Didn't retrieve data . /1372282954.Didn't retrieve data . /1372282950.Didn't retrieve data . /1372282937.Didn't retrieve data . /1372282933.Didn't retrieve data . /1372282929.Didn't retrieve data . /1372282924.Didn't retrieve data . /1372282913.Didn't retrieve data . /1372282905.Didn't retrieve data . /1372282883.Didn't retrieve data . /1372282880.Didn't retrieve data . /1372282875.Didn't retrieve data . /1372282872.Didn't retrieve data . /1372282869.Didn't retrieve data . /1372282866.Didn't retrieve data . /1372282833.Didn't retrieve data . /1372282830.Didn't retrieve data . /1372282822.Didn't retrieve data . /1372282810.Didn't retrieve data . /1372282808.Didn't retrieve data . /1372282799.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, '3299153') ('4302', '24992907', '1372282969', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282964', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282960', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282957', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282954', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282950', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282937', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282933', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282929', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282924', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282913', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282905', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282883', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282880', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282875', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282872', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282869', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282866', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282833', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282830', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282822', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282810', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282808', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282799', None, None, None, None, None, '3299153') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 72 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', '24992907', '1372282969', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282964', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282960', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282957', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282954', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282950', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282937', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282933', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282929', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282924', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282913', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282905', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282883', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282880', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282875', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282872', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282869', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282866', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282833', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282830', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282822', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282810', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282808', '0.09817706666417914', None, None, None, None, '3299153'), ('4302', '24992907', '1372282799', '0.09817706666417914', None, None, None, None, '3299153')] time used for this insertion : 0.17892193794250488 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.14168500900268555 time spend to save output : 0.1802053451538086 total time spend for step 2 : 0.32189035415649414 step3:velours_tree Wed Jul 16 08:26:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24992907: [{'plastique': 24992910, 'cartonnette': 24992911, 'kraft': 24992912, 'papier': 24992913, 'Teint_Dans_La_Masse': 24992914, 'environnement': 24992915, 'flou': 24992916, 'mal_croppe': 24992917, 'Carton_brun': 24992918, 'autre_refus': 24992919, 'Carton_gris': 24992920, 'metal': 24992921}]} input_args_next_step : {24992907: ()} output_args : {24992907: [{'plastique': 24992910, 'cartonnette': 24992911, 'kraft': 24992912, 'papier': 24992913, 'Teint_Dans_La_Masse': 24992914, 'environnement': 24992915, 'flou': 24992916, 'mal_croppe': 24992917, 'Carton_brun': 24992918, 'autre_refus': 24992919, 'Carton_gris': 24992920, 'metal': 24992921}]} args : 24992907 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 24992910, 'cartonnette': 24992911, 'kraft': 24992912, 'papier': 24992913, 'Teint_Dans_La_Masse': 24992914, 'environnement': 24992915, 'flou': 24992916, 'mal_croppe': 24992917, 'Carton_brun': 24992918, 'autre_refus': 24992919, 'Carton_gris': 24992920, 'metal': 24992921},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24992907) 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([24992907]) 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.30619025230407715 time spend to save output : 4.57763671875e-05 total time spend for step 3 : 0.30623602867126465 step4:send_mail_cod Wed Jul 16 08:26:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} input_args_next_step : {1372282969: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282969 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282964 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282960 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282957 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282954 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282950 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282937 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282933 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282929 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282924 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282913 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282905 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282883 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282880 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282875 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282872 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282869 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282866 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282833 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282830 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282822 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282810 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282808 depend.output_id : 0 input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ()} output_args : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',)} args : 1372282799 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {24992907: [{'plastique': 24992910, 'cartonnette': 24992911, 'kraft': 24992912, 'papier': 24992913, 'Teint_Dans_La_Masse': 24992914, 'environnement': 24992915, 'flou': 24992916, 'mal_croppe': 24992917, 'Carton_brun': 24992918, 'autre_refus': 24992919, 'Carton_gris': 24992920, 'metal': 24992921}]} input_args_next_step : {1372282969: ('0.09817706666417914',), 1372282964: ('0.09817706666417914',), 1372282960: ('0.09817706666417914',), 1372282957: ('0.09817706666417914',), 1372282954: ('0.09817706666417914',), 1372282950: ('0.09817706666417914',), 1372282937: ('0.09817706666417914',), 1372282933: ('0.09817706666417914',), 1372282929: ('0.09817706666417914',), 1372282924: ('0.09817706666417914',), 1372282913: ('0.09817706666417914',), 1372282905: ('0.09817706666417914',), 1372282883: ('0.09817706666417914',), 1372282880: ('0.09817706666417914',), 1372282875: ('0.09817706666417914',), 1372282872: ('0.09817706666417914',), 1372282869: ('0.09817706666417914',), 1372282866: ('0.09817706666417914',), 1372282833: ('0.09817706666417914',), 1372282830: ('0.09817706666417914',), 1372282822: ('0.09817706666417914',), 1372282810: ('0.09817706666417914',), 1372282808: ('0.09817706666417914',), 1372282799: ('0.09817706666417914',), 24992907: ()} output_args : {24992907: [{'plastique': 24992910, 'cartonnette': 24992911, 'kraft': 24992912, 'papier': 24992913, 'Teint_Dans_La_Masse': 24992914, 'environnement': 24992915, 'flou': 24992916, 'mal_croppe': 24992917, 'Carton_brun': 24992918, 'autre_refus': 24992919, 'Carton_gris': 24992920, 'metal': 24992921}]} args : 24992907 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 :25, first value : ('0.09817706666417914',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24992907) 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 (1372282969,1372282964,1372282960,1372282957,1372282954,1372282950,1372282937,1372282933,1372282929,1372282924,1372282913,1372282905,1372282883,1372282880,1372282875,1372282872,1372282869,1372282866,1372282833,1372282830,1372282822,1372282810,1372282808,1372282799) Found this number of photos: 24 ##### Call download_photos : nb_thread : 5 begin to download photo : 1372282799 begin to download photo : 1372282833 begin to download photo : 1372282880 begin to download photo : 1372282929 begin to download photo : 1372282957 download finish for photo 1372282799 begin to download photo : 1372282808 download finish for photo 1372282880 begin to download photo : 1372282883 download finish for photo 1372282957 begin to download photo : 1372282960 download finish for photo 1372282833 begin to download photo : 1372282866 download finish for photo 1372282929 begin to download photo : 1372282933 download finish for photo 1372282808 begin to download photo : 1372282810 download finish for photo 1372282883 begin to download photo : 1372282905 download finish for photo 1372282866 begin to download photo : 1372282869 download finish for photo 1372282960 begin to download photo : 1372282964 download finish for photo 1372282933 begin to download photo : 1372282937 download finish for photo 1372282869 begin to download photo : 1372282872 download finish for photo 1372282964 begin to download photo : 1372282969 download finish for photo 1372282810 begin to download photo : 1372282822 download finish for photo 1372282905 begin to download photo : 1372282913 download finish for photo 1372282937 begin to download photo : 1372282950 download finish for photo 1372282872 begin to download photo : 1372282875 download finish for photo 1372282822 begin to download photo : 1372282830 download finish for photo 1372282969 download finish for photo 1372282913 begin to download photo : 1372282924 download finish for photo 1372282950 begin to download photo : 1372282954 download finish for photo 1372282875 download finish for photo 1372282830 download finish for photo 1372282954 download finish for photo 1372282924 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 24 ; length of list_pids : 24 ; length of list_args : 24 results_Auto_P24992907_16-07-2025_08_26_31.pdf 24992910 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=24992910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372282942: '1752647046_2492353_1372282272_0fe916a4d79ba12f07f8de6cae81dcf8_rle_crop_3884189824_0.png'} change filename to text .imagette249929101752647191/ imagette249929101752647191/1752647046_2492353_1372282272_0fe916a4d79ba12f07f8de6cae81dcf8_rle_crop_3884189824_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/f7306c89dafbf2334ed8ecfd97c17303_6911609.png imagette249929101752647191 24992911 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=24992911 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372282906: '1752647007_3542236_1372282714_e7095a8e0bbf37e8eb768dfefdc73469_rle_crop_3884189621_0.png', 1372282907: '1752647007_3542236_1372282694_a425201817a317df733eb0042a8e01e9_rle_crop_3884189630_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/36355dfa3d3456f9ac766cddcb610053_44740876.png change filename to text .imagette249929111752647191/ imagette249929111752647191/1752647007_3542236_1372282714_e7095a8e0bbf37e8eb768dfefdc73469_rle_crop_3884189621_0.png.png imagette249929111752647191/1752647007_3542236_1372282694_a425201817a317df733eb0042a8e01e9_rle_crop_3884189630_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/bddf6fe7b53c1f4bfebf5a2553116a72_2281365.png imagette249929111752647191 24992912 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=24992912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372282850: '1752646927_2487540_1372282172_c428cf434bdb68c3e11f0bb30201126f_rle_crop_3884188535_0.png', 1372282851: '1752646927_2487540_1372282165_c06761fe92eac797be41c98ac32cf27a_rle_crop_3884188546_0.png', 1372282916: '1752647007_3542236_1372282714_e7095a8e0bbf37e8eb768dfefdc73469_rle_crop_3884189618_0.png', 1372282917: '1752647007_3542236_1372282694_a425201817a317df733eb0042a8e01e9_rle_crop_3884189631_0.png', 1372282918: '1752647007_3542236_1372282694_a425201817a317df733eb0042a8e01e9_rle_crop_3884189628_0.png', 1372282919: '1752647007_3542236_1372282656_9e1c9e8ab289908acbc2e29fd71da740_rle_crop_3884189648_0.png', 1372282921: '1752647007_3542236_1372282656_9e1c9e8ab289908acbc2e29fd71da740_rle_crop_3884189645_0.png', 1372282922: '1752647007_3542236_1372282618_5dc4ec736197b9b101b5aac9aa4a3490_rle_crop_3884189657_0.png', 1372282923: '1752647007_3542236_1372282618_5dc4ec736197b9b101b5aac9aa4a3490_rle_crop_3884189659_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/be2883ccbc991121b6c99881b12c9dcd_99104594.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/1379c2775b883a43c063efb251428a87_21591510.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/5fcaa2ba851ff3d39bcafd6124bd83bb_73194151.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/b59e9625d4c8211ba4a41c267971ad02_24071152.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/2f6f2a612d00aa7a161d63adfa2652de_22510016.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/d90af0db1f46c4eec5644978bac627a4_60723445.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/425d178dde324e011d56ea187f31dc23_15669605.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/2c2778caba0c79df46e7740020893f5c_3265613.png change filename to text .imagette249929121752647191/ imagette249929121752647191/1752646927_2487540_1372282165_c06761fe92eac797be41c98ac32cf27a_rle_crop_3884188546_0.png.png imagette249929121752647191/1752647007_3542236_1372282656_9e1c9e8ab289908acbc2e29fd71da740_rle_crop_3884189648_0.png.png imagette249929121752647191/1752647007_3542236_1372282694_a425201817a317df733eb0042a8e01e9_rle_crop_3884189628_0.png.png imagette249929121752647191/1752647007_3542236_1372282618_5dc4ec736197b9b101b5aac9aa4a3490_rle_crop_3884189659_0.png.png imagette249929121752647191/1752647007_3542236_1372282618_5dc4ec736197b9b101b5aac9aa4a3490_rle_crop_3884189657_0.png.png imagette249929121752647191/1752647007_3542236_1372282714_e7095a8e0bbf37e8eb768dfefdc73469_rle_crop_3884189618_0.png.png imagette249929121752647191/1752647007_3542236_1372282694_a425201817a317df733eb0042a8e01e9_rle_crop_3884189631_0.png.png imagette249929121752647191/1752646927_2487540_1372282172_c428cf434bdb68c3e11f0bb30201126f_rle_crop_3884188535_0.png.png imagette249929121752647191/1752647007_3542236_1372282656_9e1c9e8ab289908acbc2e29fd71da740_rle_crop_3884189645_0.png.png imagette249929161752647192/ imagette249929171752647192/ imagette249929191752647192/ imagette249929211752647192/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/eb9560f6fac5ab15c0291be5216a6d68_36528252.png imagette249929121752647191 24992916 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=24992916 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249929161752647192 24992917 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=24992917 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249929171752647192 24992919 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=24992919 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249929191752647192 24992921 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=24992921 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249929211752647192 24992914 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=24992914 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372282903: '1752647007_3542236_1372282734_de07b124df5b4d30be9ec5fe0e62d12d_rle_crop_3884189599_0.png', 1372282941: '1752647046_2492353_1372282233_a837f567ca9774bf084581918d64810f_rle_crop_3884189835_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/3545d52fed284bb9cb9406fe0c6efac5_67335187.png change filename to text .imagette249929141752647192/ imagette249929141752647192/1752647046_2492353_1372282233_a837f567ca9774bf084581918d64810f_rle_crop_3884189835_0.png.png imagette249929141752647192/1752647007_3542236_1372282734_de07b124df5b4d30be9ec5fe0e62d12d_rle_crop_3884189599_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/1b2b80b30daae935a6f84fa64b02524b_38439998.png imagette249929141752647192 24992918 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=24992918 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372282910: '1752647007_3542236_1372282714_e7095a8e0bbf37e8eb768dfefdc73469_rle_crop_3884189619_0.png', 1372282911: '1752647007_3542236_1372282694_a425201817a317df733eb0042a8e01e9_rle_crop_3884189634_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/705f5937c701b7743277328d4a2044cb_25242630.png change filename to text .imagette249929181752647192/ imagette249929181752647192/1752647007_3542236_1372282694_a425201817a317df733eb0042a8e01e9_rle_crop_3884189634_0.png.png imagette249929181752647192/1752647007_3542236_1372282714_e7095a8e0bbf37e8eb768dfefdc73469_rle_crop_3884189619_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/d7a77de10a89ee36ea7f38fce7c9ae3c_63724366.png imagette249929181752647192 24992920 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=24992920 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372282780: '1752646886_3537151_1372282072_648be1a57c6966ebe9afcc49e97a6f87_rle_crop_3884187650_0.png'} change filename to text .imagette249929201752647192/ imagette249929201752647192/1752646886_3537151_1372282072_648be1a57c6966ebe9afcc49e97a6f87_rle_crop_3884187650_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/45e618674e94725e11e6e1c51732b26d_1017434.png imagette249929201752647192 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24992907 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24992931,24992933,24992934,24992935,24992936,24992938,24992939,24992940,24992941,24992943,24992944,24992945?tags=plastique,cartonnette,kraft,papier,Teint_Dans_La_Masse,environnement,flou,mal_croppe,Carton_brun,autre_refus,Carton_gris,metal your option no_mail is active, we will not send the real mail to your client args[1372282969] : ('0.09817706666417914',) no score found for photo 1372282969 We are sending mail with results at report@fotonower.com args[1372282964] : ('0.09817706666417914',) no score found for photo 1372282964 We are sending mail with results at report@fotonower.com args[1372282960] : ('0.09817706666417914',) no score found for photo 1372282960 We are sending mail with results at report@fotonower.com args[1372282957] : ('0.09817706666417914',) no score found for photo 1372282957 We are sending mail with results at report@fotonower.com args[1372282954] : ('0.09817706666417914',) no score found for photo 1372282954 We are sending mail with results at report@fotonower.com args[1372282950] : ('0.09817706666417914',) no score found for photo 1372282950 We are sending mail with results at report@fotonower.com args[1372282937] : ('0.09817706666417914',) no score found for photo 1372282937 We are sending mail with results at report@fotonower.com args[1372282933] : ('0.09817706666417914',) no score found for photo 1372282933 We are sending mail with results at report@fotonower.com args[1372282929] : ('0.09817706666417914',) no score found for photo 1372282929 We are sending mail with results at report@fotonower.com args[1372282924] : ('0.09817706666417914',) no score found for photo 1372282924 We are sending mail with results at report@fotonower.com args[1372282913] : ('0.09817706666417914',) no score found for photo 1372282913 We are sending mail with results at report@fotonower.com args[1372282905] : ('0.09817706666417914',) no score found for photo 1372282905 We are sending mail with results at report@fotonower.com args[1372282883] : ('0.09817706666417914',) no score found for photo 1372282883 We are sending mail with results at report@fotonower.com args[1372282880] : ('0.09817706666417914',) no score found for photo 1372282880 We are sending mail with results at report@fotonower.com args[1372282875] : ('0.09817706666417914',) no score found for photo 1372282875 We are sending mail with results at report@fotonower.com args[1372282872] : ('0.09817706666417914',) no score found for photo 1372282872 We are sending mail with results at report@fotonower.com args[1372282869] : ('0.09817706666417914',) no score found for photo 1372282869 We are sending mail with results at report@fotonower.com args[1372282866] : ('0.09817706666417914',) no score found for photo 1372282866 We are sending mail with results at report@fotonower.com args[1372282833] : ('0.09817706666417914',) no score found for photo 1372282833 We are sending mail with results at report@fotonower.com args[1372282830] : ('0.09817706666417914',) no score found for photo 1372282830 We are sending mail with results at report@fotonower.com args[1372282822] : ('0.09817706666417914',) no score found for photo 1372282822 We are sending mail with results at report@fotonower.com args[1372282810] : ('0.09817706666417914',) no score found for photo 1372282810 We are sending mail with results at report@fotonower.com args[1372282808] : ('0.09817706666417914',) no score found for photo 1372282808 We are sending mail with results at report@fotonower.com args[1372282799] : ('0.09817706666417914',) no score found for photo 1372282799 We are sending mail with results at report@fotonower.com refus_total : 0.09817706666417914 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=24992907 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_P24992907_16-07-2025_08_26_31.pdf results_Auto_P24992907_16-07-2025_08_26_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24992907_16-07-2025_08_26_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24992907','results_Auto_P24992907_16-07-2025_08_26_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24992907_16-07-2025_08_26_31.pdf','pdf','','0.29','0.09817706666417914') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24992907]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799] map_info['map_portfolio_photo'] : {24992907: [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799, 1372282734, 1372282722, 1372282714, 1372282694, 1372282656, 1372282618, 1372282426, 1372282389, 1372282350, 1372282308, 1372282272, 1372282233, 1372282172, 1372282165, 1372282159, 1372282155, 1372282148, 1372282144, 1372282091, 1372282081, 1372282078, 1372282075, 1372282072, 1372282062, 1372281948, 1372281935, 1372281925, 1372281919, 1372281915, 1372281911, 1372281893, 1372281889, 1372281880, 1372281864, 1372281828, 1372281824]} final : False mtd_id 4302 list_pids : [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799] 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, '3299153') ('4302', '24992907', '1372282969', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282964', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282960', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282957', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282954', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282950', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282937', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282933', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282929', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282924', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282913', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282905', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282883', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282880', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282875', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282872', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282869', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282866', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282833', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282830', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282822', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282810', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282808', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282799', None, None, None, None, None, '3299153') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '24992907', '1372282969', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282964', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282960', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282957', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282954', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282950', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282937', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282933', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282929', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282924', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282913', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282905', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282883', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282880', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282875', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282872', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282869', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282866', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282833', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282830', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282822', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282810', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282808', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282799', None, None, None, None, None, '3299153')] time used for this insertion : 0.08167767524719238 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.31781268119812 time spend to save output : 0.08205866813659668 total time spend for step 4 : 3.399871349334717 step5:split_time_score Wed Jul 16 08:26:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24992907'] 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 : [('24992907',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24992907) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1372282957: {'path': 'temp/1752647190_2477219_1372282957_77fc69e99490ef93aacb662ecd5fe0a1.jpg', 'extension': 'jpg'}, 1372282960: {'path': 'temp/1752647190_2477219_1372282960_99f109321c61aca3cf5e5ed88ecbb667.jpg', 'extension': 'jpg'}, 1372282964: {'path': 'temp/1752647190_2477219_1372282964_85f9aaad1a24091ac6244581f1c1fcd8.jpg', 'extension': 'jpg'}, 1372282969: {'path': 'temp/1752647190_2477219_1372282969_769372324c90ed539793b37c52fbe192.jpg', 'extension': 'jpg'}, 1372282833: {'path': 'temp/1752647190_2477219_1372282833_1b03b50ab4e8f1f83dde5a7cf9657256.jpg', 'extension': 'jpg'}, 1372282866: {'path': 'temp/1752647190_2477219_1372282866_3e6c4becf5aafea84f1aa6f8589a1fc8.jpg', 'extension': 'jpg'}, 1372282869: {'path': 'temp/1752647190_2477219_1372282869_39b3aa824dac2cdfe1a5b6c17418fa33.jpg', 'extension': 'jpg'}, 1372282872: {'path': 'temp/1752647190_2477219_1372282872_f3faab9195c26744e156dc6fd68d2679.jpg', 'extension': 'jpg'}, 1372282875: {'path': 'temp/1752647190_2477219_1372282875_a34e4025be550b18d1773b103826e043.jpg', 'extension': 'jpg'}, 1372282799: {'path': 'temp/1752647190_2477219_1372282799_8bbdfd7db5aedc0552fa5da9439a98e5.jpg', 'extension': 'jpg'}, 1372282808: {'path': 'temp/1752647190_2477219_1372282808_b65f0b2ab93f6eff4e4a9f6f92543914.jpg', 'extension': 'jpg'}, 1372282810: {'path': 'temp/1752647190_2477219_1372282810_9b526ace6a3831ad8260a037d126e2a8.jpg', 'extension': 'jpg'}, 1372282822: {'path': 'temp/1752647190_2477219_1372282822_9804ff80458e407d084adb833e0e0a0a.jpg', 'extension': 'jpg'}, 1372282830: {'path': 'temp/1752647190_2477219_1372282830_cb62899a77c0aad1f0c7c9c86a30aa73.jpg', 'extension': 'jpg'}, 1372282929: {'path': 'temp/1752647190_2477219_1372282929_004a69d8f9140696b06b0f903e030ddd.jpg', 'extension': 'jpg'}, 1372282933: {'path': 'temp/1752647190_2477219_1372282933_a2d408e4dcda18cf7e49ba9aa63f15d0.jpg', 'extension': 'jpg'}, 1372282937: {'path': 'temp/1752647190_2477219_1372282937_f9fdd28a21b4965d18f5a013eb2158d3.jpg', 'extension': 'jpg'}, 1372282950: {'path': 'temp/1752647190_2477219_1372282950_748ba337cc79d7fd305cee2280787f73.jpg', 'extension': 'jpg'}, 1372282954: {'path': 'temp/1752647190_2477219_1372282954_742be453c8dd553a7c043f3bbdd6be60.jpg', 'extension': 'jpg'}, 1372282880: {'path': 'temp/1752647190_2477219_1372282880_e6b4a72ca359a0afe501eb2e59c8d355.jpg', 'extension': 'jpg'}, 1372282883: {'path': 'temp/1752647190_2477219_1372282883_1d09e69d5236c113a52474d7636e97d6.jpg', 'extension': 'jpg'}, 1372282905: {'path': 'temp/1752647190_2477219_1372282905_d234c7c0ec223a20acc0b8463d0f1ab5.jpg', 'extension': 'jpg'}, 1372282913: {'path': 'temp/1752647190_2477219_1372282913_d36ef0f6365ef747b48b0ef880d3e47f.jpg', 'extension': 'jpg'}, 1372282924: {'path': 'temp/1752647190_2477219_1372282924_6fd0b0a1299229aab096d8a84f78b0aa.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 = 24992907; (('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 = 24992907 group by h (('08', 60),) 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=24992907 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 (24992907) 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 (24992907) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16072025 24992907 Nombre de photos uploadées : 60 / 23040 (0%) 16072025 24992907 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 16072025 24992907 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1372281893, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/2fa82e9916da019a8bc41d2b8a78f99c.jpg', 'username': None, 'uploaded_at': 1752646563, 'text': 'image_16072025_08_15_03_10147.jpg'}, {'photo_id': 1372281889, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/77819331ab2cd4ed6e0cebdd29d22a6b.jpg', 'username': None, 'uploaded_at': 1752646563, 'text': 'image_16072025_08_15_13_10137.jpg'}, {'photo_id': 1372281880, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/393d1ffe9f6a10d1fb4bb53156868573.jpg', 'username': None, 'uploaded_at': 1752646563, 'text': 'image_16072025_08_15_24_10138.jpg'}, {'photo_id': 1372281864, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/16/81c5a0b597060ef36a2a9045a2e17e37.jpg', 'username': None, 'uploaded_at': 1752646563, 'text': 'image_16072025_08_15_34_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025260448455810547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24992907, '2025-07-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1982449,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025516033172607422 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= 1982449 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24978260, 'dashboard_result_id': 12624230, '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_P24978260_16-07-2025_00_16_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24978262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24978263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24978264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24978265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24978266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24978267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24978268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24978269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24978270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24978271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24978272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24978273, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24978702, 'dashboard_result_id': 12624231, '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_P24978702_16-07-2025_00_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24978706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24978707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24978708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24978709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24978710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24978711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24978712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24978713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24978714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24978715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24978716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24978717, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24979113, 'dashboard_result_id': 12624232, '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_P24979113_16-07-2025_00_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24979142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24979143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24979144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24979145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24979146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24979147, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24979148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24979149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24979150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24979151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24979152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24979153, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24979528, 'dashboard_result_id': 12624233, '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_P24979528_16-07-2025_01_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24979544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24979545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24979546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24979547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24979548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24979549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24979550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24979551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24979552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24979553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24979554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24979555, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24979907, 'dashboard_result_id': 12624234, '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_P24979907_16-07-2025_01_16_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24979935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24979936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24979937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24979938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24979939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24979940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24979941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24979942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24979943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24979944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24979945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24979946, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24980465, 'dashboard_result_id': 12624236, '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_P24980465_16-07-2025_01_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24980493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24980494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24980495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24980496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24980497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24980498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24980499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24980500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24980501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24980502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24980503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24980504, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24980826, 'dashboard_result_id': 12624237, '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_P24980826_16-07-2025_01_46_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24980853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24980854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24980855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24980856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24980857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24980858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24980859, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24980860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24980861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24980862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24980863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24980864, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24981238, 'dashboard_result_id': 12624238, '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_P24981238_16-07-2025_02_00_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24981264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24981265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24981266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24981267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24981268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24981269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24981270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24981271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24981272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24981273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24981274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24981275, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24981703, 'dashboard_result_id': 12624239, '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_P24981703_16-07-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24981742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24981743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24981744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24981746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24981747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24981748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24981750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24981751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24981752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24981754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24981755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24981756, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24982290, 'dashboard_result_id': 12624240, '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_P24982290_16-07-2025_02_30_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24982292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24982293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24982294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24982295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24982296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24982297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24982298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24982299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24982300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24982301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24982302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24982303, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24982628, 'dashboard_result_id': 12624241, '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_P24982628_16-07-2025_02_46_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24982629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24982630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24982631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24982632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24982633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24982634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24982635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24982636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24982637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24982638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24982639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24982640, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24983017, 'dashboard_result_id': 12624242, '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_P24983017_16-07-2025_03_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24983043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24983044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24983045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24983046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24983047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24983048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24983049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24983050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24983051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24983052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24983053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24983054, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24983379, 'dashboard_result_id': 12624243, '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_P24983379_16-07-2025_03_16_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24983382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24983383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24983384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24983385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24983386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24983387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24983388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24983389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24983390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24983391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24983392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24983393, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24983872, 'dashboard_result_id': 12624244, '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_P24983872_16-07-2025_03_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24983887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24983888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24983889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24983890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24983891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24983892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24983893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24983894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24983895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24983896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24983897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24983898, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24984256, 'dashboard_result_id': 12624245, '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_P24984256_16-07-2025_03_46_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24984284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24984285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24984286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24984287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24984288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24984289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24984290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24984291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24984292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24984293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24984294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24984295, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24984628, 'dashboard_result_id': 12624246, '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_P24984628_16-07-2025_04_00_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24984655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24984656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24984657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24984658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24984659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24984660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24984661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24984662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24984663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24984664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24984665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24984666, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24985000, 'dashboard_result_id': 12624247, '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_P24985000_16-07-2025_04_17_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24985037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24985038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24985039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24985040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24985041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24985042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24985043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24985044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24985045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24985046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24985047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24985048, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24985506, 'dashboard_result_id': 12624248, '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_P24985506_16-07-2025_04_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24985523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24985524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24985525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24985527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24985528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24985529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24985530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24985531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24985532, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24985892, 'dashboard_result_id': 12624249, '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_P24985892_16-07-2025_04_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24985921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24985922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24985923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24985924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24985925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24985926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24985927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24985928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24985929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24985930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24985931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24985932, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24991112, 'dashboard_result_id': 12624250, '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_P24991112_16-07-2025_07_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24991159, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24991160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24991161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24991162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24991163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24991164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24991165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24991166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24991167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24991168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24991169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24991170, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24991716, 'dashboard_result_id': 12624251, '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_P24991716_16-07-2025_08_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24991730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24991731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24991732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24991733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24991734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24991735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24991736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24991737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24991738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24991739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24991740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24991741, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24992323, 'dashboard_result_id': 12624253, '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_P24992323_16-07-2025_08_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24992326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24992327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24992328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24992329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24992330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24992331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24992332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24992333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24992334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24992335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24992336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24992337, 'pht': 3726}}"}, {'dashboat_entry_day': 1982449, 'dashboard_run_id': 1990863, 'mtr_portfolio_id': 24992907, 'dashboard_result_id': 12624254, '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_P24992907_16-07-2025_08_23_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24992910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24992911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24992912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24992913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24992914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24992915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24992916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24992917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24992918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24992919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24992920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24992921, '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 = 24978260 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': 3298616, 'mtr_portfolio_id': 24978260, 'created_at': datetime.datetime(2025, 7, 16, 6, 38, 27), 'result': '0.12032154497281679', 'result_long': None, 'result_double': None}] Qualite : 0.12032154497281679 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24978260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24978260_16-07-2025_06_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24978260 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_P24978260_16-07-2025_06_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24978262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24978263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24978264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24978265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24978266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24978267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24978268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24978269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24978270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24978271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24978272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24978273, 'pht': 3726}}" where mtr_portfolio_id = 24978260 and dashboard_run_id = 1990863 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`=24978260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624230, 0.12032154497281679, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24978260_16-07-2025_06_38_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24978262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24978263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24978264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24978265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24978266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24978267, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24978268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24978269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24978270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24978271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24978272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24978273, '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 = 24978702 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': 3298617, 'mtr_portfolio_id': 24978702, 'created_at': datetime.datetime(2025, 7, 16, 6, 39, 28), 'result': '0.055762127661804384', 'result_long': None, 'result_double': None}] Qualite : 0.055762127661804384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24978702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24978702_16-07-2025_06_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24978702 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_P24978702_16-07-2025_06_39_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24978706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24978707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24978708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24978709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24978710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24978711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24978712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24978713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24978714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24978715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24978716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24978717, 'pht': 3726}}" where mtr_portfolio_id = 24978702 and dashboard_run_id = 1990863 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`=24978702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624231, 0.055762127661804384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24978702_16-07-2025_06_39_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24978706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24978707, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24978708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24978709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24978710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24978711, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24978712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24978713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24978714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24978715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24978716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24978717, '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 = 24979113 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': 3298618, 'mtr_portfolio_id': 24979113, 'created_at': datetime.datetime(2025, 7, 16, 6, 40), 'result': '0.04079785244091167', 'result_long': None, 'result_double': None}] Qualite : 0.04079785244091167 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24979113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24979113_16-07-2025_06_40_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24979113 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_P24979113_16-07-2025_06_40_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24979142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24979143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24979144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24979145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24979146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24979147, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24979148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24979149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24979150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24979151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24979152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24979153, 'pht': 3726}}" where mtr_portfolio_id = 24979113 and dashboard_run_id = 1990863 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`=24979113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624232, 0.04079785244091167, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24979113_16-07-2025_06_40_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24979142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24979143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24979144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24979145, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24979146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24979147, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24979148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24979149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24979150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24979151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24979152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24979153, '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 = 24979528 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': 3298619, 'mtr_portfolio_id': 24979528, 'created_at': datetime.datetime(2025, 7, 16, 6, 40, 29), 'result': '0.036633760740478624', 'result_long': None, 'result_double': None}] Qualite : 0.036633760740478624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24979528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24979528_16-07-2025_06_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24979528 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_P24979528_16-07-2025_06_40_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24979544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24979545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24979546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24979547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24979548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24979549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24979550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24979551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24979552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24979553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24979554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24979555, 'pht': 3726}}" where mtr_portfolio_id = 24979528 and dashboard_run_id = 1990863 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`=24979528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624233, 0.036633760740478624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24979528_16-07-2025_06_40_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24979544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24979545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24979546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24979547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24979548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24979549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24979550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24979551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24979552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24979553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24979554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24979555, '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 = 24979907 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': 3298620, 'mtr_portfolio_id': 24979907, 'created_at': datetime.datetime(2025, 7, 16, 6, 41, 28), 'result': '0.09690159387061113', 'result_long': None, 'result_double': None}] Qualite : 0.09690159387061113 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24979907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24979907_16-07-2025_06_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24979907 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_P24979907_16-07-2025_06_41_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24979935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24979936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24979937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24979938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24979939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24979940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24979941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24979942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24979943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24979944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24979945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24979946, 'pht': 3726}}" where mtr_portfolio_id = 24979907 and dashboard_run_id = 1990863 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`=24979907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624234, 0.09690159387061113, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24979907_16-07-2025_06_41_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24979935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24979936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24979937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24979938, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24979939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24979940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24979941, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24979942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24979943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24979944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24979945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24979946, '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 = 24980465 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': 3298621, 'mtr_portfolio_id': 24980465, 'created_at': datetime.datetime(2025, 7, 16, 6, 41, 59), 'result': '0.05437480000459199', 'result_long': None, 'result_double': None}] Qualite : 0.05437480000459199 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24980465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24980465_16-07-2025_06_42_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24980465 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_P24980465_16-07-2025_06_42_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24980493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24980494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24980495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24980496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24980497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24980498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24980499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24980500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24980501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24980502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24980503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24980504, 'pht': 3726}}" where mtr_portfolio_id = 24980465 and dashboard_run_id = 1990863 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`=24980465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624236, 0.05437480000459199, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24980465_16-07-2025_06_42_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24980493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24980494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24980495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24980496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24980497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24980498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24980499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24980500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24980501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24980502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24980503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24980504, '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 = 24980826 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': 3298622, 'mtr_portfolio_id': 24980826, 'created_at': datetime.datetime(2025, 7, 16, 6, 42, 29), 'result': '0.028448356263457424', 'result_long': None, 'result_double': None}] Qualite : 0.028448356263457424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24980826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24980826_16-07-2025_06_42_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24980826 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_P24980826_16-07-2025_06_42_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24980853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24980854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24980855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24980856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24980857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24980858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24980859, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24980860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24980861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24980862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24980863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24980864, 'pht': 3726}}" where mtr_portfolio_id = 24980826 and dashboard_run_id = 1990863 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`=24980826 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624237, 0.028448356263457424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24980826_16-07-2025_06_42_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24980853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24980854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24980855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24980856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24980857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24980858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24980859, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24980860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24980861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24980862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24980863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24980864, '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 = 24981238 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': 3298623, 'mtr_portfolio_id': 24981238, 'created_at': datetime.datetime(2025, 7, 16, 6, 43, 28), 'result': '0.05130574772690346', 'result_long': None, 'result_double': None}] Qualite : 0.05130574772690346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24981238 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24981238_16-07-2025_06_43_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24981238 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_P24981238_16-07-2025_06_43_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24981264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24981265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24981266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24981267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24981268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24981269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24981270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24981271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24981272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24981273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24981274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24981275, 'pht': 3726}}" where mtr_portfolio_id = 24981238 and dashboard_run_id = 1990863 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`=24981238 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624238, 0.05130574772690346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24981238_16-07-2025_06_43_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24981264, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24981265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24981266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24981267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24981268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24981269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24981270, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24981271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24981272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24981273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24981274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24981275, '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 = 24981703 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': 3298624, 'mtr_portfolio_id': 24981703, 'created_at': datetime.datetime(2025, 7, 16, 6, 43, 58), 'result': '0.03654823577807443', 'result_long': None, 'result_double': None}] Qualite : 0.03654823577807443 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24981703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24981703_16-07-2025_06_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24981703 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_P24981703_16-07-2025_06_44_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24981742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24981743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24981744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24981746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24981747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24981748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24981750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24981751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24981752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24981754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24981755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24981756, 'pht': 3726}}" where mtr_portfolio_id = 24981703 and dashboard_run_id = 1990863 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`=24981703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624239, 0.03654823577807443, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24981703_16-07-2025_06_44_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24981742, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24981743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24981744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24981746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24981747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24981748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24981750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24981751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24981752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24981754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24981755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24981756, '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 = 24982290 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': 3298625, 'mtr_portfolio_id': 24982290, 'created_at': datetime.datetime(2025, 7, 16, 6, 44, 30), 'result': '0.023069365549998076', 'result_long': None, 'result_double': None}] Qualite : 0.023069365549998076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24982290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24982290_16-07-2025_06_44_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24982290 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_P24982290_16-07-2025_06_44_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24982292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24982293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24982294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24982295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24982296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24982297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24982298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24982299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24982300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24982301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24982302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24982303, 'pht': 3726}}" where mtr_portfolio_id = 24982290 and dashboard_run_id = 1990863 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`=24982290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624240, 0.023069365549998076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24982290_16-07-2025_06_44_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24982292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24982293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24982294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24982295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24982296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24982297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24982298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24982299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24982300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24982301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24982302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24982303, '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 = 24982628 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': 3298626, 'mtr_portfolio_id': 24982628, 'created_at': datetime.datetime(2025, 7, 16, 6, 45, 29), 'result': '0.04815645976394977', 'result_long': None, 'result_double': None}] Qualite : 0.04815645976394977 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24982628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24982628_16-07-2025_06_45_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24982628 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_P24982628_16-07-2025_06_45_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24982629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24982630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24982631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24982632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24982633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24982634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24982635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24982636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24982637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24982638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24982639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24982640, 'pht': 3726}}" where mtr_portfolio_id = 24982628 and dashboard_run_id = 1990863 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`=24982628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624241, 0.04815645976394977, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24982628_16-07-2025_06_45_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24982629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24982630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24982631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24982632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24982633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24982634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24982635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24982636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24982637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24982638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24982639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24982640, '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 = 24983017 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': 3298627, 'mtr_portfolio_id': 24983017, 'created_at': datetime.datetime(2025, 7, 16, 6, 45, 58), 'result': '0.03759808761696951', 'result_long': None, 'result_double': None}] Qualite : 0.03759808761696951 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24983017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24983017_16-07-2025_06_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24983017 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_P24983017_16-07-2025_06_46_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24983043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24983044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24983045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24983046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24983047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24983048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24983049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24983050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24983051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24983052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24983053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24983054, 'pht': 3726}}" where mtr_portfolio_id = 24983017 and dashboard_run_id = 1990863 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`=24983017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624242, 0.03759808761696951, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24983017_16-07-2025_06_46_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24983043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24983044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24983045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24983046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24983047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24983048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24983049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24983050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24983051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24983052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24983053, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24983054, '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 = 24983379 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': 3298628, 'mtr_portfolio_id': 24983379, 'created_at': datetime.datetime(2025, 7, 16, 6, 46, 27), 'result': '0.038829986111432235', 'result_long': None, 'result_double': None}] Qualite : 0.038829986111432235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24983379 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24983379_16-07-2025_06_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24983379 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_P24983379_16-07-2025_06_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24983382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24983383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24983384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24983385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24983386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24983387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24983388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24983389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24983390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24983391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24983392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24983393, 'pht': 3726}}" where mtr_portfolio_id = 24983379 and dashboard_run_id = 1990863 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`=24983379 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624243, 0.038829986111432235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24983379_16-07-2025_06_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24983382, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24983383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24983384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24983385, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24983386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24983387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24983388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24983389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24983390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24983391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24983392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24983393, '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 = 24983872 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': 3298629, 'mtr_portfolio_id': 24983872, 'created_at': datetime.datetime(2025, 7, 16, 6, 47, 27), 'result': '0.041330297656245685', 'result_long': None, 'result_double': None}] Qualite : 0.041330297656245685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24983872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24983872_16-07-2025_06_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24983872 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_P24983872_16-07-2025_06_47_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24983887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24983888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24983889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24983890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24983891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24983892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24983893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24983894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24983895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24983896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24983897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24983898, 'pht': 3726}}" where mtr_portfolio_id = 24983872 and dashboard_run_id = 1990863 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`=24983872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624244, 0.041330297656245685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24983872_16-07-2025_06_47_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24983887, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24983888, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24983889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24983890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24983891, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24983892, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24983893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24983894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24983895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24983896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24983897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24983898, '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 = 24984256 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': 3298630, 'mtr_portfolio_id': 24984256, 'created_at': datetime.datetime(2025, 7, 16, 6, 47, 56), 'result': '0.04847025135559815', 'result_long': None, 'result_double': None}] Qualite : 0.04847025135559815 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24984256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24984256_16-07-2025_06_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24984256 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_P24984256_16-07-2025_06_48_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24984284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24984285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24984286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24984287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24984288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24984289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24984290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24984291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24984292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24984293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24984294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24984295, 'pht': 3726}}" where mtr_portfolio_id = 24984256 and dashboard_run_id = 1990863 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`=24984256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624245, 0.04847025135559815, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24984256_16-07-2025_06_48_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24984284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24984285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24984286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24984287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24984288, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24984289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24984290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24984291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24984292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24984293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24984294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24984295, '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 = 24984628 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': 3298631, 'mtr_portfolio_id': 24984628, 'created_at': datetime.datetime(2025, 7, 16, 6, 48, 30), 'result': '0.0513257241561087', 'result_long': None, 'result_double': None}] Qualite : 0.0513257241561087 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24984628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24984628_16-07-2025_06_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24984628 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_P24984628_16-07-2025_06_48_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24984655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24984656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24984657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24984658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24984659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24984660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24984661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24984662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24984663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24984664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24984665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24984666, 'pht': 3726}}" where mtr_portfolio_id = 24984628 and dashboard_run_id = 1990863 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`=24984628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624246, 0.0513257241561087, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24984628_16-07-2025_06_48_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24984655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24984656, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24984657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24984658, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24984659, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24984660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24984661, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24984662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24984663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24984664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24984665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24984666, '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 = 24985000 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': 3298632, 'mtr_portfolio_id': 24985000, 'created_at': datetime.datetime(2025, 7, 16, 6, 49, 30), 'result': '0.04192442257399446', 'result_long': None, 'result_double': None}] Qualite : 0.04192442257399446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24985000 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24985000_16-07-2025_06_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24985000 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_P24985000_16-07-2025_06_49_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24985037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24985038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24985039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24985040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24985041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24985042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24985043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24985044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24985045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24985046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24985047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24985048, 'pht': 3726}}" where mtr_portfolio_id = 24985000 and dashboard_run_id = 1990863 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`=24985000 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624247, 0.04192442257399446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24985000_16-07-2025_06_49_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24985037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24985038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24985039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24985040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24985041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24985042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24985043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24985044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24985045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24985046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24985047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24985048, '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 = 24985506 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': 3298633, 'mtr_portfolio_id': 24985506, 'created_at': datetime.datetime(2025, 7, 16, 6, 49, 59), 'result': '0.03230466603927165', 'result_long': None, 'result_double': None}] Qualite : 0.03230466603927165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24985506 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24985506_16-07-2025_06_50_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24985506 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_P24985506_16-07-2025_06_50_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24985523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24985524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24985525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24985527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24985528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24985529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24985530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24985531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24985532, 'pht': 3726}}" where mtr_portfolio_id = 24985506 and dashboard_run_id = 1990863 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`=24985506 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624248, 0.03230466603927165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24985506_16-07-2025_06_50_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24985521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24985522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24985523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24985524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24985525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24985526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24985527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24985528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24985529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24985530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24985531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24985532, '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 = 24985892 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': 3298634, 'mtr_portfolio_id': 24985892, 'created_at': datetime.datetime(2025, 7, 16, 6, 50, 29), 'result': '0.06914066623192439', 'result_long': None, 'result_double': None}] Qualite : 0.06914066623192439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24985892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24985892_16-07-2025_06_50_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24985892 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_P24985892_16-07-2025_06_50_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24985921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24985922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24985923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24985924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24985925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24985926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24985927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24985928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24985929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24985930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24985931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24985932, 'pht': 3726}}" where mtr_portfolio_id = 24985892 and dashboard_run_id = 1990863 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`=24985892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624249, 0.06914066623192439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24985892_16-07-2025_06_50_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24985921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24985922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24985923, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24985924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24985925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24985926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24985927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24985928, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24985929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24985930, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24985931, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24985932, '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 = 24991112 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': 3298999, 'mtr_portfolio_id': 24991112, 'created_at': datetime.datetime(2025, 7, 16, 7, 46, 59), 'result': '0.040229499376188645', 'result_long': None, 'result_double': None}] Qualite : 0.040229499376188645 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24991112 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24991112_16-07-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24991112 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_P24991112_16-07-2025_07_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24991159, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24991160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24991161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24991162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24991163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24991164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24991165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24991166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24991167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24991168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24991169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24991170, 'pht': 3726}}" where mtr_portfolio_id = 24991112 and dashboard_run_id = 1990863 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`=24991112 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624250, 0.040229499376188645, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24991112_16-07-2025_07_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24991159, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24991160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24991161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24991162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24991163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24991164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24991165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24991166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24991167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24991168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24991169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24991170, '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 = 24991716 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': 3299047, 'mtr_portfolio_id': 24991716, 'created_at': datetime.datetime(2025, 7, 16, 8, 2, 59), 'result': '0.04842220647253989', 'result_long': None, 'result_double': None}] Qualite : 0.04842220647253989 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24991716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24991716_16-07-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24991716 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_P24991716_16-07-2025_08_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24991730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24991731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24991732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24991733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24991734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24991735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24991736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24991737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24991738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24991739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24991740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24991741, 'pht': 3726}}" where mtr_portfolio_id = 24991716 and dashboard_run_id = 1990863 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`=24991716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624251, 0.04842220647253989, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24991716_16-07-2025_08_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24991730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24991731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24991732, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24991733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24991734, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24991735, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24991736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24991737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24991738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24991739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24991740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24991741, '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 = 24992323 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': 3299111, 'mtr_portfolio_id': 24992323, 'created_at': datetime.datetime(2025, 7, 16, 8, 16, 58), 'result': '0.04160586902852723', 'result_long': None, 'result_double': None}] Qualite : 0.04160586902852723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24992323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24992323_16-07-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24992323 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_P24992323_16-07-2025_08_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24992326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24992327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24992328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24992329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24992330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24992331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24992332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24992333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24992334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24992335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24992336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24992337, 'pht': 3726}}" where mtr_portfolio_id = 24992323 and dashboard_run_id = 1990863 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`=24992323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624253, 0.04160586902852723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24992323_16-07-2025_08_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24992326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24992327, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24992328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24992329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24992330, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24992331, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24992332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24992333, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24992334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24992335, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24992336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24992337, '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 = 24992907 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': 3299153, 'mtr_portfolio_id': 24992907, 'created_at': datetime.datetime(2025, 7, 16, 8, 26, 30), 'result': '0.09817706666417914', 'result_long': None, 'result_double': None}] Qualite : 0.09817706666417914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24992907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24992907_16-07-2025_08_26_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24992907 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_P24992907_16-07-2025_08_26_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24992910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24992911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24992912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24992913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24992914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24992915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24992916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24992917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24992918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24992919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24992920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24992921, 'pht': 3726}}" where mtr_portfolio_id = 24992907 and dashboard_run_id = 1990863 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`=24992907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12624254, 0.09817706666417914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24992907_16-07-2025_08_26_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24992910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24992911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24992912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24992913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24992914, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24992915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24992916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24992917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24992918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24992919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24992920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24992921, '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 (24978260,24978702,24979113,24979528,24979907,24980465,24980826,24981238,24981703,24982290,24982628,24983017,24983379,24983872,24984256,24984628,24985000,24985506,24985892,24991112,24991716,24992323,24992907) result : ((1372243338,), (1372243343,), (1372243358,), (1372243396,), (1372243435,), (1372243501,), (1372243507,), (1372243511,), (1372243515,), (1372243520,), (1372243523,), (1372243549,), (1372243559,), (1372243561,), (1372243563,), (1372243567,), (1372243570,), (1372243583,), (1372243588,), (1372243592,), (1372243596,), (1372243601,), (1372243604,), (1372243797,), (1372243837,), (1372243873,), (1372243917,), (1372243958,), (1372244004,), (1372244175,), (1372244181,), (1372244191,), (1372244198,), (1372244201,), (1372244204,), (1372244259,), (1372244269,), (1372244290,), (1372244329,), (1372244366,), (1372244391,), (1372244530,), (1372244644,), (1372244649,), (1372244653,), (1372244656,), (1372244658,), (1372244660,), (1372244739,), (1372244797,), (1372244800,), (1372244804,), (1372244807,), (1372244808,), (1372244810,), (1372244827,), (1372244842,), (1372244849,), (1372244853,), (1372244855,), (1372244863,), (1372244880,), (1372244885,), (1372244890,), (1372244894,), (1372244897,), (1372244900,), (1372244909,), (1372244926,), (1372244935,), (1372244940,), (1372244944,), (1372244948,), (1372244968,), (1372244973,), (1372244978,), (1372244983,), (1372244992,), (1372244999,), (1372245010,), (1372245012,), (1372245027,), (1372245038,), (1372245056,), (1372245061,), (1372245080,), (1372245084,), (1372245088,), (1372245092,), (1372245097,), (1372245100,), (1372245113,), (1372245118,), (1372245132,), (1372245139,), (1372245143,), (1372245147,), (1372245169,), (1372245173,), (1372245177,), (1372245180,), (1372245184,), (1372245188,), (1372245203,), (1372245216,), (1372245232,), (1372245236,), (1372245239,), (1372245242,), (1372245251,), (1372245254,), (1372245258,), (1372245261,), (1372245263,), (1372245267,), (1372245288,), (1372245296,), (1372245303,), (1372245307,), (1372245313,), (1372245317,), (1372245349,), (1372245350,), (1372245351,), (1372245353,), (1372245357,), (1372245362,), (1372245382,), (1372245385,), (1372245388,), (1372245391,), (1372245395,), (1372245399,), (1372245414,), (1372245415,), (1372245419,), (1372245423,), (1372245428,), (1372245435,), (1372245457,), (1372245459,), (1372245461,), (1372245464,), (1372245467,), (1372245470,), (1372245500,), (1372245503,), (1372245507,), (1372245510,), (1372245514,), (1372245518,), (1372245538,), (1372245542,), (1372245546,), (1372245549,), (1372245552,), (1372245554,), (1372245575,), (1372245579,), (1372245585,), (1372245589,), (1372245592,), (1372245594,), (1372245610,), (1372245619,), (1372245627,), (1372245630,), (1372245633,), (1372245636,), (1372245662,), (1372245665,), (1372245671,), (1372245681,), (1372245682,), (1372245685,), (1372245710,), (1372245713,), (1372245716,), (1372245720,), (1372245722,), (1372245724,), (1372245755,), (1372245759,), (1372245764,), (1372245767,), (1372245770,), (1372245772,), (1372245801,), (1372245805,), (1372245810,), (1372245815,), (1372245817,), (1372245819,), (1372245835,), (1372245838,), (1372245842,), (1372245846,), (1372245849,), (1372245852,), (1372245866,), (1372245872,), (1372245878,), (1372245882,), (1372245888,), (1372245893,), (1372245908,), (1372245954,), (1372245963,), (1372245971,), (1372245973,), (1372245976,), (1372245978,), (1372245992,), (1372245996,), (1372246000,), (1372246004,), (1372246009,), (1372246031,), (1372246057,), (1372246062,), (1372246067,), (1372246072,), (1372246075,), (1372246080,), (1372246089,), (1372246091,), (1372246095,), (1372246100,), (1372246113,), (1372246120,), (1372246152,), (1372246157,), (1372246162,), (1372246167,), (1372246170,), (1372246173,), (1372246193,), (1372246197,), (1372246201,), (1372246204,), (1372246207,), (1372246209,), (1372246228,), (1372246236,), (1372246239,), (1372246242,), (1372246247,), (1372246252,), (1372246269,), (1372246271,), (1372246273,), (1372246277,), (1372246283,), (1372246289,), (1372246303,), (1372246305,), (1372246317,), (1372246319,), (1372246324,), (1372246331,), (1372246350,), (1372246352,), (1372246354,), (1372246356,), (1372246358,), (1372246360,), (1372246390,), (1372246396,), (1372246399,), (1372246402,), (1372246403,), (1372246404,), (1372246434,), (1372246439,), (1372246446,), (1372246452,), (1372246455,), (1372246457,), (1372246480,), (1372246484,), (1372246488,), (1372246494,), (1372246499,), (1372246503,), (1372246518,), (1372246574,), (1372246579,), (1372246585,), (1372246591,), (1372246595,), (1372246600,), (1372246610,), (1372246614,), (1372246618,), (1372246622,), (1372246625,), (1372246628,), (1372246653,), (1372246659,), (1372246662,), (1372246665,), (1372246669,), (1372246672,), (1372246683,), (1372246687,), (1372246691,), (1372246694,), (1372246698,), (1372246701,), (1372246715,), (1372246721,), (1372246724,), (1372246728,), (1372246733,), (1372246739,), (1372246753,), (1372246756,), (1372246760,), (1372246769,), (1372246773,), (1372246788,), (1372246817,), (1372246820,), (1372246824,), (1372246827,), (1372246852,), (1372246889,), (1372247114,), (1372247127,), (1372247131,), (1372247135,), (1372247139,), (1372247144,), (1372247157,), (1372247162,), (1372247165,), (1372247168,), (1372247171,), (1372247174,), (1372247180,), (1372247186,), (1372247196,), (1372247236,), (1372247278,), (1372247318,), (1372247522,), (1372247533,), (1372247537,), (1372247542,), (1372247547,), (1372247552,), (1372247785,), (1372247824,), (1372247862,), (1372247902,), (1372247946,), (1372247987,), (1372248096,), (1372248099,), (1372248104,), (1372248107,), (1372248111,), (1372248114,), (1372248174,), (1372248210,), (1372248237,), (1372248243,), (1372248248,), (1372248270,), (1372248341,), (1372248351,), (1372248354,), (1372248365,), (1372248370,), (1372248373,), (1372248431,), (1372248435,), (1372248440,), (1372248446,), (1372248473,), (1372248482,), (1372248526,), (1372248530,), (1372248533,), (1372248536,), (1372248540,), (1372248543,), (1372248564,), (1372248568,), (1372248598,), (1372248634,), (1372248652,), (1372248653,), (1372248664,), (1372248667,), (1372248670,), (1372248673,), (1372248676,), (1372248681,), (1372248701,), (1372248704,), (1372248706,), (1372248709,), (1372248711,), (1372248714,), (1372248734,), (1372248736,), (1372248738,), (1372248741,), (1372248743,), (1372248746,), (1372248765,), (1372248768,), (1372248772,), (1372248775,), (1372248779,), (1372248782,), (1372248793,), (1372248796,), (1372248800,), (1372248803,), (1372248806,), (1372248809,), (1372248828,), (1372248834,), (1372248838,), (1372248842,), (1372248844,), (1372248846,), (1372248864,), (1372248867,), (1372248868,), (1372248871,), (1372248874,), (1372248878,), (1372248901,), (1372248903,), (1372248906,), (1372248909,), (1372248912,), (1372248914,), (1372248927,), (1372248932,), (1372248937,), (1372248943,), (1372248947,), (1372248950,), (1372248963,), (1372248967,), (1372248971,), (1372248975,), (1372248977,), (1372248979,), (1372248996,), (1372249000,), (1372249003,), (1372249007,), (1372249009,), (1372249025,), (1372249055,), (1372249061,), (1372249065,), (1372249071,), (1372249074,), (1372249078,), (1372249092,), (1372249095,), (1372249097,), (1372249101,), (1372249103,), (1372249106,), (1372249136,), (1372249141,), (1372249145,), (1372249149,), (1372249152,), (1372249154,), (1372249165,), (1372249168,), (1372249172,), (1372249176,), (1372249180,), (1372249183,), (1372249194,), (1372249197,), (1372249200,), (1372249202,), (1372249205,), (1372249208,), (1372249225,), (1372249254,), (1372249257,), (1372249262,), (1372249264,), (1372249267,), (1372249269,), (1372249282,), (1372249285,), (1372249289,), (1372249293,), (1372249296,), (1372249300,), (1372249319,), (1372249322,), (1372249327,), (1372249332,), (1372249335,), (1372249338,), (1372249360,), (1372249362,), (1372249364,), (1372249368,), (1372249372,), (1372249375,), (1372249409,), (1372249413,), (1372249416,), (1372249420,), (1372249424,), (1372249428,), (1372249445,), (1372249448,), (1372249450,), (1372249455,), (1372249458,), (1372249461,), (1372249494,), (1372249500,), (1372249504,), (1372249508,), (1372249511,), (1372249514,), (1372249533,), (1372249565,), (1372249570,), (1372249575,), (1372249578,), (1372249581,), (1372249584,), (1372249602,), (1372249605,), (1372249608,), (1372249611,), (1372249614,), (1372249619,), (1372249650,), (1372249653,), (1372249657,), (1372249661,), (1372249665,), (1372249669,), (1372249685,), (1372249689,), (1372249694,), (1372249704,), (1372249728,), (1372249739,), (1372249803,), (1372249811,), (1372249815,), (1372249819,), (1372249823,), (1372249825,), (1372249876,), (1372249879,), (1372249882,), (1372249883,), (1372249885,), (1372249888,), (1372249906,), (1372249914,), (1372249920,), (1372249924,), (1372249928,), (1372249933,), (1372249953,), (1372249956,), (1372249959,), (1372249962,), (1372249965,), (1372249968,), (1372249985,), (1372249989,), (1372249993,), (1372249996,), (1372249999,), (1372250001,), (1372250014,), (1372250016,), (1372250018,), (1372250019,), (1372250024,), (1372250028,), (1372250052,), (1372250054,), (1372250063,), (1372250066,), (1372250069,), (1372250074,), (1372250098,), (1372250101,), (1372250102,), (1372250104,), (1372250108,), (1372250110,), (1372250131,), (1372250134,), (1372250138,), (1372250141,), (1372250144,), (1372250147,), (1372250158,), (1372250162,), (1372250166,), (1372250170,), (1372250172,), (1372250176,), (1372250192,), (1372250196,), (1372250200,), (1372250203,), (1372250207,), (1372250210,), (1372250228,), (1372250232,), (1372250236,), (1372250238,), (1372250240,), (1372250255,), (1372250284,), (1372250301,), (1372250311,), (1372250313,), (1372250315,), (1372250316,), (1372250337,), (1372250339,), (1372250342,), (1372250345,), (1372250348,), (1372250350,), (1372250372,), (1372250378,), (1372250383,), (1372250387,), (1372250389,), (1372250391,), (1372250406,), (1372250408,), (1372250411,), (1372250414,), (1372250416,), (1372250419,), (1372250436,), (1372250442,), (1372250448,), (1372250453,), (1372250455,), (1372250459,), (1372250481,), (1372250519,), (1372251102,), (1372251109,), (1372251379,), (1372251418,), (1372251462,), (1372251502,), (1372251540,), (1372251674,), (1372251681,), (1372251684,), (1372251687,), (1372251691,), (1372251694,), (1372251813,), (1372251848,), (1372251853,), (1372251857,), (1372251862,), (1372251866,), (1372251870,), (1372251880,), (1372251884,), (1372251888,), (1372251924,), (1372251960,), (1372251997,), (1372252209,), (1372252249,), (1372252288,), (1372252326,), (1372252384,), (1372252459,), (1372252770,), (1372252818,), (1372252860,), (1372252902,), (1372252942,), (1372252982,), (1372253045,), (1372253049,), (1372253073,), (1372253094,), (1372253138,), (1372253176,), (1372253383,), (1372253407,), (1372253438,), (1372253449,), (1372253452,), (1372253456,), (1372253595,), (1372253637,), (1372253641,), (1372253646,), (1372253650,), (1372253653,), (1372253666,), (1372253670,), (1372253674,), (1372253677,), (1372253680,), (1372253682,), (1372253705,), (1372253713,), (1372253717,), (1372253721,), (1372253726,), (1372253729,), (1372253743,), (1372253746,), (1372253750,), (1372253755,), (1372253758,), (1372253763,), (1372253780,), (1372253784,), (1372253791,), (1372253800,), (1372253805,), (1372253807,), (1372253876,), (1372253955,), (1372253960,), (1372253967,), (1372253973,), (1372253978,), (1372253982,), (1372253990,), (1372253995,), (1372254000,), (1372254005,), (1372254009,), (1372254014,), (1372254024,), (1372254029,), (1372254035,), (1372254041,), (1372254045,), (1372254050,), (1372254063,), (1372254068,), (1372254072,), (1372254076,), (1372254079,), (1372254082,), (1372254101,), (1372254105,), (1372254109,), (1372254114,), (1372254118,), (1372254122,), (1372254130,), (1372254134,), (1372254139,), (1372254143,), (1372254148,), (1372254168,), (1372254192,), (1372254197,), (1372254202,), (1372254206,), (1372254209,), (1372254212,), (1372254236,), (1372254269,), (1372254272,), (1372254276,), (1372254281,), (1372254285,), (1372254288,), (1372254302,), (1372254305,), (1372254309,), (1372254312,), (1372254317,), (1372254321,), (1372254329,), (1372254333,), (1372254337,), (1372254341,), (1372254346,), (1372254350,), (1372254361,), (1372254364,), (1372254366,), (1372254368,), (1372254371,), (1372254374,), (1372254394,), (1372254397,), (1372254400,), (1372254404,), (1372254409,), (1372254413,), (1372254443,), (1372254476,), (1372254520,), (1372254526,), (1372254531,), (1372254536,), (1372254540,), (1372254542,), (1372254577,), (1372254581,), (1372254585,), (1372254590,), (1372254594,), (1372254597,), (1372254604,), (1372254608,), (1372254613,), (1372254617,), (1372254620,), (1372254630,), (1372254667,), (1372254672,), (1372254677,), (1372254681,), (1372254683,), (1372254685,), (1372254701,), (1372254705,), (1372254711,), (1372254723,), (1372254734,), (1372254743,), (1372254812,), (1372254816,), (1372254820,), (1372254847,), (1372254851,), (1372254855,), (1372254871,), (1372254877,), (1372254882,), (1372254888,), (1372254894,), (1372254899,), (1372254916,), (1372254924,), (1372254940,), (1372254957,), (1372254965,), (1372254968,), (1372254991,), (1372254995,), (1372254999,), (1372255002,), (1372255005,), (1372255007,), (1372255031,), (1372255039,), (1372255044,), (1372255049,), (1372255054,), (1372255059,), (1372255074,), (1372255077,), (1372255080,), (1372255083,), (1372255086,), (1372255089,), (1372255112,), (1372255115,), (1372255119,), (1372255121,), (1372255124,), (1372255127,), (1372255154,), (1372255158,), (1372255163,), (1372255165,), (1372255169,), (1372255173,), (1372255194,), (1372255200,), (1372255203,), (1372255207,), (1372255211,), (1372255214,), (1372255227,), (1372255233,), (1372255237,), (1372255241,), (1372255247,), (1372255254,), (1372255274,), (1372255317,), (1372255322,), (1372255325,), (1372255327,), (1372255330,), (1372255334,), (1372255356,), (1372255358,), (1372255360,), (1372255363,), (1372255367,), (1372255371,), (1372255391,), (1372255394,), (1372255397,), (1372255400,), (1372255404,), (1372255407,), (1372255424,), (1372255427,), (1372255430,), (1372255434,), (1372255439,), (1372255442,), (1372255455,), (1372255457,), (1372255459,), (1372255461,), (1372255477,), (1372255485,), (1372255514,), (1372255518,), (1372255523,), (1372255528,), (1372255532,), (1372255535,), (1372255561,), (1372255564,), (1372255566,), (1372255568,), (1372255572,), (1372255575,), (1372255591,), (1372255595,), (1372255599,), (1372255601,), (1372255605,), (1372255608,), (1372255618,), (1372255621,), (1372255624,), (1372255627,), (1372255631,), (1372255636,), (1372255655,), (1372255659,), (1372255662,), (1372255664,), (1372255668,), (1372255673,), (1372255685,), (1372255687,), (1372255691,), (1372255699,), (1372255706,), (1372255712,), (1372255737,), (1372255746,), (1372255751,), (1372255755,), (1372255759,), (1372255762,), (1372255793,), (1372255800,), (1372255804,), (1372255808,), (1372255810,), (1372255814,), (1372255842,), (1372255845,), (1372255849,), (1372255854,), (1372255858,), (1372255887,), (1372256136,), (1372256220,), (1372256293,), (1372256365,), (1372256446,), (1372256523,), (1372256778,), (1372256815,), (1372256858,), (1372256910,), (1372256920,), (1372256927,), (1372257030,), (1372257065,), (1372257069,), (1372257072,), (1372257080,), (1372257417,), (1372257469,), (1372257516,), (1372257553,), (1372257612,), (1372257651,), (1372257821,), (1372257825,), (1372257829,), (1372257833,), (1372257837,), (1372257840,), (1372257857,), (1372257861,), (1372257863,), (1372257866,), (1372257869,), (1372257871,), (1372258010,), (1372258049,), (1372258063,), (1372258066,), (1372258069,), (1372258071,), (1372258145,), (1372258181,), (1372258185,), (1372258189,), (1372258193,), (1372258198,), (1372258201,), (1372258211,), (1372258215,), (1372258219,), (1372258222,), (1372258227,), (1372258231,), (1372258251,), (1372258257,), (1372258262,), (1372258264,), (1372258268,), (1372258273,), (1372258287,), (1372258289,), (1372258290,), (1372258292,), (1372258296,), (1372258300,), (1372258320,), (1372258323,), (1372258326,), (1372258329,), (1372258333,), (1372258336,), (1372258354,), (1372258358,), (1372258362,), (1372258366,), (1372258371,), (1372258376,), (1372258387,), (1372258390,), (1372258393,), (1372258396,), (1372258400,), (1372258404,), (1372258419,), (1372258423,), (1372258427,), (1372258430,), (1372258440,), (1372258450,), (1372258488,), (1372258491,), (1372258493,), (1372258495,), (1372258500,), (1372258504,), (1372258525,), (1372258527,), (1372258529,), (1372258531,), (1372258534,), (1372258539,), (1372258560,), (1372258562,), (1372258564,), (1372258567,), (1372258572,), (1372258576,), (1372258598,), (1372258600,), (1372258602,), (1372258604,), (1372258618,), (1372258629,), (1372258662,), (1372258674,), (1372258685,), (1372258689,), (1372258691,), (1372258694,), (1372258717,), (1372258723,), (1372258729,), (1372258735,), (1372258738,), (1372258741,), (1372258760,), (1372258764,), (1372258766,), (1372258769,), (1372258770,), (1372258772,), (1372258789,), (1372258793,), (1372258796,), (1372258798,), (1372258800,), (1372258803,), (1372258831,), (1372258837,), (1372258838,), (1372258842,), (1372258845,), (1372258847,), (1372258871,), (1372258875,), (1372258879,), (1372258883,), (1372258888,), (1372258891,), (1372258909,), (1372258914,), (1372258919,), (1372258922,), (1372258925,), (1372258928,), (1372258949,), (1372258954,), (1372258957,), (1372258962,), (1372258963,), (1372258964,), (1372258983,), (1372258991,), (1372258997,), (1372259000,), (1372259004,), (1372259006,), (1372259035,), (1372259039,), (1372259048,), (1372259052,), (1372259057,), (1372259061,), (1372259072,), (1372259077,), (1372259083,), (1372259088,), (1372259091,), (1372259095,), (1372259112,), (1372259143,), (1372259148,), (1372259151,), (1372259155,), (1372259158,), (1372259160,), (1372259181,), (1372259212,), (1372259242,), (1372259244,), (1372259246,), (1372259251,), (1372259259,), (1372259269,), (1372259298,), (1372259306,), (1372259309,), (1372259311,), (1372259315,), (1372259319,), (1372259333,), (1372259337,), (1372259341,), (1372259344,), (1372259360,), (1372259370,), (1372259387,), (1372259391,), (1372259395,), (1372259398,), (1372259402,), (1372259406,), (1372259441,), (1372259446,), (1372259450,), (1372259453,), (1372259457,), (1372259470,), (1372259517,), (1372259525,), (1372259529,), (1372259534,), (1372259539,), (1372259542,), (1372259621,), (1372259693,), (1372259695,), (1372259698,), (1372259700,), (1372259705,), (1372259709,), (1372259792,), (1372259793,), (1372259795,), (1372259796,), (1372259800,), (1372259805,), (1372259828,), (1372259830,), (1372259832,), (1372259835,), (1372259840,), (1372259844,), (1372259864,), (1372259873,), (1372259876,), (1372259884,), (1372259894,), (1372259900,), (1372259936,), (1372259941,), (1372259943,), (1372259944,), (1372259947,), (1372259950,), (1372259977,), (1372259979,), (1372259981,), (1372259984,), (1372259988,), (1372259992,), (1372260006,), (1372260016,), (1372260020,), (1372260023,), (1372260028,), (1372260033,), (1372260061,), (1372260063,), (1372260065,), (1372260067,), (1372260071,), (1372260076,), (1372260091,), (1372260094,), (1372260109,), (1372260116,), (1372260121,), (1372260124,), (1372260143,), (1372260146,), (1372260149,), (1372260152,), (1372260157,), (1372260160,), (1372260181,), (1372260188,), (1372260191,), (1372260195,), (1372260198,), (1372260201,), (1372260215,), (1372260219,), (1372260224,), (1372260229,), (1372260232,), (1372260236,), (1372260253,), (1372260264,), (1372260271,), (1372260277,), (1372260278,), (1372260280,), (1372260296,), (1372260299,), (1372260302,), (1372260305,), (1372260307,), (1372260313,), (1372260327,), (1372260332,), (1372260335,), (1372260339,), (1372260342,), (1372260346,), (1372260433,), (1372260791,), (1372260795,), (1372260799,), (1372260803,), (1372260814,), (1372260883,), (1372260887,), (1372260892,), (1372260916,), (1372260924,), (1372260948,), (1372261163,), (1372261488,), (1372261498,), (1372261510,), (1372261515,), (1372261520,), (1372261524,), (1372261530,), (1372261533,), (1372261536,), (1372261557,), (1372261592,), (1372261630,), (1372261848,), (1372261927,), (1372262003,), (1372262079,), (1372262153,), (1372262223,), (1372262379,), (1372262409,), (1372262414,), (1372262434,), (1372262438,), (1372262441,), (1372262455,), (1372262460,), (1372262467,), (1372262485,), (1372262532,), (1372262571,), (1372262637,), (1372262642,), (1372262646,), (1372262650,), (1372262673,), (1372262710,), (1372262730,), (1372262740,), (1372262778,), (1372262798,), (1372262805,), (1372262809,), (1372262827,), (1372262830,), (1372262833,), (1372262836,), (1372262838,), (1372262842,), (1372262864,), (1372262867,), (1372262869,), (1372262870,), (1372262874,), (1372262877,), (1372262903,), (1372262907,), (1372262910,), (1372262914,), (1372262917,), (1372262920,), (1372262943,), (1372262947,), (1372262952,), (1372262956,), (1372262960,), (1372262963,), (1372262972,), (1372262976,), (1372262979,), (1372262981,), (1372262985,), (1372262988,), (1372263007,), (1372263012,), (1372263020,), (1372263024,), (1372263028,), (1372263031,), (1372263044,), (1372263048,), (1372263051,), (1372263055,), (1372263058,), (1372263061,), (1372263079,), (1372263081,), (1372263083,), (1372263085,), (1372263089,), (1372263094,), (1372263117,), (1372263120,), (1372263122,), (1372263127,), (1372263130,), (1372263133,), (1372263153,), (1372263155,), (1372263164,), (1372263169,), (1372263172,), (1372263175,), (1372263188,), (1372263192,), (1372263197,), (1372263200,), (1372263204,), (1372263212,), (1372263242,), (1372263247,), (1372263251,), (1372263253,), (1372263256,), (1372263258,), (1372263281,), (1372263284,), (1372263288,), (1372263291,), (1372263293,), (1372263295,), (1372263319,), (1372263321,), (1372263323,), (1372263326,), (1372263328,), (1372263330,), (1372263348,), (1372263354,), (1372263360,), (1372263366,), (1372263371,), (1372263375,), (1372263396,), (1372263401,), (1372263405,), (1372263410,), (1372263415,), (1372263418,), (1372263443,), (1372263449,), (1372263455,), (1372263459,), (1372263461,), (1372263464,), (1372263486,), (1372263491,), (1372263493,), (1372263497,), (1372263500,), (1372263502,), (1372263520,), (1372263525,), (1372263530,), (1372263534,), (1372263537,), (1372263541,), (1372263557,), (1372263570,), (1372263578,), (1372263581,), (1372263584,), (1372263586,), (1372263608,), (1372263614,), (1372263618,), (1372263622,), (1372263625,), (1372263628,), (1372263639,), (1372263650,), (1372263658,), (1372263666,), (1372263676,), (1372263690,), (1372263710,), (1372263743,), (1372263747,), (1372263751,), (1372263754,), (1372263759,), (1372263763,), (1372263774,), (1372263809,), (1372263818,), (1372263824,), (1372263829,), (1372263834,), (1372263839,), (1372263861,), (1372263870,), (1372263874,), (1372263877,), (1372263880,), (1372263882,), (1372263901,), (1372263904,), (1372263907,), (1372263910,), (1372263914,), (1372263919,), (1372263929,), (1372263932,), (1372263935,), (1372263939,), (1372263950,), (1372263960,), (1372263977,), (1372263982,), (1372263987,), (1372263992,), (1372263996,), (1372263999,), (1372264028,), (1372264032,), (1372264036,), (1372264040,), (1372264045,), (1372264049,), (1372264066,), (1372264073,), (1372264075,), (1372264079,), (1372264082,), (1372264084,), (1372264100,), (1372264103,), (1372264106,), (1372264109,), (1372264111,), (1372264113,), (1372264126,), (1372264133,), (1372264140,), (1372264142,), (1372264146,), (1372264149,), (1372264160,), (1372264162,), (1372264165,), (1372264167,), (1372264171,), (1372264175,), (1372277439,), (1372277442,), (1372277446,), (1372277450,), (1372277456,), (1372277460,), (1372277475,), (1372277478,), (1372277491,), (1372277497,), (1372277501,), (1372277504,), (1372277519,), (1372277523,), (1372277525,), (1372277529,), (1372277534,), (1372277538,), (1372277555,), (1372277559,), (1372277568,), (1372277575,), (1372277583,), (1372277586,), (1372277610,), (1372277617,), (1372277619,), (1372277622,), (1372277627,), (1372277631,), (1372277647,), (1372277655,), (1372277660,), (1372277662,), (1372277668,), (1372277673,), (1372277696,), (1372277700,), (1372277704,), (1372277708,), (1372277713,), (1372277717,), (1372277738,), (1372277748,), (1372277753,), (1372277758,), (1372277762,), (1372277765,), (1372277778,), (1372277783,), (1372277787,), (1372277791,), (1372277797,), (1372277800,), (1372277815,), (1372277827,), (1372277835,), (1372277839,), (1372277843,), (1372277845,), (1372277868,), (1372277870,), (1372277873,), (1372277878,), (1372277884,), (1372277888,), (1372277912,), (1372277924,), (1372277932,), (1372277935,), (1372277940,), (1372277944,), (1372277968,), (1372277974,), (1372277978,), (1372277986,), (1372277994,), (1372277998,), (1372278017,), (1372278027,), (1372278038,), (1372278041,), (1372278045,), (1372278047,), (1372278076,), (1372278079,), (1372278081,), (1372278085,), (1372278091,), (1372278098,), (1372278121,), (1372278126,), (1372278130,), (1372278134,), (1372278140,), (1372278146,), (1372278163,), (1372278166,), (1372278170,), (1372278171,), (1372278176,), (1372278180,), (1372278201,), (1372278204,), (1372278207,), (1372278211,), (1372278216,), (1372278218,), (1372278241,), (1372278285,), (1372278288,), (1372278291,), (1372278294,), (1372278300,), (1372278304,), (1372278324,), (1372278327,), (1372278329,), (1372278331,), (1372278336,), (1372278339,), (1372278395,), (1372278405,), (1372278413,), (1372278416,), (1372278419,), (1372278422,), (1372278444,), (1372278449,), (1372278453,), (1372278459,), (1372278463,), (1372278467,), (1372278488,), (1372278496,), (1372278505,), (1372278510,), (1372278514,), (1372278518,), (1372278534,), (1372278539,), (1372278541,), (1372278545,), (1372278550,), (1372278553,), (1372278566,), (1372278571,), (1372278575,), (1372278580,), (1372278584,), (1372278588,), (1372278608,), (1372278612,), (1372278615,), (1372278617,), (1372278621,), (1372278623,), (1372278644,), (1372278650,), (1372278654,), (1372278659,), (1372278664,), (1372278669,), (1372279039,), (1372279074,), (1372279088,), (1372279094,), (1372279115,), (1372279119,), (1372279135,), (1372279304,), (1372279346,), (1372279383,), (1372279420,), (1372279457,), (1372279493,), (1372279852,), (1372279889,), (1372279933,), (1372279973,), (1372280012,), (1372280054,), (1372280178,), (1372280188,), (1372280225,), (1372280261,), (1372280301,), (1372280307,), (1372280354,), (1372280362,), (1372280368,), (1372280391,), (1372280423,), (1372280465,), (1372280577,), (1372280598,), (1372280624,), (1372280630,), (1372280635,), (1372280664,), (1372280697,), (1372280721,), (1372280727,), (1372280766,), (1372280809,), (1372280831,), (1372280884,), (1372280889,), (1372280922,), (1372280957,), (1372280959,), (1372280962,), (1372281029,), (1372281033,), (1372281037,), (1372281041,), (1372281046,), (1372281049,), (1372281068,), (1372281072,), (1372281076,), (1372281082,), (1372281089,), (1372281097,), (1372281118,), (1372281126,), (1372281132,), (1372281135,), (1372281141,), (1372281146,), (1372281165,), (1372281169,), (1372281184,), (1372281192,), (1372281203,), (1372281214,), (1372281316,), (1372281354,), (1372281397,), (1372281432,), (1372281471,), (1372281511,), (1372281587,), (1372281592,), (1372281594,), (1372281597,), (1372281601,), (1372281636,), (1372281738,), (1372281743,), (1372281748,), (1372281751,), (1372281778,), (1372281805,), (1372281824,), (1372281828,), (1372281864,), (1372281880,), (1372281889,), (1372281893,), (1372281911,), (1372281915,), (1372281919,), (1372281925,), (1372281935,), (1372281948,), (1372282062,), (1372282072,), (1372282075,), (1372282078,), (1372282081,), (1372282091,), (1372282144,), (1372282148,), (1372282155,), (1372282159,), (1372282165,), (1372282172,), (1372282233,), (1372282272,), (1372282308,), (1372282350,), (1372282389,), (1372282426,), (1372282618,), (1372282656,), (1372282694,), (1372282714,), (1372282722,), (1372282734,), (1372282799,), (1372282808,), (1372282810,), (1372282822,), (1372282830,), (1372282833,), (1372282866,), (1372282869,), (1372282872,), (1372282875,), (1372282880,), (1372282883,), (1372282905,), (1372282913,), (1372282924,), (1372282929,), (1372282933,), (1372282937,), (1372282950,), (1372282954,), (1372282957,), (1372282960,), (1372282964,), (1372282969,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16072025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24992907]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799] map_info['map_portfolio_photo'] : {24992907: [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799, 1372282734, 1372282722, 1372282714, 1372282694, 1372282656, 1372282618, 1372282426, 1372282389, 1372282350, 1372282308, 1372282272, 1372282233, 1372282172, 1372282165, 1372282159, 1372282155, 1372282148, 1372282144, 1372282091, 1372282081, 1372282078, 1372282075, 1372282072, 1372282062, 1372281948, 1372281935, 1372281925, 1372281919, 1372281915, 1372281911, 1372281893, 1372281889, 1372281880, 1372281864, 1372281828, 1372281824]} final : True mtd_id 4302 list_pids : [1372282969, 1372282964, 1372282960, 1372282957, 1372282954, 1372282950, 1372282937, 1372282933, 1372282929, 1372282924, 1372282913, 1372282905, 1372282883, 1372282880, 1372282875, 1372282872, 1372282869, 1372282866, 1372282833, 1372282830, 1372282822, 1372282810, 1372282808, 1372282799] Looping around the photos to save general results len do output : 1 /24992907Didn'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, '3299153') ('4302', '24992907', '1372282969', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282964', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282960', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282957', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282954', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282950', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282937', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282933', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282929', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282924', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282913', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282905', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282883', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282880', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282875', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282872', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282869', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282866', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282833', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282830', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282822', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282810', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282808', None, None, None, None, None, '3299153') ('4302', None, None, None, None, None, None, None, '3299153') ('4302', '24992907', '1372282799', None, None, None, None, None, '3299153') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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, '24992907', 'None', None, None, None, None, '3299153'), ('4302', '24992907', '1372282969', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282964', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282960', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282957', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282954', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282950', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282937', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282933', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282929', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282924', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282913', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282905', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282883', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282880', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282875', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282872', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282869', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282866', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282833', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282830', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282822', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282810', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282808', None, None, None, None, None, '3299153'), ('4302', '24992907', '1372282799', None, None, None, None, None, '3299153')] time used for this insertion : 0.029947280883789062 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.258690595626831 time spend to save output : 0.030258655548095703 total time spend for step 5 : 2.2889492511749268 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 (3299153) 2.61user 1.90system 0:10.83elapsed 41%CPU (0avgtext+0avgdata 168684maxresident)k 112inputs+20400outputs (1major+80687minor)pagefaults 0swaps