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 : 2402681 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 (3325103) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3325103) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210669 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3325103'] with mtr_portfolio_ids : ['25210669'] and first list_photo_ids : [] new path : /proc/2402681/ Name: python3 Umask: 0002 State: R (running) Tgid: 2402681 Ngid: 0 Pid: 2402681 PPid: 2402680 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2402681 NSpid: 2402681 NSpgid: 2401237 NSsid: 2401237 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99704 kB VmRSS: 99704 kB RssAnon: 59808 kB RssFile: 39896 kB RssShmem: 0 kB VmData: 865648 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 66 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2402681', 'Ngid': '0', 'Pid': '2402681', 'PPid': '2402680', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2402681', 'NSpid': '2402681', 'NSpgid': '2401237', 'NSsid': '2401237', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99704 kB', 'VmRSS': '99704 kB', 'RssAnon': '59808 kB', 'RssFile': '39896 kB', 'RssShmem': '0 kB', 'VmData': '865648 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '66', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '2402681', '1106896', '0', '1106896', '865648', '99704', b'', 'marlene', '3325103') 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 (25210669) 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 (3325103 ) ) 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 (25210669) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373297987, 'portfolio_id': 25210669}, {'photo_id': 1373297984, 'portfolio_id': 25210669}, {'photo_id': 1373297982, 'portfolio_id': 25210669}, {'photo_id': 1373297980, 'portfolio_id': 25210669}, {'photo_id': 1373297974, 'portfolio_id': 25210669}, {'photo_id': 1373297966, 'portfolio_id': 25210669}, {'photo_id': 1373297827, 'portfolio_id': 25210669}, {'photo_id': 1373297796, 'portfolio_id': 25210669}, {'photo_id': 1373297758, 'portfolio_id': 25210669}, {'photo_id': 1373297711, 'portfolio_id': 25210669}, {'photo_id': 1373297667, 'portfolio_id': 25210669}, {'photo_id': 1373297657, 'portfolio_id': 25210669}, {'photo_id': 1373297496, 'portfolio_id': 25210669}, {'photo_id': 1373297472, 'portfolio_id': 25210669}, {'photo_id': 1373297458, 'portfolio_id': 25210669}, {'photo_id': 1373297456, 'portfolio_id': 25210669}, {'photo_id': 1373297453, 'portfolio_id': 25210669}, {'photo_id': 1373297450, 'portfolio_id': 25210669}, {'photo_id': 1373297211, 'portfolio_id': 25210669}, {'photo_id': 1373297180, 'portfolio_id': 25210669}, {'photo_id': 1373297143, 'portfolio_id': 25210669}, {'photo_id': 1373297099, 'portfolio_id': 25210669}, {'photo_id': 1373297048, 'portfolio_id': 25210669}, {'photo_id': 1373297014, 'portfolio_id': 25210669}, {'photo_id': 1373296649, 'portfolio_id': 25210669}, {'photo_id': 1373296645, 'portfolio_id': 25210669}, {'photo_id': 1373296640, 'portfolio_id': 25210669}, {'photo_id': 1373296639, 'portfolio_id': 25210669}, {'photo_id': 1373296635, 'portfolio_id': 25210669}, {'photo_id': 1373296624, 'portfolio_id': 25210669}, {'photo_id': 1373296597, 'portfolio_id': 25210669}, {'photo_id': 1373296594, 'portfolio_id': 25210669}, {'photo_id': 1373296592, 'portfolio_id': 25210669}, {'photo_id': 1373296589, 'portfolio_id': 25210669}, {'photo_id': 1373296579, 'portfolio_id': 25210669}, {'photo_id': 1373296573, 'portfolio_id': 25210669}, {'photo_id': 1373296552, 'portfolio_id': 25210669}, {'photo_id': 1373296550, 'portfolio_id': 25210669}, {'photo_id': 1373296534, 'portfolio_id': 25210669}, {'photo_id': 1373296531, 'portfolio_id': 25210669}, {'photo_id': 1373296529, 'portfolio_id': 25210669}, {'photo_id': 1373296524, 'portfolio_id': 25210669}, {'photo_id': 1373296482, 'portfolio_id': 25210669}, {'photo_id': 1373296478, 'portfolio_id': 25210669}, {'photo_id': 1373296475, 'portfolio_id': 25210669}, {'photo_id': 1373296473, 'portfolio_id': 25210669}, {'photo_id': 1373296471, 'portfolio_id': 25210669}, {'photo_id': 1373296462, 'portfolio_id': 25210669}, {'photo_id': 1373296409, 'portfolio_id': 25210669}, {'photo_id': 1373296405, 'portfolio_id': 25210669}, {'photo_id': 1373296403, 'portfolio_id': 25210669}, {'photo_id': 1373296395, 'portfolio_id': 25210669}, {'photo_id': 1373296385, 'portfolio_id': 25210669}, {'photo_id': 1373296382, 'portfolio_id': 25210669}] map_portfolio_id_photo_id: {25210669: [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657, 1373297496, 1373297472, 1373297458, 1373297456, 1373297453, 1373297450, 1373297211, 1373297180, 1373297143, 1373297099, 1373297048, 1373297014, 1373296649, 1373296645, 1373296640, 1373296639, 1373296635, 1373296624, 1373296597, 1373296594, 1373296592, 1373296589, 1373296579, 1373296573, 1373296552, 1373296550, 1373296534, 1373296531, 1373296529, 1373296524, 1373296482, 1373296478, 1373296475, 1373296473, 1373296471, 1373296462, 1373296409, 1373296405, 1373296403, 1373296395, 1373296385, 1373296382]} ##### 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.01753973960876465 #### 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 23 08:54:58 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 (25210669) 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 : 25210669 get user id for portfolio 25210669 get sub ptf for main ptf 25210669, type 3726 and hashtags ['flou', 'Teint_Dans_La_Masse', 'kraft', 'papier', 'mal_croppe', 'autre_refus', 'plastique', 'environnement', 'metal', 'Carton_brun', 'Carton_gris', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25210669 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','kraft','papier','mal_croppe','autre_refus','plastique','environnement','metal','Carton_brun','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25210669 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','kraft','papier','mal_croppe','autre_refus','plastique','environnement','metal','Carton_brun','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25210669, 'sub_port_id': 25210712, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005668, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'mal_croppe': {'main_port_id': 25210669, 'sub_port_id': 25210713, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005669, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'autre_refus': {'main_port_id': 25210669, 'sub_port_id': 25210714, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005670, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25210669, 'sub_port_id': 25210715, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005671, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'flou': {'main_port_id': 25210669, 'sub_port_id': 25210716, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005672, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'Carton_gris': {'main_port_id': 25210669, 'sub_port_id': 25210717, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005673, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'cartonnette': {'main_port_id': 25210669, 'sub_port_id': 25210718, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005674, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'papier': {'main_port_id': 25210669, 'sub_port_id': 25210719, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005675, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'metal': {'main_port_id': 25210669, 'sub_port_id': 25210720, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005676, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'kraft': {'main_port_id': 25210669, 'sub_port_id': 25210721, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005677, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'Carton_brun': {'main_port_id': 25210669, 'sub_port_id': 25210722, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005678, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}, 'plastique': {'main_port_id': 25210669, 'sub_port_id': 25210723, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005679, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25210712 , 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=25210669 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 (25210712) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210713 , 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=25210669 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 (25210713) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210714 , 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=25210669 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 (25210714) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210715 , 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=25210669 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 (25210715) result : ((1373296643,), (1373297020,), (1373297022,), (1373297024,), (1373297026,), (1373297028,), (1373297448,), (1373297967,), (1373297968,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210716 , 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=25210669 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 (25210716) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210717 , 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=25210669 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 (25210717) result : ((1373297970,), (1373297971,), (1373297972,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210718 , 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=25210669 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 (25210718) result : ((1373297036,), (1373297973,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210719 , 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=25210669 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 (25210719) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210720 , 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=25210669 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 (25210720) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210721 , 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=25210669 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 (25210721) result : ((1373297067,), (1373297070,), (1373297073,), (1373297076,), (1373297079,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210722 , 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=25210669 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 (25210722) result : ((1373297044,), (1373297046,), (1373297977,), (1373297978,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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 25210723 , 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=25210669 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 (25210723) result : ((1373296644,), (1373297449,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25210669) result : ((1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) 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`=25210669 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','kraft','papier','mal_croppe','autre_refus','plastique','environnement','metal','Carton_brun','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25210669 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','kraft','papier','mal_croppe','autre_refus','plastique','environnement','metal','Carton_brun','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25210669, 'sub_port_id': 25210724, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005680, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'mal_croppe': {'main_port_id': 25210669, 'sub_port_id': 25210725, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005681, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'autre_refus': {'main_port_id': 25210669, 'sub_port_id': 25210726, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005682, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 25210669, 'sub_port_id': 25210727, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005683, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'flou': {'main_port_id': 25210669, 'sub_port_id': 25210728, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005684, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'Carton_gris': {'main_port_id': 25210669, 'sub_port_id': 25210729, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005685, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'cartonnette': {'main_port_id': 25210669, 'sub_port_id': 25210730, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005686, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'papier': {'main_port_id': 25210669, 'sub_port_id': 25210731, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005687, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'metal': {'main_port_id': 25210669, 'sub_port_id': 25210732, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005688, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'kraft': {'main_port_id': 25210669, 'sub_port_id': 25210733, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005689, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'Carton_brun': {'main_port_id': 25210669, 'sub_port_id': 25210734, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005690, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}, 'plastique': {'main_port_id': 25210669, 'sub_port_id': 25210735, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17005691, 'last_updated_at': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 8, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 8, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210712 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210725,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210713 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210714 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210727,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210715 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210728,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210716 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210729,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210717 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210730,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210718 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210731,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210719 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210732,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210720 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210733,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210721 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210734,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210722 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25210735,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25210723 lien utilise dans velours : https://www.fotonower.com/velours/25210724,25210725,25210726,25210727,25210728,25210729,25210730,25210731,25210732,25210733,25210734,25210735?tags=environnement,mal_croppe,autre_refus,Teint_Dans_La_Masse,flou,Carton_gris,cartonnette,papier,metal,kraft,Carton_brun,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25210669]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657] map_info['map_portfolio_photo'] : {25210669: [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657, 1373297496, 1373297472, 1373297458, 1373297456, 1373297453, 1373297450, 1373297211, 1373297180, 1373297143, 1373297099, 1373297048, 1373297014, 1373296649, 1373296645, 1373296640, 1373296639, 1373296635, 1373296624, 1373296597, 1373296594, 1373296592, 1373296589, 1373296579, 1373296573, 1373296552, 1373296550, 1373296534, 1373296531, 1373296529, 1373296524, 1373296482, 1373296478, 1373296475, 1373296473, 1373296471, 1373296462, 1373296409, 1373296405, 1373296403, 1373296395, 1373296385, 1373296382]} final : False mtd_id 4302 list_pids : [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657] Looping around the photos to save general results len do output : 1 /25210669. 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, '3325103') ('4302', '25210669', '1373297987', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297984', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297982', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297980', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297974', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297966', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297827', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297796', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297758', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297711', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297667', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297657', None, None, None, None, None, '3325103') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25210669', "{'environnement': 25210712, 'mal_croppe': 25210713, 'autre_refus': 25210714, 'Teint_Dans_La_Masse': 25210715, 'flou': 25210716, 'Carton_gris': 25210717, 'cartonnette': 25210718, 'papier': 25210719, 'metal': 25210720, 'kraft': 25210721, 'Carton_brun': 25210722, 'plastique': 25210723}", None, None, None, None, '3325103'), ('4302', '25210669', '1373297987', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297984', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297982', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297980', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297974', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297966', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297827', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297796', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297758', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297711', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297667', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297657', None, None, None, None, None, '3325103')] time used for this insertion : 0.04167628288269043 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6398494243621826 time spend to save output : 0.04199695587158203 total time spend for step 1 : 1.6818463802337646 step2:final Wed Jul 23 08:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (25210669) 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 25210669 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373296409,1373296405,1373296403,1373296395,1373296385,1373296382,1373296482,1373296478,1373296475,1373296473,1373296471,1373296462,1373296552,1373296550,1373296534,1373296531,1373296529,1373296524,1373296597,1373296594,1373296592,1373296589,1373296579,1373296573,1373296649,1373296645,1373296640,1373296639,1373296635,1373296624,1373297211,1373297180,1373297143,1373297099,1373297048,1373297014,1373297496,1373297472,1373297458,1373297456,1373297453,1373297450,1373297827,1373297796,1373297758,1373297711,1373297667,1373297657,1373297987,1373297984,1373297982,1373297980,1373297974,1373297966); 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([25210669]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} new output for save of step final : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657] map_info['map_portfolio_photo'] : {25210669: [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657, 1373297496, 1373297472, 1373297458, 1373297456, 1373297453, 1373297450, 1373297211, 1373297180, 1373297143, 1373297099, 1373297048, 1373297014, 1373296649, 1373296645, 1373296640, 1373296639, 1373296635, 1373296624, 1373296597, 1373296594, 1373296592, 1373296589, 1373296579, 1373296573, 1373296552, 1373296550, 1373296534, 1373296531, 1373296529, 1373296524, 1373296482, 1373296478, 1373296475, 1373296473, 1373296471, 1373296462, 1373296409, 1373296405, 1373296403, 1373296395, 1373296385, 1373296382]} final : False mtd_id 4302 list_pids : [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657] Looping around the photos to save general results len do output : 12 /1373297987.Didn't retrieve data . /1373297984.Didn't retrieve data . /1373297982.Didn't retrieve data . /1373297980.Didn't retrieve data . /1373297974.Didn't retrieve data . /1373297966.Didn't retrieve data . /1373297827.Didn't retrieve data . /1373297796.Didn't retrieve data . /1373297758.Didn't retrieve data . /1373297711.Didn't retrieve data . /1373297667.Didn't retrieve data . /1373297657.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, '3325103') ('4302', '25210669', '1373297987', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297984', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297982', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297980', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297974', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297966', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297827', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297796', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297758', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297711', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297667', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297657', None, None, None, None, None, '3325103') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '25210669', '1373297987', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297984', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297982', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297980', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297974', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297966', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297827', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297796', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297758', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297711', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297667', '0.0653013139601466', None, None, None, None, '3325103'), ('4302', '25210669', '1373297657', '0.0653013139601466', None, None, None, None, '3325103')] time used for this insertion : 0.03913307189941406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.14813709259033203 time spend to save output : 0.039536476135253906 total time spend for step 2 : 0.18767356872558594 step3:velours_tree Wed Jul 23 08:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25210669: [{'environnement': 25210712, 'mal_croppe': 25210713, 'autre_refus': 25210714, 'Teint_Dans_La_Masse': 25210715, 'flou': 25210716, 'Carton_gris': 25210717, 'cartonnette': 25210718, 'papier': 25210719, 'metal': 25210720, 'kraft': 25210721, 'Carton_brun': 25210722, 'plastique': 25210723}]} input_args_next_step : {25210669: ()} output_args : {25210669: [{'environnement': 25210712, 'mal_croppe': 25210713, 'autre_refus': 25210714, 'Teint_Dans_La_Masse': 25210715, 'flou': 25210716, 'Carton_gris': 25210717, 'cartonnette': 25210718, 'papier': 25210719, 'metal': 25210720, 'kraft': 25210721, 'Carton_brun': 25210722, 'plastique': 25210723}]} args : 25210669 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 : ({'environnement': 25210712, 'mal_croppe': 25210713, 'autre_refus': 25210714, 'Teint_Dans_La_Masse': 25210715, 'flou': 25210716, 'Carton_gris': 25210717, 'cartonnette': 25210718, 'papier': 25210719, 'metal': 25210720, 'kraft': 25210721, 'Carton_brun': 25210722, 'plastique': 25210723},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25210669) 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([25210669]) 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.2977569103240967 time spend to save output : 4.0531158447265625e-05 total time spend for step 3 : 0.29779744148254395 step4:send_mail_cod Wed Jul 23 08:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} input_args_next_step : {1373297987: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297987 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297984 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297982 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297980 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297974 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297966 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297827 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297796 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297758 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297711 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297667 depend.output_id : 0 input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ()} output_args : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',)} args : 1373297657 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 : {25210669: [{'environnement': 25210712, 'mal_croppe': 25210713, 'autre_refus': 25210714, 'Teint_Dans_La_Masse': 25210715, 'flou': 25210716, 'Carton_gris': 25210717, 'cartonnette': 25210718, 'papier': 25210719, 'metal': 25210720, 'kraft': 25210721, 'Carton_brun': 25210722, 'plastique': 25210723}]} input_args_next_step : {1373297987: ('0.0653013139601466',), 1373297984: ('0.0653013139601466',), 1373297982: ('0.0653013139601466',), 1373297980: ('0.0653013139601466',), 1373297974: ('0.0653013139601466',), 1373297966: ('0.0653013139601466',), 1373297827: ('0.0653013139601466',), 1373297796: ('0.0653013139601466',), 1373297758: ('0.0653013139601466',), 1373297711: ('0.0653013139601466',), 1373297667: ('0.0653013139601466',), 1373297657: ('0.0653013139601466',), 25210669: ()} output_args : {25210669: [{'environnement': 25210712, 'mal_croppe': 25210713, 'autre_refus': 25210714, 'Teint_Dans_La_Masse': 25210715, 'flou': 25210716, 'Carton_gris': 25210717, 'cartonnette': 25210718, 'papier': 25210719, 'metal': 25210720, 'kraft': 25210721, 'Carton_brun': 25210722, 'plastique': 25210723}]} args : 25210669 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 :13, first value : ('0.0653013139601466',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25210669) 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 (1373297987,1373297984,1373297982,1373297980,1373297974,1373297966,1373297827,1373297796,1373297758,1373297711,1373297667,1373297657) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373297657 begin to download photo : 1373297758 begin to download photo : 1373297966 begin to download photo : 1373297982 download finish for photo 1373297966 begin to download photo : 1373297974 download finish for photo 1373297758 begin to download photo : 1373297796 download finish for photo 1373297657 begin to download photo : 1373297667 download finish for photo 1373297982 begin to download photo : 1373297984 download finish for photo 1373297796 begin to download photo : 1373297827 download finish for photo 1373297974 begin to download photo : 1373297980 download finish for photo 1373297667 begin to download photo : 1373297711 download finish for photo 1373297984 begin to download photo : 1373297987 download finish for photo 1373297980 download finish for photo 1373297987 download finish for photo 1373297827 download finish for photo 1373297711 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette252107131753253701/ imagette252107141753253701/ imagette252107161753253701/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25210669_23-07-2025_08_55_01.pdf 25210713 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=25210713 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252107131753253701 25210714 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=25210714 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252107141753253701 25210716 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=25210716 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252107161753253701 25210718 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=25210718 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373297036: '1753253426_3539446_1373296471_847c2d072c936fa39ab7b30c099eff6a_rle_crop_3891046598_0.png', 1373297973: '1753253605_3549293_1373296534_27e8510f6ecfaea71b665a3c3a08cd32_rle_crop_3891048239_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/d5f431338424ec4adda5a3d1d089080e_92465658.png change filename to text .imagette252107181753253701/ imagette252107181753253701/1753253605_3549293_1373296534_27e8510f6ecfaea71b665a3c3a08cd32_rle_crop_3891048239_0.png.png imagette252107181753253701/1753253426_3539446_1373296471_847c2d072c936fa39ab7b30c099eff6a_rle_crop_3891046598_0.png.png imagette252107201753253701/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/0f637eaf0e2ef5d7bce1f02a0026ed1d_1951019.png imagette252107181753253701 25210720 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=25210720 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252107201753253701 25210721 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=25210721 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373297067: '1753253426_3539446_1373296475_bbb1b1e93ee9ba08281c19d48e544d08_rle_crop_3891046579_0.png', 1373297070: '1753253426_3539446_1373296475_bbb1b1e93ee9ba08281c19d48e544d08_rle_crop_3891046577_0.png', 1373297073: '1753253426_3539446_1373296473_c6bfafdddf3d16b8f68e5be69e5c1fe3_rle_crop_3891046590_0.png', 1373297076: '1753253426_3539446_1373296473_c6bfafdddf3d16b8f68e5be69e5c1fe3_rle_crop_3891046587_0.png', 1373297079: '1753253426_3539446_1373296462_7a2d42387281d57cf7cf82a32d476f37_rle_crop_3891046610_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/9a0250c84536cef7cbb2aebd8f48b87a_7163295.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/bdf4607ddb3fc3e382ffe83ae5db40ae_74353801.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/b9486ab60b3e77343fd3f39d48affe3b_79030170.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/6559f992d953ce0b1cb53f229a69c1e2_1218376.png change filename to text .imagette252107211753253701/ imagette252107211753253701/1753253426_3539446_1373296475_bbb1b1e93ee9ba08281c19d48e544d08_rle_crop_3891046577_0.png.png imagette252107211753253701/1753253426_3539446_1373296462_7a2d42387281d57cf7cf82a32d476f37_rle_crop_3891046610_0.png.png imagette252107211753253701/1753253426_3539446_1373296473_c6bfafdddf3d16b8f68e5be69e5c1fe3_rle_crop_3891046587_0.png.png imagette252107211753253701/1753253426_3539446_1373296475_bbb1b1e93ee9ba08281c19d48e544d08_rle_crop_3891046579_0.png.png imagette252107211753253701/1753253426_3539446_1373296473_c6bfafdddf3d16b8f68e5be69e5c1fe3_rle_crop_3891046590_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/1727a9c35154e244b4dbb757e8645038_34093450.png imagette252107211753253701 25210723 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=25210723 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373296644: '1753253366_3537465_1373296405_483fa5cbd5732a0bbe8f2f521b0ad3b5_rle_crop_3891046427_0.png', 1373297449: '1753253486_3542920_1373296405_483fa5cbd5732a0bbe8f2f521b0ad3b5_rle_crop_3891046427_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/a101bee642b714e9739c295aef7565e9_94907412.png change filename to text .imagette252107231753253701/ imagette252107231753253701/1753253486_3542920_1373296405_483fa5cbd5732a0bbe8f2f521b0ad3b5_rle_crop_3891046427_0.png.png imagette252107231753253701/1753253366_3537465_1373296405_483fa5cbd5732a0bbe8f2f521b0ad3b5_rle_crop_3891046427_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/a101bee642b714e9739c295aef7565e9_99344164.png imagette252107231753253701 25210715 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=25210715 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373296643: '1753253366_3537465_1373296409_4b6d582150e779ab91fb6eda62f4a7b3_rle_crop_3891046414_0.png', 1373297020: '1753253426_3539446_1373296475_bbb1b1e93ee9ba08281c19d48e544d08_rle_crop_3891046583_0.png', 1373297022: '1753253426_3539446_1373296475_bbb1b1e93ee9ba08281c19d48e544d08_rle_crop_3891046580_0.png', 1373297024: '1753253426_3539446_1373296471_847c2d072c936fa39ab7b30c099eff6a_rle_crop_3891046602_0.png', 1373297026: '1753253426_3539446_1373296462_7a2d42387281d57cf7cf82a32d476f37_rle_crop_3891046619_0.png', 1373297028: '1753253426_3539446_1373296462_7a2d42387281d57cf7cf82a32d476f37_rle_crop_3891046620_0.png', 1373297448: '1753253486_3542920_1373296409_4b6d582150e779ab91fb6eda62f4a7b3_rle_crop_3891046414_0.png', 1373297967: '1753253605_3549293_1373296529_868480564e5ad803d416de5130d698a8_rle_crop_3891048278_0.png', 1373297968: '1753253605_3549293_1373296524_1622c129f597ac51bb7edbb3e5f0f558_rle_crop_3891048284_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/2a1b91e31fcfe718b7acbf1e3909658f_47576645.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/700049c90799a870be8c1668418d910c_56122066.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/30b904a28c505ebdd5ca5e3ded92c29a_55580703.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/0abb4dd65cf24344a3bc863ce0039edc_66996765.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/f788b6493f103a0a530fd996afd607fd_69009616.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/1a1a39cb338138cd34827bd0d52b0a3e_29602672.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/2a1b91e31fcfe718b7acbf1e3909658f_76271860.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/55d96f2a95d0a3a200340a3dd4c45ddb_22951820.png change filename to text .imagette252107151753253701/ imagette252107151753253701/1753253605_3549293_1373296529_868480564e5ad803d416de5130d698a8_rle_crop_3891048278_0.png.png imagette252107151753253701/1753253426_3539446_1373296475_bbb1b1e93ee9ba08281c19d48e544d08_rle_crop_3891046583_0.png.png imagette252107151753253701/1753253366_3537465_1373296409_4b6d582150e779ab91fb6eda62f4a7b3_rle_crop_3891046414_0.png.png imagette252107151753253701/1753253426_3539446_1373296475_bbb1b1e93ee9ba08281c19d48e544d08_rle_crop_3891046580_0.png.png imagette252107151753253701/1753253426_3539446_1373296462_7a2d42387281d57cf7cf82a32d476f37_rle_crop_3891046619_0.png.png imagette252107151753253701/1753253426_3539446_1373296462_7a2d42387281d57cf7cf82a32d476f37_rle_crop_3891046620_0.png.png imagette252107151753253701/1753253605_3549293_1373296524_1622c129f597ac51bb7edbb3e5f0f558_rle_crop_3891048284_0.png.png imagette252107151753253701/1753253486_3542920_1373296409_4b6d582150e779ab91fb6eda62f4a7b3_rle_crop_3891046414_0.png.png imagette252107151753253701/1753253426_3539446_1373296471_847c2d072c936fa39ab7b30c099eff6a_rle_crop_3891046602_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/4f7364a899e804bc6314726074c16508_60306975.png imagette252107151753253701 25210717 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=25210717 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373297970: '1753253605_3549293_1373296552_26833e226fb8dfa1dd0719a7ed1dff03_rle_crop_3891048211_0.png', 1373297971: '1753253605_3549293_1373296550_67915ab8517eccc641fdfcb26a51f4fc_rle_crop_3891048231_0.png', 1373297972: '1753253605_3549293_1373296531_cd506433b8355ca42878a8ea08b10f2a_rle_crop_3891048255_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/52750520e97167bbbd59da2d9d64f20b_26448631.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/27c46c063fc32de68dcbebf545c8feb3_26908740.png change filename to text .imagette252107171753253702/ imagette252107171753253702/1753253605_3549293_1373296550_67915ab8517eccc641fdfcb26a51f4fc_rle_crop_3891048231_0.png.png imagette252107171753253702/1753253605_3549293_1373296531_cd506433b8355ca42878a8ea08b10f2a_rle_crop_3891048255_0.png.png imagette252107171753253702/1753253605_3549293_1373296552_26833e226fb8dfa1dd0719a7ed1dff03_rle_crop_3891048211_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/aba93a7878ee3244509d62638d57577a_90494878.png imagette252107171753253702 25210722 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=25210722 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373297044: '1753253426_3539446_1373296478_8f30a56486493f40d61cc4763dbaa6af_rle_crop_3891046572_0.png', 1373297046: '1753253426_3539446_1373296471_847c2d072c936fa39ab7b30c099eff6a_rle_crop_3891046599_0.png', 1373297977: '1753253605_3549293_1373296550_67915ab8517eccc641fdfcb26a51f4fc_rle_crop_3891048228_0.png', 1373297978: '1753253605_3549293_1373296529_868480564e5ad803d416de5130d698a8_rle_crop_3891048272_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/24ce63eb6d4d3b07eb72b57e5675c617_33128816.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/a26609067cbe7373d749bb44a71fcadc_28667530.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/7713d2632aac7a079726bebeafeb1a1f_25636546.png change filename to text .imagette252107221753253702/ imagette252107221753253702/1753253426_3539446_1373296478_8f30a56486493f40d61cc4763dbaa6af_rle_crop_3891046572_0.png.png imagette252107221753253702/1753253605_3549293_1373296529_868480564e5ad803d416de5130d698a8_rle_crop_3891048272_0.png.png imagette252107221753253702/1753253426_3539446_1373296471_847c2d072c936fa39ab7b30c099eff6a_rle_crop_3891046599_0.png.png imagette252107221753253702/1753253605_3549293_1373296550_67915ab8517eccc641fdfcb26a51f4fc_rle_crop_3891048228_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/46e20005d607a7140b7a30f60f2e6a4c_59688905.png imagette252107221753253702 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25210669 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25210724,25210725,25210726,25210727,25210728,25210729,25210730,25210731,25210732,25210733,25210734,25210735?tags=environnement,mal_croppe,autre_refus,Teint_Dans_La_Masse,flou,Carton_gris,cartonnette,papier,metal,kraft,Carton_brun,plastique your option no_mail is active, we will not send the real mail to your client args[1373297987] : ('0.0653013139601466',) no score found for photo 1373297987 We are sending mail with results at report@fotonower.com args[1373297984] : ('0.0653013139601466',) no score found for photo 1373297984 We are sending mail with results at report@fotonower.com args[1373297982] : ('0.0653013139601466',) no score found for photo 1373297982 We are sending mail with results at report@fotonower.com args[1373297980] : ('0.0653013139601466',) no score found for photo 1373297980 We are sending mail with results at report@fotonower.com args[1373297974] : ('0.0653013139601466',) no score found for photo 1373297974 We are sending mail with results at report@fotonower.com args[1373297966] : ('0.0653013139601466',) no score found for photo 1373297966 We are sending mail with results at report@fotonower.com args[1373297827] : ('0.0653013139601466',) no score found for photo 1373297827 We are sending mail with results at report@fotonower.com args[1373297796] : ('0.0653013139601466',) no score found for photo 1373297796 We are sending mail with results at report@fotonower.com args[1373297758] : ('0.0653013139601466',) no score found for photo 1373297758 We are sending mail with results at report@fotonower.com args[1373297711] : ('0.0653013139601466',) no score found for photo 1373297711 We are sending mail with results at report@fotonower.com args[1373297667] : ('0.0653013139601466',) no score found for photo 1373297667 We are sending mail with results at report@fotonower.com args[1373297657] : ('0.0653013139601466',) no score found for photo 1373297657 We are sending mail with results at report@fotonower.com refus_total : 0.0653013139601466 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=25210669 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_P25210669_23-07-2025_08_55_01.pdf results_Auto_P25210669_23-07-2025_08_55_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25210669_23-07-2025_08_55_01.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','25210669','results_Auto_P25210669_23-07-2025_08_55_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25210669_23-07-2025_08_55_01.pdf','pdf','','0.17','0.0653013139601466') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25210669]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657] map_info['map_portfolio_photo'] : {25210669: [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657, 1373297496, 1373297472, 1373297458, 1373297456, 1373297453, 1373297450, 1373297211, 1373297180, 1373297143, 1373297099, 1373297048, 1373297014, 1373296649, 1373296645, 1373296640, 1373296639, 1373296635, 1373296624, 1373296597, 1373296594, 1373296592, 1373296589, 1373296579, 1373296573, 1373296552, 1373296550, 1373296534, 1373296531, 1373296529, 1373296524, 1373296482, 1373296478, 1373296475, 1373296473, 1373296471, 1373296462, 1373296409, 1373296405, 1373296403, 1373296395, 1373296385, 1373296382]} final : False mtd_id 4302 list_pids : [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657] 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, '3325103') ('4302', '25210669', '1373297987', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297984', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297982', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297980', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297974', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297966', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297827', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297796', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297758', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297711', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297667', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297657', None, None, None, None, None, '3325103') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '25210669', '1373297987', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297984', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297982', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297980', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297974', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297966', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297827', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297796', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297758', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297711', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297667', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297657', None, None, None, None, None, '3325103')] time used for this insertion : 0.03778886795043945 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.946953773498535 time spend to save output : 0.03805136680603027 total time spend for step 4 : 2.9850051403045654 step5:split_time_score Wed Jul 23 08:55:03 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 : ['25210669'] 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 : [('25210669',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25210669) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373297966: {'path': 'temp/1753253700_2402681_1373297966_d5677c5e6ac0a337bebe3d80f378f62b.jpg', 'extension': 'jpg'}, 1373297974: {'path': 'temp/1753253700_2402681_1373297974_ca6536e68c4255bb07e07cbaca466bca.jpg', 'extension': 'jpg'}, 1373297980: {'path': 'temp/1753253700_2402681_1373297980_81566b37fe62c7137874597b393a5757.jpg', 'extension': 'jpg'}, 1373297982: {'path': 'temp/1753253700_2402681_1373297982_8007b968374205fb01789b7224b31a65.jpg', 'extension': 'jpg'}, 1373297984: {'path': 'temp/1753253700_2402681_1373297984_d6a7a87e9975613f42ee3d21ed504913.jpg', 'extension': 'jpg'}, 1373297987: {'path': 'temp/1753253700_2402681_1373297987_a419092576fbac3c9b360de93fbb1e83.jpg', 'extension': 'jpg'}, 1373297758: {'path': 'temp/1753253700_2402681_1373297758_aa214f53bbf7df33ce08de19c1d699fa.jpg', 'extension': 'jpg'}, 1373297796: {'path': 'temp/1753253700_2402681_1373297796_eb44d3ae582a4b79e589d3df98838037.jpg', 'extension': 'jpg'}, 1373297827: {'path': 'temp/1753253700_2402681_1373297827_61ec6e6da85ea1415bb48ed2e72cf167.jpg', 'extension': 'jpg'}, 1373297657: {'path': 'temp/1753253700_2402681_1373297657_cc613f1356da12f3b5d60e71ddc55cf5.jpg', 'extension': 'jpg'}, 1373297667: {'path': 'temp/1753253700_2402681_1373297667_dadfa370117894ebf01bbfacccf81c4f.jpg', 'extension': 'jpg'}, 1373297711: {'path': 'temp/1753253700_2402681_1373297711_22c7720864bb13b90aef42689240a5f5.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 = 25210669; (('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 = 25210669 group by h (('08', 54),) 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=25210669 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 (25210669) 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 (25210669) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23072025 25210669 Nombre de photos uploadées : 54 / 23040 (0%) 23072025 25210669 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 23072025 25210669 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1373296409, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/4b6d582150e779ab91fb6eda62f4a7b3.jpg', 'username': None, 'uploaded_at': 1753253163, 'text': 'image_23072025_08_45_04_010141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1373296405, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/483fa5cbd5732a0bbe8f2f521b0ad3b5.jpg', 'username': None, 'uploaded_at': 1753253163, 'text': 'image_23072025_08_45_13_009127m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1373296403, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/24c917e4e8150aed8490781c6729ee80.jpg', 'username': None, 'uploaded_at': 1753253163, 'text': 'image_23072025_08_45_23_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1373296395, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/528e574a776854598129c8fa7adc7a64.jpg', 'username': None, 'uploaded_at': 1753253163, 'text': 'image_23072025_08_45_33_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 8.821487426757812e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025794506072998047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25210669, '2025-07-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1998971,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024410009384155273 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= 1998971 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25197613, 'dashboard_result_id': 12925646, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197982, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25197615, 'dashboard_result_id': 12925647, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198007, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25197619, 'dashboard_result_id': 12925648, '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_P25197619_23-07-2025_02_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197952, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25197657, 'dashboard_result_id': 12925649, '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_P25197657_23-07-2025_02_31_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197719, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25197783, 'dashboard_result_id': 12925650, '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_P25197783_23-07-2025_06_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197801, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25198343, 'dashboard_result_id': 12925651, '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_P25198343_23-07-2025_06_39_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198359, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25198784, 'dashboard_result_id': 12925652, '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_P25198784_23-07-2025_06_40_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198804, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25199165, 'dashboard_result_id': 12925653, '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_P25199165_23-07-2025_06_40_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199181, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25199515, 'dashboard_result_id': 12925654, '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_P25199515_23-07-2025_06_41_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199538, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25199911, 'dashboard_result_id': 12925655, '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_P25199911_23-07-2025_06_42_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199928, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25200162, 'dashboard_result_id': 12925656, '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_P25200162_23-07-2025_06_42_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200178, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25200433, 'dashboard_result_id': 12925657, '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_P25200433_23-07-2025_06_43_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200450, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25200785, 'dashboard_result_id': 12925658, '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_P25200785_23-07-2025_06_44_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200805, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25201192, 'dashboard_result_id': 12925659, '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_P25201192_23-07-2025_03_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201215, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25201529, 'dashboard_result_id': 12925660, '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_P25201529_23-07-2025_03_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201552, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25201927, 'dashboard_result_id': 12925661, '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_P25201927_23-07-2025_04_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201939, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25202358, 'dashboard_result_id': 12925662, '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_P25202358_23-07-2025_04_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25202377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202389, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25202820, 'dashboard_result_id': 12925663, '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_P25202820_23-07-2025_04_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25202839, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25203148, 'dashboard_result_id': 12925664, '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_P25203148_23-07-2025_04_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25203154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203160, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203165, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25203440, 'dashboard_result_id': 12925665, '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_P25203440_23-07-2025_05_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25203446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203457, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25203705, 'dashboard_result_id': 12925666, '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_P25203705_23-07-2025_05_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203725, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25204069, 'dashboard_result_id': 12925667, '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_P25204069_23-07-2025_05_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204085, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25204338, 'dashboard_result_id': 12925668, '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_P25204338_23-07-2025_06_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204360, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25204675, 'dashboard_result_id': 12925669, '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_P25204675_23-07-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204687, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25205033, 'dashboard_result_id': 12925670, '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_P25205033_23-07-2025_06_16_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205053, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25205470, 'dashboard_result_id': 12925671, '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_P25205470_23-07-2025_06_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205490, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25205786, 'dashboard_result_id': 12925672, '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_P25205786_23-07-2025_06_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25205828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205839, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25206122, 'dashboard_result_id': 12925673, '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_P25206122_23-07-2025_07_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206139, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25206518, 'dashboard_result_id': 12925674, '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_P25206518_23-07-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206545, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25206990, 'dashboard_result_id': 12925675, '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_P25206990_23-07-2025_07_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207008, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25207467, 'dashboard_result_id': 12925676, '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_P25207467_23-07-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25207513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25207520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25207521, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25208004, 'dashboard_result_id': 12925677, '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_P25208004_23-07-2025_08_00_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208017, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25208494, 'dashboard_result_id': 12925678, '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_P25208494_23-07-2025_08_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208511, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25209251, 'dashboard_result_id': 12925679, '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_P25209251_23-07-2025_08_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209272, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25209884, 'dashboard_result_id': 12925680, '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_P25209884_23-07-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209902, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2007677, 'mtr_portfolio_id': 25210669, 'dashboard_result_id': 12925681, '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_P25210669_23-07-2025_08_51_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25210712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25210713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25210714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25210715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25210716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25210717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25210718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25210719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25210720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25210721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25210722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25210723, '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 = 25197613 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25197613 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197613 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25197613%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197613 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197982, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 25197613 and dashboard_run_id = 2007677 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 = 25197615 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': 3323715, 'mtr_portfolio_id': 25197615, 'created_at': datetime.datetime(2025, 7, 23, 6, 37, 2), 'result': '0.00839406749354818', 'result_long': None, 'result_double': None}] Qualite : 0.00839406749354818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197615 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25197615%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197615 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198007, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 25197615 and dashboard_run_id = 2007677 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`=25197615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925647, 0.00839406749354818, "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198007, 'pht': 3726}, 'url_report': ''}") 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 = 25197619 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': 3323716, 'mtr_portfolio_id': 25197619, 'created_at': datetime.datetime(2025, 7, 23, 6, 37, 29), 'result': '0.056877370770490834', 'result_long': None, 'result_double': None}] Qualite : 0.056877370770490834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197619_23-07-2025_02_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197619 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_P25197619_23-07-2025_02_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197952, 'pht': 3726}}" where mtr_portfolio_id = 25197619 and dashboard_run_id = 2007677 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`=25197619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925648, 0.056877370770490834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197619_23-07-2025_02_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197952, '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 = 25197657 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25197657 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197657_23-07-2025_02_31_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197657 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_P25197657_23-07-2025_02_31_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197719, 'pht': 3726}}" where mtr_portfolio_id = 25197657 and dashboard_run_id = 2007677 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 = 25197783 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': 3323718, 'mtr_portfolio_id': 25197783, 'created_at': datetime.datetime(2025, 7, 23, 6, 38, 28), 'result': '0.02886245840882635', 'result_long': None, 'result_double': None}] Qualite : 0.02886245840882635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197783_23-07-2025_06_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197783 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_P25197783_23-07-2025_06_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197801, 'pht': 3726}}" where mtr_portfolio_id = 25197783 and dashboard_run_id = 2007677 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`=25197783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925650, 0.02886245840882635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197783_23-07-2025_06_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197801, '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 = 25198343 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': 3323719, 'mtr_portfolio_id': 25198343, 'created_at': datetime.datetime(2025, 7, 23, 6, 39, 30), 'result': '0.041808970347004655', 'result_long': None, 'result_double': None}] Qualite : 0.041808970347004655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25198343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198343_23-07-2025_06_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25198343 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_P25198343_23-07-2025_06_39_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198359, 'pht': 3726}}" where mtr_portfolio_id = 25198343 and dashboard_run_id = 2007677 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`=25198343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925651, 0.041808970347004655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198343_23-07-2025_06_39_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198359, '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 = 25198784 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': 3323720, 'mtr_portfolio_id': 25198784, 'created_at': datetime.datetime(2025, 7, 23, 6, 39, 59), 'result': '0.026347513587036516', 'result_long': None, 'result_double': None}] Qualite : 0.026347513587036516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25198784 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198784_23-07-2025_06_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25198784 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_P25198784_23-07-2025_06_40_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198804, 'pht': 3726}}" where mtr_portfolio_id = 25198784 and dashboard_run_id = 2007677 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`=25198784 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925652, 0.026347513587036516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198784_23-07-2025_06_40_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198804, '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 = 25199165 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': 3323721, 'mtr_portfolio_id': 25199165, 'created_at': datetime.datetime(2025, 7, 23, 6, 40, 28), 'result': '0.03960977473573029', 'result_long': None, 'result_double': None}] Qualite : 0.03960977473573029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25199165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199165_23-07-2025_06_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25199165 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_P25199165_23-07-2025_06_40_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199181, 'pht': 3726}}" where mtr_portfolio_id = 25199165 and dashboard_run_id = 2007677 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`=25199165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925653, 0.03960977473573029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199165_23-07-2025_06_40_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199181, '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 = 25199515 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': 3323722, 'mtr_portfolio_id': 25199515, 'created_at': datetime.datetime(2025, 7, 23, 8, 0, 29), 'result': '0.03859466299113504', 'result_long': None, 'result_double': None}] Qualite : 0.03859466299113504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25199515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199515_23-07-2025_08_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25199515 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_P25199515_23-07-2025_08_00_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199538, 'pht': 3726}}" where mtr_portfolio_id = 25199515 and dashboard_run_id = 2007677 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`=25199515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925654, 0.03859466299113504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199515_23-07-2025_08_00_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199538, '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 = 25199911 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': 3323723, 'mtr_portfolio_id': 25199911, 'created_at': datetime.datetime(2025, 7, 23, 6, 42), 'result': '0.05261409959447195', 'result_long': None, 'result_double': None}] Qualite : 0.05261409959447195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25199911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199911_23-07-2025_06_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25199911 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_P25199911_23-07-2025_06_42_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199928, 'pht': 3726}}" where mtr_portfolio_id = 25199911 and dashboard_run_id = 2007677 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`=25199911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925655, 0.05261409959447195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199911_23-07-2025_06_42_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199928, '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 = 25200162 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': 3323724, 'mtr_portfolio_id': 25200162, 'created_at': datetime.datetime(2025, 7, 23, 6, 42, 31), 'result': '0.04392057109892702', 'result_long': None, 'result_double': None}] Qualite : 0.04392057109892702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25200162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200162_23-07-2025_06_42_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25200162 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_P25200162_23-07-2025_06_42_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200178, 'pht': 3726}}" where mtr_portfolio_id = 25200162 and dashboard_run_id = 2007677 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`=25200162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925656, 0.04392057109892702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200162_23-07-2025_06_42_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200178, '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 = 25200433 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': 3323725, 'mtr_portfolio_id': 25200433, 'created_at': datetime.datetime(2025, 7, 23, 6, 43, 27), 'result': '0.031179407153532762', 'result_long': None, 'result_double': None}] Qualite : 0.031179407153532762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25200433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200433_23-07-2025_06_43_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25200433 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_P25200433_23-07-2025_06_43_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200450, 'pht': 3726}}" where mtr_portfolio_id = 25200433 and dashboard_run_id = 2007677 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`=25200433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925657, 0.031179407153532762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200433_23-07-2025_06_43_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200450, '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 = 25200785 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': 3323726, 'mtr_portfolio_id': 25200785, 'created_at': datetime.datetime(2025, 7, 23, 6, 43, 58), 'result': '0.051755635640774206', 'result_long': None, 'result_double': None}] Qualite : 0.051755635640774206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25200785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200785_23-07-2025_06_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25200785 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_P25200785_23-07-2025_06_44_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200805, 'pht': 3726}}" where mtr_portfolio_id = 25200785 and dashboard_run_id = 2007677 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`=25200785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925658, 0.051755635640774206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200785_23-07-2025_06_44_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200805, '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 = 25201192 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': 3322978, 'mtr_portfolio_id': 25201192, 'created_at': datetime.datetime(2025, 7, 23, 3, 33, 1), 'result': '0.05648432438382716', 'result_long': None, 'result_double': None}] Qualite : 0.05648432438382716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25201192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201192_23-07-2025_03_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25201192 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_P25201192_23-07-2025_03_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201215, 'pht': 3726}}" where mtr_portfolio_id = 25201192 and dashboard_run_id = 2007677 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`=25201192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925659, 0.05648432438382716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201192_23-07-2025_03_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201215, '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 = 25201529 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': 3323063, 'mtr_portfolio_id': 25201529, 'created_at': datetime.datetime(2025, 7, 23, 3, 46, 58), 'result': '0.05412303578779002', 'result_long': None, 'result_double': None}] Qualite : 0.05412303578779002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25201529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201529_23-07-2025_03_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25201529 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_P25201529_23-07-2025_03_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201552, 'pht': 3726}}" where mtr_portfolio_id = 25201529 and dashboard_run_id = 2007677 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`=25201529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925660, 0.05412303578779002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201529_23-07-2025_03_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201552, '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 = 25201927 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': 3323150, 'mtr_portfolio_id': 25201927, 'created_at': datetime.datetime(2025, 7, 23, 4, 1, 1), 'result': '0.067160575223373', 'result_long': None, 'result_double': None}] Qualite : 0.067160575223373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25201927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201927_23-07-2025_04_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25201927 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_P25201927_23-07-2025_04_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201939, 'pht': 3726}}" where mtr_portfolio_id = 25201927 and dashboard_run_id = 2007677 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`=25201927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925661, 0.067160575223373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201927_23-07-2025_04_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201939, '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 = 25202358 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': 3323230, 'mtr_portfolio_id': 25202358, 'created_at': datetime.datetime(2025, 7, 23, 4, 16, 58), 'result': '0.0588588347259472', 'result_long': None, 'result_double': None}] Qualite : 0.0588588347259472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25202358 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202358_23-07-2025_04_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25202358 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_P25202358_23-07-2025_04_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25202377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202389, 'pht': 3726}}" where mtr_portfolio_id = 25202358 and dashboard_run_id = 2007677 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`=25202358 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925662, 0.0588588347259472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202358_23-07-2025_04_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25202377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202389, '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 = 25202820 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': 3323286, 'mtr_portfolio_id': 25202820, 'created_at': datetime.datetime(2025, 7, 23, 4, 30, 56), 'result': '0.030636916095391813', 'result_long': None, 'result_double': None}] Qualite : 0.030636916095391813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25202820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202820_23-07-2025_04_30_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25202820 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_P25202820_23-07-2025_04_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25202839, 'pht': 3726}}" where mtr_portfolio_id = 25202820 and dashboard_run_id = 2007677 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`=25202820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925663, 0.030636916095391813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202820_23-07-2025_04_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25202839, '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 = 25203148 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': 3323342, 'mtr_portfolio_id': 25203148, 'created_at': datetime.datetime(2025, 7, 23, 4, 46, 30), 'result': '0.04546662090987921', 'result_long': None, 'result_double': None}] Qualite : 0.04546662090987921 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25203148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203148_23-07-2025_04_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25203148 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_P25203148_23-07-2025_04_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25203154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203160, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203165, 'pht': 3726}}" where mtr_portfolio_id = 25203148 and dashboard_run_id = 2007677 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`=25203148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925664, 0.04546662090987921, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203148_23-07-2025_04_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25203154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203160, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203165, '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 = 25203440 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': 3323427, 'mtr_portfolio_id': 25203440, 'created_at': datetime.datetime(2025, 7, 23, 5, 0, 32), 'result': '0.034047892328201164', 'result_long': None, 'result_double': None}] Qualite : 0.034047892328201164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25203440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203440_23-07-2025_05_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25203440 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_P25203440_23-07-2025_05_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25203446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203457, 'pht': 3726}}" where mtr_portfolio_id = 25203440 and dashboard_run_id = 2007677 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`=25203440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925665, 0.034047892328201164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203440_23-07-2025_05_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25203446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203457, '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 = 25203705 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25203705 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25203705 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25203705 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25203705 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3323504, 'mtr_portfolio_id': 25203705, 'created_at': datetime.datetime(2025, 7, 23, 5, 17), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25203705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203705_23-07-2025_05_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25203705 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_P25203705_23-07-2025_05_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203725, 'pht': 3726}}" where mtr_portfolio_id = 25203705 and dashboard_run_id = 2007677 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`=25203705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925666, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203705_23-07-2025_05_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203725, '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 = 25204069 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': 3323569, 'mtr_portfolio_id': 25204069, 'created_at': datetime.datetime(2025, 7, 23, 5, 33, 1), 'result': '0.037719252713798175', 'result_long': None, 'result_double': None}] Qualite : 0.037719252713798175 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25204069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204069_23-07-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25204069 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_P25204069_23-07-2025_05_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204085, 'pht': 3726}}" where mtr_portfolio_id = 25204069 and dashboard_run_id = 2007677 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`=25204069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925667, 0.037719252713798175, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204069_23-07-2025_05_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204085, '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 = 25204338 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': 3323609, 'mtr_portfolio_id': 25204338, 'created_at': datetime.datetime(2025, 7, 23, 6, 19), 'result': '0.036372019054466714', 'result_long': None, 'result_double': None}] Qualite : 0.036372019054466714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25204338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204338_23-07-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25204338 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_P25204338_23-07-2025_06_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204360, 'pht': 3726}}" where mtr_portfolio_id = 25204338 and dashboard_run_id = 2007677 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`=25204338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925668, 0.036372019054466714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204338_23-07-2025_06_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204360, '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 = 25204675 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': 3323828, 'mtr_portfolio_id': 25204675, 'created_at': datetime.datetime(2025, 7, 23, 6, 0, 58), 'result': '0.043333880846648694', 'result_long': None, 'result_double': None}] Qualite : 0.043333880846648694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25204675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204675_23-07-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25204675 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_P25204675_23-07-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204687, 'pht': 3726}}" where mtr_portfolio_id = 25204675 and dashboard_run_id = 2007677 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`=25204675 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925669, 0.043333880846648694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204675_23-07-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204687, '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 = 25205033 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': 3323904, 'mtr_portfolio_id': 25205033, 'created_at': datetime.datetime(2025, 7, 23, 6, 16, 31), 'result': '0.04369284895710229', 'result_long': None, 'result_double': None}] Qualite : 0.04369284895710229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25205033 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205033_23-07-2025_06_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25205033 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_P25205033_23-07-2025_06_16_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205053, 'pht': 3726}}" where mtr_portfolio_id = 25205033 and dashboard_run_id = 2007677 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`=25205033 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925670, 0.04369284895710229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205033_23-07-2025_06_16_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205053, '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 = 25205470 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': 3323965, 'mtr_portfolio_id': 25205470, 'created_at': datetime.datetime(2025, 7, 23, 6, 30, 58), 'result': '0.037566501258232576', 'result_long': None, 'result_double': None}] Qualite : 0.037566501258232576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25205470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205470_23-07-2025_06_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25205470 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_P25205470_23-07-2025_06_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205490, 'pht': 3726}}" where mtr_portfolio_id = 25205470 and dashboard_run_id = 2007677 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`=25205470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925671, 0.037566501258232576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205470_23-07-2025_06_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205490, '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 = 25205786 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': 3324023, 'mtr_portfolio_id': 25205786, 'created_at': datetime.datetime(2025, 7, 23, 6, 46, 29), 'result': '0.020481238383310903', 'result_long': None, 'result_double': None}] Qualite : 0.020481238383310903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25205786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205786_23-07-2025_06_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25205786 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_P25205786_23-07-2025_06_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25205828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205839, 'pht': 3726}}" where mtr_portfolio_id = 25205786 and dashboard_run_id = 2007677 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`=25205786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925672, 0.020481238383310903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205786_23-07-2025_06_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25205828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205839, '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 = 25206122 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': 3324089, 'mtr_portfolio_id': 25206122, 'created_at': datetime.datetime(2025, 7, 23, 7, 0, 59), 'result': '0.05796048878129634', 'result_long': None, 'result_double': None}] Qualite : 0.05796048878129634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25206122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206122_23-07-2025_07_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25206122 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_P25206122_23-07-2025_07_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206139, 'pht': 3726}}" where mtr_portfolio_id = 25206122 and dashboard_run_id = 2007677 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`=25206122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925673, 0.05796048878129634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206122_23-07-2025_07_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206139, '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 = 25206518 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': 3324164, 'mtr_portfolio_id': 25206518, 'created_at': datetime.datetime(2025, 7, 23, 7, 16, 58), 'result': '0.07099667329341938', 'result_long': None, 'result_double': None}] Qualite : 0.07099667329341938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25206518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206518_23-07-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25206518 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_P25206518_23-07-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206545, 'pht': 3726}}" where mtr_portfolio_id = 25206518 and dashboard_run_id = 2007677 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`=25206518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925674, 0.07099667329341938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206518_23-07-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206545, '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 = 25206990 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': 3324258, 'mtr_portfolio_id': 25206990, 'created_at': datetime.datetime(2025, 7, 23, 7, 33), 'result': '0.04000680346490748', 'result_long': None, 'result_double': None}] Qualite : 0.04000680346490748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25206990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206990_23-07-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25206990 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_P25206990_23-07-2025_07_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207008, 'pht': 3726}}" where mtr_portfolio_id = 25206990 and dashboard_run_id = 2007677 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`=25206990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925675, 0.04000680346490748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206990_23-07-2025_07_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207008, '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 = 25207467 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': 3324327, 'mtr_portfolio_id': 25207467, 'created_at': datetime.datetime(2025, 7, 23, 7, 46, 59), 'result': '0.06197151389701075', 'result_long': None, 'result_double': None}] Qualite : 0.06197151389701075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25207467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25207467_23-07-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25207467 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_P25207467_23-07-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25207513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25207520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25207521, 'pht': 3726}}" where mtr_portfolio_id = 25207467 and dashboard_run_id = 2007677 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`=25207467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925676, 0.06197151389701075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25207467_23-07-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25207513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25207520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25207521, '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 = 25208004 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': 3324425, 'mtr_portfolio_id': 25208004, 'created_at': datetime.datetime(2025, 7, 23, 8, 0, 59), 'result': '0.045073214150807984', 'result_long': None, 'result_double': None}] Qualite : 0.045073214150807984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25208004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208004_23-07-2025_08_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25208004 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_P25208004_23-07-2025_08_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208017, 'pht': 3726}}" where mtr_portfolio_id = 25208004 and dashboard_run_id = 2007677 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`=25208004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925677, 0.045073214150807984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208004_23-07-2025_08_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208017, '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 = 25208494 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': 3324523, 'mtr_portfolio_id': 25208494, 'created_at': datetime.datetime(2025, 7, 23, 8, 16, 58), 'result': '0.039640742541190085', 'result_long': None, 'result_double': None}] Qualite : 0.039640742541190085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25208494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208494_23-07-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25208494 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_P25208494_23-07-2025_08_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208511, 'pht': 3726}}" where mtr_portfolio_id = 25208494 and dashboard_run_id = 2007679 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`=25208494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925678, 0.039640742541190085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208494_23-07-2025_08_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208511, '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 = 25209251 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': 3324702, 'mtr_portfolio_id': 25209251, 'created_at': datetime.datetime(2025, 7, 23, 8, 30, 58), 'result': '0.03862680704665533', 'result_long': None, 'result_double': None}] Qualite : 0.03862680704665533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25209251 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209251_23-07-2025_08_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25209251 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_P25209251_23-07-2025_08_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209272, 'pht': 3726}}" where mtr_portfolio_id = 25209251 and dashboard_run_id = 2007679 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`=25209251 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925679, 0.03862680704665533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209251_23-07-2025_08_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209272, '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 = 25209884 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': 3324906, 'mtr_portfolio_id': 25209884, 'created_at': datetime.datetime(2025, 7, 23, 8, 46, 30), 'result': '0.041345462400560466', 'result_long': None, 'result_double': None}] Qualite : 0.041345462400560466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25209884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209884_23-07-2025_08_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25209884 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_P25209884_23-07-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209902, 'pht': 3726}}" where mtr_portfolio_id = 25209884 and dashboard_run_id = 2007679 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`=25209884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925680, 0.041345462400560466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209884_23-07-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209902, '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 = 25210669 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': 3325103, 'mtr_portfolio_id': 25210669, 'created_at': datetime.datetime(2025, 7, 23, 8, 55), 'result': '0.0653013139601466', 'result_long': None, 'result_double': None}] Qualite : 0.0653013139601466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25210669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25210669_23-07-2025_08_55_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25210669 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_P25210669_23-07-2025_08_55_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25210712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25210713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25210714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25210715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25210716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25210717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25210718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25210719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25210720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25210721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25210722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25210723, 'pht': 3726}}" where mtr_portfolio_id = 25210669 and dashboard_run_id = 2007679 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`=25210669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12925681, 0.0653013139601466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25210669_23-07-2025_08_55_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25210712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25210713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25210714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25210715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25210716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25210717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25210718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25210719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25210720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25210721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25210722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25210723, '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 (25197613,25197615,25197619,25197657,25197783,25198343,25198784,25199165,25199515,25199911,25200162,25200433,25200785,25201192,25201529,25201927,25202358,25202820,25203148,25203440,25203705,25204069,25204338,25204675,25205033,25205470,25205786,25206122,25206518,25206990,25207467,25208004,25208494,25209251,25209884,25210669) result : ((1373217415,), (1373217416,), (1373217419,), (1373217422,), (1373217428,), (1373217434,), (1373217436,), (1373217439,), (1373217441,), (1373217446,), (1373217449,), (1373217453,), (1373217457,), (1373217462,), (1373217596,), (1373217833,), (1373218054,), (1373218126,), (1373218320,), (1373217468,), (1373217469,), (1373217472,), (1373217478,), (1373217480,), (1373217486,), (1373217487,), (1373217490,), (1373217495,), (1373217499,), (1373217504,), (1373217506,), (1373217509,), (1373217510,), (1373217516,), (1373217592,), (1373217840,), (1373218072,), (1373218163,), (1373218297,), (1373217520,), (1373217526,), (1373217530,), (1373217531,), (1373217538,), (1373217543,), (1373217545,), (1373217548,), (1373217550,), (1373217553,), (1373217554,), (1373217560,), (1373217562,), (1373217566,), (1373217569,), (1373217624,), (1373217875,), (1373218078,), (1373218272,), (1373218344,), (1373234778,), (1373217741,), (1373217828,), (1373218043,), (1373218129,), (1373218279,), (1373218359,), (1373218425,), (1373218426,), (1373218427,), (1373218430,), (1373218437,), (1373218840,), (1373234776,), (1373218854,), (1373218893,), (1373218897,), (1373218901,), (1373218904,), (1373218907,), (1373218914,), (1373218944,), (1373218948,), (1373218951,), (1373218954,), (1373218956,), (1373218959,), (1373219138,), (1373219163,), (1373219211,), (1373219263,), (1373219311,), (1373219364,), (1373219907,), (1373220252,), (1373220270,), (1373220298,), (1373220325,), (1373220351,), (1373220378,), (1373220599,), (1373220631,), (1373220658,), (1373220684,), (1373220708,), (1373220734,), (1373221226,), (1373221254,), (1373221282,), (1373221318,), (1373221355,), (1373221403,), (1373221814,), (1373221845,), (1373221866,), (1373221868,), (1373221870,), (1373221871,), (1373222037,), (1373222052,), (1373222056,), (1373222058,), (1373222060,), (1373222063,), (1373222089,), (1373222093,), (1373222096,), (1373222100,), (1373222104,), (1373222106,), (1373222123,), (1373222127,), (1373222132,), (1373222135,), (1373222137,), (1373222139,), (1373222158,), (1373222161,), (1373222163,), (1373222165,), (1373222167,), (1373222170,), (1373222199,), (1373222205,), (1373222210,), (1373222214,), (1373222216,), (1373222218,), (1373222231,), (1373222256,), (1373222259,), (1373222263,), (1373222266,), (1373222269,), (1373222271,), (1373222292,), (1373222296,), (1373222299,), (1373222302,), (1373222304,), (1373222306,), (1373222336,), (1373222346,), (1373222349,), (1373222352,), (1373222354,), (1373222355,), (1373222376,), (1373222379,), (1373222382,), (1373222384,), (1373222386,), (1373222388,), (1373222469,), (1373222498,), (1373222526,), (1373222555,), (1373222586,), (1373222621,), (1373222898,), (1373222926,), (1373222955,), (1373222982,), (1373223006,), (1373223032,), (1373223263,), (1373223265,), (1373223267,), (1373223268,), (1373223270,), (1373223273,), (1373223563,), (1373223642,), (1373223720,), (1373223779,), (1373223828,), (1373223875,), (1373224558,), (1373224611,), (1373224666,), (1373224717,), (1373224765,), (1373224814,), (1373225228,), (1373225282,), (1373225333,), (1373225386,), (1373225436,), (1373225566,), (1373226091,), (1373226258,), (1373226260,), (1373226263,), (1373226264,), (1373226265,), (1373226268,), (1373226504,), (1373226564,), (1373226612,), (1373226660,), (1373226707,), (1373226763,), (1373227293,), (1373227317,), (1373227340,), (1373227371,), (1373227448,), (1373227481,), (1373227698,), (1373227730,), (1373227757,), (1373227783,), (1373227806,), (1373227853,), (1373228139,), (1373228147,), (1373228152,), (1373228154,), (1373228169,), (1373228183,), (1373228223,), (1373228227,), (1373228231,), (1373228235,), (1373228240,), (1373228244,), (1373228507,), (1373228521,), (1373228543,), (1373228560,), (1373228562,), (1373228563,), (1373228677,), (1373228711,), (1373228741,), (1373228762,), (1373228785,), (1373228809,), (1373229086,), (1373229300,), (1373229334,), (1373229337,), (1373229340,), (1373229351,), (1373229382,), (1373229465,), (1373229497,), (1373229528,), (1373229554,), (1373229579,), (1373229604,), (1373230037,), (1373230081,), (1373230122,), (1373230166,), (1373230211,), (1373230257,), (1373230492,), (1373230513,), (1373230541,), (1373230551,), (1373230560,), (1373230594,), (1373230885,), (1373230919,), (1373230951,), (1373230976,), (1373231000,), (1373231026,), (1373231383,), (1373231411,), (1373231464,), (1373231505,), (1373231533,), (1373231562,), (1373231879,), (1373231906,), (1373231944,), (1373231949,), (1373231971,), (1373231998,), (1373232358,), (1373232406,), (1373232459,), (1373232501,), (1373232528,), (1373232565,), (1373232717,), (1373232744,), (1373232752,), (1373232756,), (1373232778,), (1373232806,), (1373232831,), (1373232861,), (1373232862,), (1373232863,), (1373232864,), (1373232865,), (1373232867,), (1373232886,), (1373232889,), (1373232893,), (1373232896,), (1373232897,), (1373232900,), (1373233001,), (1373233052,), (1373233108,), (1373233166,), (1373233223,), (1373233280,), (1373233878,), (1373234222,), (1373234223,), (1373234228,), (1373234240,), (1373234246,), (1373234248,), (1373234282,), (1373234285,), (1373234308,), (1373234347,), (1373234374,), (1373234402,), (1373234673,), (1373234678,), (1373234684,), (1373234711,), (1373234722,), (1373234738,), (1373234784,), (1373234788,), (1373234791,), (1373234796,), (1373234797,), (1373234802,), (1373234813,), (1373234816,), (1373234818,), (1373234820,), (1373234822,), (1373234824,), (1373234848,), (1373234852,), (1373234855,), (1373234857,), (1373234860,), (1373234865,), (1373234891,), (1373234894,), (1373234897,), (1373234899,), (1373234900,), (1373234901,), (1373234927,), (1373234929,), (1373234932,), (1373234934,), (1373234935,), (1373234936,), (1373234955,), (1373234959,), (1373234963,), (1373234966,), (1373234968,), (1373234996,), (1373236879,), (1373237558,), (1373237572,), (1373237576,), (1373237594,), (1373237625,), (1373237717,), (1373237742,), (1373237770,), (1373237797,), (1373237823,), (1373237857,), (1373238159,), (1373238193,), (1373238229,), (1373238266,), (1373238294,), (1373238321,), (1373238552,), (1373238555,), (1373238573,), (1373238601,), (1373238620,), (1373238625,), (1373238683,), (1373238707,), (1373238709,), (1373238712,), (1373238715,), (1373238718,), (1373238720,), (1373238732,), (1373238736,), (1373238740,), (1373238745,), (1373238747,), (1373238750,), (1373238774,), (1373238779,), (1373238784,), (1373238788,), (1373238790,), (1373238793,), (1373238829,), (1373238867,), (1373238900,), (1373238904,), (1373238907,), (1373238910,), (1373238914,), (1373238918,), (1373238956,), (1373238963,), (1373238966,), (1373238968,), (1373238972,), (1373238974,), (1373239085,), (1373239112,), (1373239124,), (1373239127,), (1373239130,), (1373239131,), (1373239161,), (1373239165,), (1373239167,), (1373239170,), (1373239172,), (1373239174,), (1373239196,), (1373256806,), (1373256852,), (1373239224,), (1373239229,), (1373239232,), (1373239235,), (1373239237,), (1373239240,), (1373239321,), (1373239355,), (1373239391,), (1373239403,), (1373239406,), (1373239424,), (1373239503,), (1373239505,), (1373239513,), (1373239525,), (1373239527,), (1373239529,), (1373239552,), (1373239554,), (1373239557,), (1373239560,), (1373239564,), (1373239567,), (1373239595,), (1373239598,), (1373239602,), (1373239607,), (1373239608,), (1373239610,), (1373239628,), (1373239631,), (1373239634,), (1373239635,), (1373239637,), (1373239638,), (1373239829,), (1373239859,), (1373239892,), (1373239921,), (1373239966,), (1373240018,), (1373240158,), (1373240187,), (1373240192,), (1373240194,), (1373240215,), (1373240216,), (1373240257,), (1373240260,), (1373240263,), (1373240264,), (1373240265,), (1373240266,), (1373240284,), (1373240312,), (1373240316,), (1373240319,), (1373240322,), (1373240323,), (1373240325,), (1373240341,), (1373240344,), (1373240347,), (1373240350,), (1373240353,), (1373240357,), (1373240418,), (1373240423,), (1373240424,), (1373240427,), (1373240430,), (1373240434,), (1373240458,), (1373240460,), (1373240463,), (1373240465,), (1373240467,), (1373240470,), (1373240501,), (1373240505,), (1373240508,), (1373240510,), (1373240511,), (1373240514,), (1373240549,), (1373240551,), (1373240553,), (1373240554,), (1373240556,), (1373240558,), (1373240584,), (1373240617,), (1373240618,), (1373240620,), (1373240622,), (1373240624,), (1373240627,), (1373240656,), (1373240658,), (1373240660,), (1373240662,), (1373240663,), (1373240666,), (1373240689,), (1373240691,), (1373240693,), (1373240697,), (1373240699,), (1373240701,), (1373240732,), (1373240762,), (1373240765,), (1373240767,), (1373240768,), (1373240769,), (1373240772,), (1373240796,), (1373240799,), (1373240802,), (1373240805,), (1373240807,), (1373240809,), (1373240855,), (1373240876,), (1373240885,), (1373240894,), (1373240899,), (1373240901,), (1373240966,), (1373240967,), (1373240982,), (1373240988,), (1373240989,), (1373240991,), (1373241026,), (1373241029,), (1373241032,), (1373241034,), (1373241037,), (1373241040,), (1373241067,), (1373241071,), (1373241076,), (1373241078,), (1373241080,), (1373241082,), (1373241108,), (1373241140,), (1373241144,), (1373241148,), (1373241151,), (1373241154,), (1373241157,), (1373241191,), (1373241209,), (1373241211,), (1373241213,), (1373241214,), (1373241215,), (1373241217,), (1373241226,), (1373241230,), (1373241235,), (1373241238,), (1373241243,), (1373241247,), (1373241405,), (1373241437,), (1373241464,), (1373241493,), (1373241519,), (1373241547,), (1373241644,), (1373241668,), (1373241671,), (1373241675,), (1373241686,), (1373241688,), (1373241911,), (1373241948,), (1373241987,), (1373241989,), (1373241990,), (1373242004,), (1373242072,), (1373242076,), (1373242080,), (1373242083,), (1373242087,), (1373242090,), (1373242114,), (1373242118,), (1373242121,), (1373242124,), (1373242128,), (1373242130,), (1373242149,), (1373242153,), (1373242157,), (1373242159,), (1373242160,), (1373242162,), (1373242179,), (1373242189,), (1373242194,), (1373242197,), (1373242200,), (1373242203,), (1373242223,), (1373242580,), (1373242589,), (1373242596,), (1373242602,), (1373242604,), (1373242607,), (1373242620,), (1373242624,), (1373242629,), (1373242631,), (1373242634,), (1373242637,), (1373243156,), (1373243246,), (1373243323,), (1373243394,), (1373243466,), (1373243538,), (1373244656,), (1373244855,), (1373244858,), (1373244861,), (1373244863,), (1373244867,), (1373244891,), (1373244895,), (1373244899,), (1373244902,), (1373244905,), (1373244908,), (1373244925,), (1373245100,), (1373245667,), (1373245726,), (1373245793,), (1373245835,), (1373245885,), (1373245939,), (1373246478,), (1373246948,), (1373247018,), (1373247089,), (1373247139,), (1373247182,), (1373247215,), (1373247519,), (1373247525,), (1373247528,), (1373247530,), (1373247537,), (1373247563,), (1373247758,), (1373247762,), (1373247768,), (1373247771,), (1373247773,), (1373247775,), (1373247798,), (1373247799,), (1373247801,), (1373247802,), (1373247803,), (1373247806,), (1373247833,), (1373247836,), (1373247838,), (1373247841,), (1373247844,), (1373247847,), (1373247874,), (1373247879,), (1373247884,), (1373247887,), (1373247889,), (1373247891,), (1373247906,), (1373247910,), (1373247913,), (1373247916,), (1373247918,), (1373247920,), (1373247941,), (1373247945,), (1373247948,), (1373247949,), (1373247952,), (1373247955,), (1373247973,), (1373248009,), (1373248022,), (1373248030,), (1373248031,), (1373248033,), (1373248034,), (1373248053,), (1373248086,), (1373248103,), (1373248106,), (1373248107,), (1373248109,), (1373248112,), (1373248152,), (1373248177,), (1373248205,), (1373248228,), (1373248250,), (1373248293,), (1373248797,), (1373248841,), (1373248890,), (1373248939,), (1373248986,), (1373249032,), (1373249420,), (1373249466,), (1373249511,), (1373249535,), (1373249561,), (1373249587,), (1373249807,), (1373249824,), (1373249826,), (1373249840,), (1373249841,), (1373249842,), (1373249863,), (1373249892,), (1373249896,), (1373249905,), (1373249908,), (1373249913,), (1373249917,), (1373249935,), (1373249952,), (1373249961,), (1373249964,), (1373249965,), (1373249966,), (1373249969,), (1373249983,), (1373249987,), (1373249991,), (1373249993,), (1373249996,), (1373249998,), (1373250017,), (1373250022,), (1373250028,), (1373250031,), (1373250034,), (1373250037,), (1373250063,), (1373250080,), (1373250094,), (1373250103,), (1373250109,), (1373250113,), (1373250118,), (1373250133,), (1373250138,), (1373250142,), (1373250146,), (1373250150,), (1373250153,), (1373250173,), (1373250180,), (1373250192,), (1373250198,), (1373250201,), (1373250206,), (1373250229,), (1373250232,), (1373250235,), (1373250237,), (1373250239,), (1373250241,), (1373250282,), (1373250284,), (1373250287,), (1373250290,), (1373250292,), (1373250295,), (1373250318,), (1373250421,), (1373250437,), (1373250443,), (1373250446,), (1373250447,), (1373250464,), (1373250524,), (1373250527,), (1373250529,), (1373250532,), (1373250534,), (1373250537,), (1373250798,), (1373250834,), (1373250865,), (1373250889,), (1373250913,), (1373250946,), (1373251329,), (1373251380,), (1373251428,), (1373251489,), (1373251530,), (1373251575,), (1373251894,), (1373251957,), (1373252015,), (1373252056,), (1373252093,), (1373252125,), (1373252441,), (1373252444,), (1373252453,), (1373252467,), (1373252486,), (1373252510,), (1373252742,), (1373252757,), (1373252765,), (1373252768,), (1373252770,), (1373252772,), (1373252791,), (1373252795,), (1373252799,), (1373252803,), (1373252805,), (1373252808,), (1373252822,), (1373252831,), (1373252842,), (1373252850,), (1373252854,), (1373252857,), (1373252881,), (1373252910,), (1373252918,), (1373252925,), (1373252929,), (1373252932,), (1373252935,), (1373252973,), (1373252975,), (1373252978,), (1373252980,), (1373252982,), (1373252986,), (1373253115,), (1373253140,), (1373253165,), (1373253189,), (1373253213,), (1373253240,), (1373253407,), (1373253425,), (1373253429,), (1373253440,), (1373253463,), (1373253486,), (1373253738,), (1373253764,), (1373253799,), (1373253841,), (1373253870,), (1373253899,), (1373254244,), (1373254841,), (1373254845,), (1373254849,), (1373254858,), (1373254866,), (1373254891,), (1373255093,), (1373255558,), (1373255582,), (1373255608,), (1373255634,), (1373255667,), (1373255696,), (1373255856,), (1373255980,), (1373255983,), (1373255985,), (1373255987,), (1373255988,), (1373255990,), (1373256016,), (1373256020,), (1373256023,), (1373256026,), (1373256029,), (1373256033,), (1373256052,), (1373256059,), (1373256068,), (1373256072,), (1373256075,), (1373256080,), (1373256766,), (1373257757,), (1373258372,), (1373258399,), (1373258433,), (1373258442,), (1373258471,), (1373258502,), (1373258771,), (1373258776,), (1373258788,), (1373258801,), (1373258808,), (1373258813,), (1373258889,), (1373258905,), (1373258909,), (1373258913,), (1373258915,), (1373258919,), (1373258937,), (1373258963,), (1373258966,), (1373258975,), (1373258988,), (1373258992,), (1373258994,), (1373259020,), (1373259023,), (1373259025,), (1373259026,), (1373259027,), (1373259030,), (1373259059,), (1373259062,), (1373259066,), (1373259068,), (1373259070,), (1373259072,), (1373259117,), (1373259120,), (1373259123,), (1373259125,), (1373259128,), (1373259130,), (1373259326,), (1373259387,), (1373259444,), (1373259502,), (1373259545,), (1373259592,), (1373260009,), (1373260033,), (1373260080,), (1373260117,), (1373260150,), (1373260181,), (1373260294,), (1373260305,), (1373260315,), (1373260318,), (1373260321,), (1373260336,), (1373260571,), (1373260699,), (1373260705,), (1373260709,), (1373260713,), (1373260716,), (1373260724,), (1373260998,), (1373261032,), (1373261040,), (1373261044,), (1373261046,), (1373261047,), (1373261049,), (1373261101,), (1373261106,), (1373261110,), (1373261113,), (1373261115,), (1373261117,), (1373261146,), (1373261184,), (1373261217,), (1373261243,), (1373261268,), (1373261290,), (1373261428,), (1373261457,), (1373261464,), (1373261470,), (1373261472,), (1373261475,), (1373261477,), (1373261592,), (1373261867,), (1373261880,), (1373261894,), (1373261897,), (1373261898,), (1373261905,), (1373261974,), (1373261978,), (1373261982,), (1373261985,), (1373261989,), (1373261992,), (1373262016,), (1373262020,), (1373262024,), (1373262025,), (1373262028,), (1373262031,), (1373262049,), (1373262054,), (1373262059,), (1373262063,), (1373262067,), (1373262076,), (1373262100,), (1373262132,), (1373262185,), (1373262190,), (1373262194,), (1373262197,), (1373262202,), (1373262205,), (1373262222,), (1373262226,), (1373262231,), (1373262235,), (1373262237,), (1373262240,), (1373262276,), (1373262279,), (1373262282,), (1373262284,), (1373262286,), (1373262289,), (1373262319,), (1373262323,), (1373262327,), (1373262329,), (1373262330,), (1373262332,), (1373262356,), (1373262361,), (1373262365,), (1373262369,), (1373262373,), (1373262376,), (1373262401,), (1373262404,), (1373262406,), (1373262408,), (1373262409,), (1373262411,), (1373262434,), (1373262436,), (1373262438,), (1373262440,), (1373262441,), (1373262442,), (1373262468,), (1373262502,), (1373262506,), (1373262521,), (1373262525,), (1373262529,), (1373262530,), (1373262554,), (1373262559,), (1373262564,), (1373262567,), (1373262570,), (1373262574,), (1373262596,), (1373262599,), (1373262608,), (1373262618,), (1373262627,), (1373262629,), (1373262659,), (1373262661,), (1373262664,), (1373262665,), (1373262666,), (1373262667,), (1373262690,), (1373262708,), (1373262716,), (1373262719,), (1373262722,), (1373262724,), (1373262773,), (1373262777,), (1373262779,), (1373262780,), (1373262781,), (1373262784,), (1373262798,), (1373262809,), (1373262820,), (1373262824,), (1373262827,), (1373262829,), (1373262853,), (1373262856,), (1373262860,), (1373262863,), (1373262866,), (1373262869,), (1373262891,), (1373262901,), (1373262904,), (1373262907,), (1373262910,), (1373262911,), (1373262941,), (1373262967,), (1373262974,), (1373262977,), (1373262980,), (1373262982,), (1373262984,), (1373263005,), (1373263009,), (1373263011,), (1373263013,), (1373263015,), (1373263019,), (1373263046,), (1373263050,), (1373263053,), (1373263054,), (1373263057,), (1373263059,), (1373263088,), (1373263091,), (1373263093,), (1373263095,), (1373263097,), (1373263099,), (1373263118,), (1373263122,), (1373263126,), (1373263128,), (1373263130,), (1373263133,), (1373263169,), (1373263170,), (1373263173,), (1373263176,), (1373263178,), (1373263183,), (1373263208,), (1373263214,), (1373263217,), (1373263220,), (1373263222,), (1373263224,), (1373263241,), (1373263243,), (1373263245,), (1373263247,), (1373263250,), (1373263254,), (1373263282,), (1373263296,), (1373263297,), (1373263299,), (1373263301,), (1373263303,), (1373263336,), (1373263342,), (1373263345,), (1373263346,), (1373263348,), (1373263349,), (1373263370,), (1373263397,), (1373263402,), (1373263406,), (1373263409,), (1373263412,), (1373263416,), (1373263477,), (1373263509,), (1373263536,), (1373263585,), (1373263610,), (1373263638,), (1373264288,), (1373264321,), (1373264804,), (1373264831,), (1373264855,), (1373264878,), (1373264903,), (1373265325,), (1373265379,), (1373265417,), (1373265448,), (1373265486,), (1373265488,), (1373265589,), (1373265605,), (1373265634,), (1373265652,), (1373265655,), (1373265677,), (1373265707,), (1373265711,), (1373265714,), (1373265716,), (1373265718,), (1373265722,), (1373265744,), (1373265749,), (1373265752,), (1373265756,), (1373265761,), (1373265765,), (1373265782,), (1373265814,), (1373265852,), (1373265892,), (1373265895,), (1373265898,), (1373265901,), (1373265902,), (1373265905,), (1373265922,), (1373265926,), (1373265930,), (1373265931,), (1373265934,), (1373265937,), (1373265955,), (1373265958,), (1373265962,), (1373265964,), (1373265967,), (1373265969,), (1373265989,), (1373265994,), (1373265996,), (1373266002,), (1373266005,), (1373266010,), (1373266030,), (1373266068,), (1373266091,), (1373266094,), (1373266096,), (1373266097,), (1373266099,), (1373266101,), (1373266121,), (1373266148,), (1373266150,), (1373266152,), (1373266153,), (1373266154,), (1373266156,), (1373266174,), (1373266175,), (1373266176,), (1373266177,), (1373266179,), (1373266181,), (1373266311,), (1373266333,), (1373266357,), (1373266427,), (1373266464,), (1373266513,), (1373266917,), (1373266942,), (1373266972,), (1373266997,), (1373267022,), (1373267046,), (1373267476,), (1373267489,), (1373267515,), (1373267518,), (1373267519,), (1373267520,), (1373267659,), (1373267693,), (1373267727,), (1373267748,), (1373267755,), (1373267758,), (1373267853,), (1373267883,), (1373267891,), (1373267893,), (1373267894,), (1373267895,), (1373267896,), (1373267917,), (1373267920,), (1373267922,), (1373267925,), (1373267926,), (1373267927,), (1373267944,), (1373267974,), (1373267977,), (1373267979,), (1373267981,), (1373267983,), (1373267985,), (1373268006,), (1373268011,), (1373268013,), (1373268015,), (1373268017,), (1373268019,), (1373268037,), (1373268068,), (1373268071,), (1373268075,), (1373268076,), (1373268079,), (1373268082,), (1373268102,), (1373268106,), (1373268109,), (1373268113,), (1373268115,), (1373268117,), (1373268129,), (1373268133,), (1373268135,), (1373268138,), (1373268139,), (1373268140,), (1373268203,), (1373268231,), (1373268261,), (1373268288,), (1373268314,), (1373268336,), (1373268606,), (1373268636,), (1373268689,), (1373268736,), (1373268764,), (1373268799,), (1373269080,), (1373269107,), (1373269133,), (1373269159,), (1373269182,), (1373269206,), (1373269316,), (1373269472,), (1373269476,), (1373269480,), (1373269483,), (1373269485,), (1373269488,), (1373269507,), (1373269519,), (1373269524,), (1373269526,), (1373269527,), (1373269528,), (1373269537,), (1373269541,), (1373269546,), (1373269547,), (1373269549,), (1373269551,), (1373269569,), (1373269577,), (1373269584,), (1373269588,), (1373269592,), (1373269593,), (1373269623,), (1373269625,), (1373269628,), (1373269629,), (1373269630,), (1373269631,), (1373269660,), (1373269662,), (1373269665,), (1373269666,), (1373269667,), (1373269668,), (1373269687,), (1373269688,), (1373269690,), (1373269691,), (1373269692,), (1373269693,), (1373269716,), (1373269726,), (1373269736,), (1373269741,), (1373269742,), (1373269745,), (1373269757,), (1373269760,), (1373269762,), (1373269764,), (1373269765,), (1373269766,), (1373275143,), (1373269799,), (1373269816,), (1373269821,), (1373269824,), (1373269825,), (1373269827,), (1373269829,), (1373269850,), (1373269855,), (1373269859,), (1373269861,), (1373269863,), (1373269865,), (1373269886,), (1373269913,), (1373269917,), (1373269921,), (1373269923,), (1373269928,), (1373269931,), (1373269949,), (1373269952,), (1373269955,), (1373269956,), (1373269958,), (1373269962,), (1373269979,), (1373269982,), (1373269997,), (1373270023,), (1373270050,), (1373270075,), (1373270328,), (1373270353,), (1373270378,), (1373270402,), (1373270426,), (1373270449,), (1373270585,), (1373270593,), (1373270622,), (1373270656,), (1373270679,), (1373270705,), (1373270799,), (1373270820,), (1373270843,), (1373270850,), (1373270851,), (1373270852,), (1373270866,), (1373270883,), (1373270910,), (1373271407,), (1373271461,), (1373271517,), (1373271567,), (1373271592,), (1373271618,), (1373272107,), (1373272163,), (1373272202,), (1373272229,), (1373272256,), (1373272302,), (1373272512,), (1373272536,), (1373272547,), (1373272557,), (1373272576,), (1373272591,), (1373272807,), (1373273005,), (1373273032,), (1373273063,), (1373273089,), (1373273112,), (1373273140,), (1373273415,), (1373273441,), (1373273466,), (1373273489,), (1373273514,), (1373273539,), (1373273646,), (1373273885,), (1373273891,), (1373273895,), (1373273897,), (1373273900,), (1373273903,), (1373274135,), (1373274169,), (1373274199,), (1373274225,), (1373274247,), (1373274271,), (1373274528,), (1373274552,), (1373274591,), (1373274599,), (1373274601,), (1373274604,), (1373274728,), (1373274756,), (1373274782,), (1373274785,), (1373274787,), (1373274811,), (1373274884,), (1373274886,), (1373274888,), (1373274889,), (1373274890,), (1373274891,), (1373274926,), (1373274930,), (1373274933,), (1373274934,), (1373274935,), (1373274936,), (1373274966,), (1373274969,), (1373274972,), (1373274974,), (1373274977,), (1373274980,), (1373275010,), (1373275013,), (1373275017,), (1373275021,), (1373275023,), (1373275025,), (1373275045,), (1373275049,), (1373275053,), (1373275055,), (1373275056,), (1373275057,), (1373275083,), (1373275084,), (1373275086,), (1373275088,), (1373275091,), (1373275094,), (1373275113,), (1373275117,), (1373275119,), (1373275123,), (1373275127,), (1373275131,), (1373275153,), (1373275160,), (1373275167,), (1373275171,), (1373275175,), (1373275200,), (1373275447,), (1373275477,), (1373275526,), (1373275573,), (1373275628,), (1373275665,), (1373276038,), (1373276069,), (1373276099,), (1373276133,), (1373276159,), (1373276184,), (1373276337,), (1373276557,), (1373276563,), (1373276566,), (1373276585,), (1373276610,), (1373276632,), (1373276680,), (1373276682,), (1373276685,), (1373276688,), (1373276691,), (1373276694,), (1373276722,), (1373276733,), (1373276743,), (1373276745,), (1373276746,), (1373276748,), (1373276775,), (1373276778,), (1373276780,), (1373276781,), (1373276784,), (1373276786,), (1373276809,), (1373276844,), (1373276848,), (1373276850,), (1373276853,), (1373276858,), (1373276860,), (1373276883,), (1373276892,), (1373276897,), (1373276898,), (1373276899,), (1373276900,), (1373276927,), (1373276932,), (1373276934,), (1373276936,), (1373276937,), (1373276940,), (1373276960,), (1373276965,), (1373276971,), (1373276973,), (1373276976,), (1373276978,), (1373277007,), (1373277011,), (1373277015,), (1373277016,), (1373277017,), (1373277018,), (1373277046,), (1373277049,), (1373277052,), (1373277054,), (1373277055,), (1373277058,), (1373277080,), (1373277083,), (1373277088,), (1373277091,), (1373277094,), (1373277098,), (1373277122,), (1373277130,), (1373277136,), (1373277139,), (1373277142,), (1373277147,), (1373277172,), (1373277202,), (1373277205,), (1373277210,), (1373277211,), (1373277212,), (1373277214,), (1373277251,), (1373277295,), (1373277305,), (1373277310,), (1373277313,), (1373277314,), (1373277316,), (1373277339,), (1373277375,), (1373277379,), (1373277383,), (1373277386,), (1373277389,), (1373277393,), (1373277411,), (1373277413,), (1373277416,), (1373277417,), (1373277419,), (1373277420,), (1373277451,), (1373277454,), (1373277458,), (1373277461,), (1373277464,), (1373277468,), (1373277493,), (1373277496,), (1373277500,), (1373277502,), (1373277505,), (1373277508,), (1373277538,), (1373277544,), (1373277554,), (1373277561,), (1373277562,), (1373277566,), (1373277586,), (1373277614,), (1373277617,), (1373277622,), (1373277636,), (1373277638,), (1373277642,), (1373277675,), (1373277677,), (1373277680,), (1373277681,), (1373277682,), (1373277683,), (1373277710,), (1373277712,), (1373277720,), (1373277728,), (1373277735,), (1373277738,), (1373277763,), (1373277767,), (1373277771,), (1373277773,), (1373277777,), (1373277781,), (1373277812,), (1373277816,), (1373277819,), (1373277821,), (1373277822,), (1373277823,), (1373277841,), (1373277844,), (1373277847,), (1373277849,), (1373277851,), (1373277857,), (1373277888,), (1373277929,), (1373277932,), (1373277935,), (1373277937,), (1373277939,), (1373277941,), (1373277967,), (1373277975,), (1373277984,), (1373277985,), (1373277987,), (1373277989,), (1373277995,), (1373277996,), (1373278014,), (1373278019,), (1373278021,), (1373278024,), (1373278026,), (1373278028,), (1373278045,), (1373278069,), (1373278073,), (1373278075,), (1373278086,), (1373278109,), (1373278140,), (1373278283,), (1373278285,), (1373278288,), (1373278290,), (1373278292,), (1373278294,), (1373278378,), (1373278413,), (1373278459,), (1373278507,), (1373278554,), (1373278608,), (1373279059,), (1373279545,), (1373279576,), (1373279622,), (1373279656,), (1373279681,), (1373279712,), (1373279773,), (1373279800,), (1373279828,), (1373279854,), (1373279882,), (1373279903,), (1373280017,), (1373280018,), (1373280021,), (1373280023,), (1373280025,), (1373280029,), (1373280053,), (1373280056,), (1373280057,), (1373280059,), (1373280061,), (1373280063,), (1373280082,), (1373280307,), (1373280343,), (1373280377,), (1373280401,), (1373280427,), (1373280454,), (1373280584,), (1373280588,), (1373280617,), (1373280655,), (1373280702,), (1373280746,), (1373280895,), (1373280898,), (1373280900,), (1373280903,), (1373280925,), (1373280951,), (1373281141,), (1373281167,), (1373281193,), (1373281216,), (1373281240,), (1373281263,), (1373281279,), (1373281283,), (1373281287,), (1373281290,), (1373281291,), (1373281295,), (1373281313,), (1373281316,), (1373281321,), (1373281332,), (1373281334,), (1373281335,), (1373281355,), (1373281364,), (1373281370,), (1373281371,), (1373281373,), (1373281379,), (1373281436,), (1373281462,), (1373281490,), (1373281512,), (1373281521,), (1373281526,), (1373281540,), (1373281543,), (1373281546,), (1373281548,), (1373281549,), (1373281551,), (1373281576,), (1373281765,), (1373281777,), (1373281783,), (1373281790,), (1373281792,), (1373281797,), (1373281818,), (1373281915,), (1373281943,), (1373281969,), (1373281979,), (1373281983,), (1373281999,), (1373282030,), (1373282035,), (1373282040,), (1373282043,), (1373282047,), (1373282051,), (1373282129,), (1373282132,), (1373282136,), (1373282142,), (1373282167,), (1373282170,), (1373282217,), (1373282247,), (1373282273,), (1373282296,), (1373282299,), (1373282303,), (1373282331,), (1373282338,), (1373282349,), (1373282352,), (1373282357,), (1373282361,), (1373282380,), (1373282383,), (1373282387,), (1373282390,), (1373282392,), (1373282395,), (1373282419,), (1373282426,), (1373282429,), (1373282432,), (1373282434,), (1373282437,), (1373282457,), (1373282458,), (1373282461,), (1373282463,), (1373282465,), (1373282468,), (1373282629,), (1373282901,), (1373282902,), (1373282903,), (1373282904,), (1373282905,), (1373282929,), (1373283166,), (1373283192,), (1373283216,), (1373283242,), (1373283264,), (1373283287,), (1373283408,), (1373283410,), (1373283427,), (1373283439,), (1373283441,), (1373283458,), (1373283497,), (1373283500,), (1373283506,), (1373283511,), (1373283513,), (1373283517,), (1373283549,), (1373283551,), (1373283553,), (1373283554,), (1373283555,), (1373283557,), (1373283609,), (1373283614,), (1373283623,), (1373283625,), (1373283626,), (1373283630,), (1373283760,), (1373283762,), (1373283764,), (1373283766,), (1373283768,), (1373283771,), (1373284011,), (1373284470,), (1373284477,), (1373284481,), (1373284483,), (1373284497,), (1373284500,), (1373284868,), (1373285251,), (1373285483,), (1373285539,), (1373285542,), (1373285545,), (1373285548,), (1373285549,), (1373285551,), (1373285576,), (1373285582,), (1373285586,), (1373285587,), (1373285589,), (1373285593,), (1373285678,), (1373285681,), (1373285684,), (1373285685,), (1373285688,), (1373285692,), (1373285715,), (1373285721,), (1373285731,), (1373285735,), (1373285738,), (1373285744,), (1373285766,), (1373285768,), (1373285771,), (1373285774,), (1373285775,), (1373285780,), (1373285822,), (1373285829,), (1373285834,), (1373285837,), (1373285840,), (1373285842,), (1373285866,), (1373285870,), (1373285875,), (1373285876,), (1373285878,), (1373285880,), (1373285912,), (1373286046,), (1373286049,), (1373286052,), (1373286053,), (1373286054,), (1373286056,), (1373286081,), (1373286088,), (1373286110,), (1373286136,), (1373286163,), (1373286192,), (1373286381,), (1373286415,), (1373286444,), (1373286479,), (1373286505,), (1373286536,), (1373286821,), (1373286850,), (1373286879,), (1373286907,), (1373286938,), (1373286967,), (1373287275,), (1373287327,), (1373287397,), (1373287441,), (1373287494,), (1373287543,), (1373287783,), (1373287790,), (1373287796,), (1373287799,), (1373287803,), (1373287807,), (1373287827,), (1373287831,), (1373287841,), (1373287843,), (1373287845,), (1373287847,), (1373287871,), (1373287877,), (1373287885,), (1373287892,), (1373287895,), (1373287898,), (1373287934,), (1373287938,), (1373287942,), (1373287944,), (1373287948,), (1373287951,), (1373287970,), (1373287973,), (1373287977,), (1373287978,), (1373287982,), (1373287987,), (1373288011,), (1373288019,), (1373288027,), (1373288031,), (1373288033,), (1373288037,), (1373288072,), (1373288079,), (1373288082,), (1373288084,), (1373288086,), (1373288090,), (1373288112,), (1373288116,), (1373288121,), (1373288125,), (1373288128,), (1373288132,), (1373288152,), (1373288156,), (1373288188,), (1373288222,), (1373288250,), (1373288275,), (1373288542,), (1373288586,), (1373288614,), (1373288639,), (1373288663,), (1373288695,), (1373288886,), (1373289033,), (1373289035,), (1373289037,), (1373289039,), (1373289041,), (1373289044,), (1373289189,), (1373289564,), (1373289593,), (1373289635,), (1373289659,), (1373289683,), (1373289725,), (1373289975,), (1373289977,), (1373289979,), (1373289981,), (1373289982,), (1373289986,), (1373290272,), (1373290312,), (1373290339,), (1373290367,), (1373290409,), (1373290480,), (1373290823,), (1373290871,), (1373290923,), (1373290971,), (1373290994,), (1373291021,), (1373291295,), (1373291306,), (1373291308,), (1373291310,), (1373291312,), (1373291314,), (1373291478,), (1373291509,), (1373291535,), (1373291544,), (1373291548,), (1373291550,), (1373291668,), (1373291670,), (1373291673,), (1373291674,), (1373291677,), (1373291680,), (1373291840,), (1373292212,), (1373292240,), (1373292272,), (1373292299,), (1373292307,), (1373292310,), (1373292442,), (1373292457,), (1373292458,), (1373292461,), (1373292462,), (1373292467,), (1373292488,), (1373292493,), (1373292497,), (1373292500,), (1373292504,), (1373292506,), (1373292521,), (1373292523,), (1373292525,), (1373292528,), (1373292530,), (1373292531,), (1373292555,), (1373292558,), (1373292561,), (1373292562,), (1373292563,), (1373292566,), (1373292586,), (1373292589,), (1373292593,), (1373292595,), (1373292598,), (1373292602,), (1373292619,), (1373292622,), (1373292625,), (1373292627,), (1373292630,), (1373292634,), (1373292659,), (1373292662,), (1373292665,), (1373292668,), (1373292671,), (1373292676,), (1373292696,), (1373292725,), (1373292757,), (1373292780,), (1373292805,), (1373292832,), (1373293101,), (1373293126,), (1373293151,), (1373293176,), (1373293200,), (1373293229,), (1373293325,), (1373293345,), (1373293376,), (1373293401,), (1373293431,), (1373293456,), (1373293614,), (1373293645,), (1373293650,), (1373293651,), (1373293652,), (1373293654,), (1373293658,), (1373293688,), (1373293722,), (1373293725,), (1373293728,), (1373293729,), (1373293733,), (1373293737,), (1373293760,), (1373293773,), (1373293777,), (1373293779,), (1373293782,), (1373293785,), (1373293806,), (1373293814,), (1373293819,), (1373293820,), (1373293821,), (1373293824,), (1373293848,), (1373293851,), (1373293854,), (1373293855,), (1373293856,), (1373293859,), (1373293884,), (1373293889,), (1373293895,), (1373293911,), (1373293920,), (1373293926,), (1373293959,), (1373293962,), (1373293966,), (1373293969,), (1373293972,), (1373293976,), (1373294031,), (1373294057,), (1373294082,), (1373294109,), (1373294135,), (1373294158,), (1373294436,), (1373294463,), (1373294491,), (1373294517,), (1373294541,), (1373294569,), (1373294675,), (1373294692,), (1373294702,), (1373294705,), (1373294724,), (1373294762,), (1373295149,), (1373295184,), (1373295231,), (1373295279,), (1373295304,), (1373295331,), (1373295491,), (1373295513,), (1373295524,), (1373295526,), (1373295527,), (1373295529,), (1373295554,), (1373295556,), (1373295559,), (1373295561,), (1373295564,), (1373295569,), (1373295605,), (1373295612,), (1373295616,), (1373295618,), (1373295621,), (1373295624,), (1373295679,), (1373295683,), (1373295687,), (1373295689,), (1373295690,), (1373295693,), (1373295765,), (1373295770,), (1373295773,), (1373295774,), (1373295775,), (1373295777,), (1373296027,), (1373296054,), (1373296078,), (1373296111,), (1373296112,), (1373296141,), (1373296226,), (1373296231,), (1373296236,), (1373296260,), (1373296283,), (1373296309,), (1373296346,), (1373296355,), (1373296359,), (1373296361,), (1373296362,), (1373296365,), (1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23072025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25210669]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657] map_info['map_portfolio_photo'] : {25210669: [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657, 1373297496, 1373297472, 1373297458, 1373297456, 1373297453, 1373297450, 1373297211, 1373297180, 1373297143, 1373297099, 1373297048, 1373297014, 1373296649, 1373296645, 1373296640, 1373296639, 1373296635, 1373296624, 1373296597, 1373296594, 1373296592, 1373296589, 1373296579, 1373296573, 1373296552, 1373296550, 1373296534, 1373296531, 1373296529, 1373296524, 1373296482, 1373296478, 1373296475, 1373296473, 1373296471, 1373296462, 1373296409, 1373296405, 1373296403, 1373296395, 1373296385, 1373296382]} final : True mtd_id 4302 list_pids : [1373297987, 1373297984, 1373297982, 1373297980, 1373297974, 1373297966, 1373297827, 1373297796, 1373297758, 1373297711, 1373297667, 1373297657] Looping around the photos to save general results len do output : 1 /25210669Didn'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, '3325103') ('4302', '25210669', '1373297987', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297984', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297982', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297980', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297974', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297966', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297827', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297796', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297758', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297711', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297667', None, None, None, None, None, '3325103') ('4302', None, None, None, None, None, None, None, '3325103') ('4302', '25210669', '1373297657', None, None, None, None, None, '3325103') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25210669', 'None', None, None, None, None, '3325103'), ('4302', '25210669', '1373297987', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297984', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297982', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297980', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297974', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297966', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297827', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297796', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297758', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297711', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297667', None, None, None, None, None, '3325103'), ('4302', '25210669', '1373297657', None, None, None, None, None, '3325103')] time used for this insertion : 0.05959653854370117 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.565664768218994 time spend to save output : 0.05981183052062988 total time spend for step 5 : 4.625476598739624 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 (3325103) 2.27user 2.35system 0:13.86elapsed 33%CPU (0avgtext+0avgdata 160884maxresident)k 24inputs+11112outputs (1major+64159minor)pagefaults 0swaps