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 : 1771878 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 (3237727) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3237727) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612688 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3237727'] with mtr_portfolio_ids : ['24612688'] and first list_photo_ids : [] new path : /proc/1771878/ Name: python3 Umask: 0002 State: R (running) Tgid: 1771878 Ngid: 0 Pid: 1771878 PPid: 1771877 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1771878 NSpid: 1771878 NSpgid: 1771211 NSsid: 1771211 VmPeak: 1106864 kB VmSize: 1106864 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97504 kB VmRSS: 97504 kB RssAnon: 59796 kB RssFile: 37708 kB RssShmem: 0 kB VmData: 865616 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 40 nonvoluntary_ctxt_switches: 108 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1771878', 'Ngid': '0', 'Pid': '1771878', 'PPid': '1771877', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1771878', 'NSpid': '1771878', 'NSpgid': '1771211', 'NSsid': '1771211', 'VmPeak': '1106864 kB', 'VmSize': '1106864 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97504 kB', 'VmRSS': '97504 kB', 'RssAnon': '59796 kB', 'RssFile': '37708 kB', 'RssShmem': '0 kB', 'VmData': '865616 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '40', 'nonvoluntary_ctxt_switches': '108'} ('datou_batch_current', '1771878', '1106864', '0', '1106864', '865616', '97504', b'', 'marlene', '3237727') 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 (24612688) 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 (3237727 ) ) 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 (24612688) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1370658567, 'portfolio_id': 24612688}, {'photo_id': 1370658566, 'portfolio_id': 24612688}, {'photo_id': 1370658564, 'portfolio_id': 24612688}, {'photo_id': 1370658563, 'portfolio_id': 24612688}, {'photo_id': 1370658559, 'portfolio_id': 24612688}, {'photo_id': 1370658557, 'portfolio_id': 24612688}, {'photo_id': 1370658553, 'portfolio_id': 24612688}, {'photo_id': 1370658552, 'portfolio_id': 24612688}, {'photo_id': 1370658547, 'portfolio_id': 24612688}, {'photo_id': 1370658546, 'portfolio_id': 24612688}, {'photo_id': 1370658542, 'portfolio_id': 24612688}, {'photo_id': 1370658541, 'portfolio_id': 24612688}, {'photo_id': 1370658495, 'portfolio_id': 24612688}, {'photo_id': 1370658490, 'portfolio_id': 24612688}, {'photo_id': 1370658476, 'portfolio_id': 24612688}, {'photo_id': 1370658466, 'portfolio_id': 24612688}, {'photo_id': 1370658437, 'portfolio_id': 24612688}, {'photo_id': 1370658412, 'portfolio_id': 24612688}, {'photo_id': 1370658281, 'portfolio_id': 24612688}, {'photo_id': 1370658266, 'portfolio_id': 24612688}, {'photo_id': 1370658261, 'portfolio_id': 24612688}, {'photo_id': 1370658256, 'portfolio_id': 24612688}, {'photo_id': 1370658252, 'portfolio_id': 24612688}, {'photo_id': 1370658239, 'portfolio_id': 24612688}, {'photo_id': 1370658224, 'portfolio_id': 24612688}, {'photo_id': 1370658217, 'portfolio_id': 24612688}, {'photo_id': 1370658199, 'portfolio_id': 24612688}, {'photo_id': 1370658188, 'portfolio_id': 24612688}, {'photo_id': 1370658180, 'portfolio_id': 24612688}, {'photo_id': 1370658173, 'portfolio_id': 24612688}, {'photo_id': 1370658103, 'portfolio_id': 24612688}, {'photo_id': 1370658097, 'portfolio_id': 24612688}, {'photo_id': 1370658093, 'portfolio_id': 24612688}, {'photo_id': 1370658088, 'portfolio_id': 24612688}, {'photo_id': 1370658083, 'portfolio_id': 24612688}, {'photo_id': 1370658079, 'portfolio_id': 24612688}, {'photo_id': 1370658030, 'portfolio_id': 24612688}, {'photo_id': 1370658017, 'portfolio_id': 24612688}, {'photo_id': 1370658012, 'portfolio_id': 24612688}, {'photo_id': 1370658008, 'portfolio_id': 24612688}, {'photo_id': 1370657993, 'portfolio_id': 24612688}, {'photo_id': 1370657959, 'portfolio_id': 24612688}, {'photo_id': 1370657831, 'portfolio_id': 24612688}, {'photo_id': 1370657824, 'portfolio_id': 24612688}, {'photo_id': 1370657794, 'portfolio_id': 24612688}, {'photo_id': 1370657787, 'portfolio_id': 24612688}, {'photo_id': 1370657734, 'portfolio_id': 24612688}, {'photo_id': 1370657729, 'portfolio_id': 24612688}, {'photo_id': 1370657638, 'portfolio_id': 24612688}, {'photo_id': 1370657633, 'portfolio_id': 24612688}, {'photo_id': 1370657600, 'portfolio_id': 24612688}, {'photo_id': 1370657598, 'portfolio_id': 24612688}, {'photo_id': 1370657564, 'portfolio_id': 24612688}, {'photo_id': 1370657562, 'portfolio_id': 24612688}, {'photo_id': 1370657469, 'portfolio_id': 24612688}, {'photo_id': 1370657466, 'portfolio_id': 24612688}, {'photo_id': 1370657457, 'portfolio_id': 24612688}, {'photo_id': 1370657452, 'portfolio_id': 24612688}, {'photo_id': 1370657434, 'portfolio_id': 24612688}, {'photo_id': 1370657400, 'portfolio_id': 24612688}, {'photo_id': 1370657288, 'portfolio_id': 24612688}, {'photo_id': 1370657285, 'portfolio_id': 24612688}, {'photo_id': 1370657280, 'portfolio_id': 24612688}, {'photo_id': 1370657274, 'portfolio_id': 24612688}, {'photo_id': 1370657270, 'portfolio_id': 24612688}, {'photo_id': 1370657265, 'portfolio_id': 24612688}, {'photo_id': 1370657233, 'portfolio_id': 24612688}, {'photo_id': 1370657225, 'portfolio_id': 24612688}, {'photo_id': 1370657206, 'portfolio_id': 24612688}, {'photo_id': 1370657189, 'portfolio_id': 24612688}, {'photo_id': 1370657184, 'portfolio_id': 24612688}, {'photo_id': 1370657179, 'portfolio_id': 24612688}, {'photo_id': 1370656989, 'portfolio_id': 24612688}, {'photo_id': 1370656981, 'portfolio_id': 24612688}, {'photo_id': 1370656932, 'portfolio_id': 24612688}, {'photo_id': 1370656906, 'portfolio_id': 24612688}, {'photo_id': 1370656900, 'portfolio_id': 24612688}, {'photo_id': 1370656894, 'portfolio_id': 24612688}, {'photo_id': 1370656859, 'portfolio_id': 24612688}, {'photo_id': 1370656857, 'portfolio_id': 24612688}, {'photo_id': 1370656845, 'portfolio_id': 24612688}, {'photo_id': 1370656843, 'portfolio_id': 24612688}, {'photo_id': 1370656839, 'portfolio_id': 24612688}, {'photo_id': 1370656835, 'portfolio_id': 24612688}] map_portfolio_id_photo_id: {24612688: [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412, 1370658281, 1370658266, 1370658261, 1370658256, 1370658252, 1370658239, 1370658224, 1370658217, 1370658199, 1370658188, 1370658180, 1370658173, 1370658103, 1370658097, 1370658093, 1370658088, 1370658083, 1370658079, 1370658030, 1370658017, 1370658012, 1370658008, 1370657993, 1370657959, 1370657831, 1370657824, 1370657794, 1370657787, 1370657734, 1370657729, 1370657638, 1370657633, 1370657600, 1370657598, 1370657564, 1370657562, 1370657469, 1370657466, 1370657457, 1370657452, 1370657434, 1370657400, 1370657288, 1370657285, 1370657280, 1370657274, 1370657270, 1370657265, 1370657233, 1370657225, 1370657206, 1370657189, 1370657184, 1370657179, 1370656989, 1370656981, 1370656932, 1370656906, 1370656900, 1370656894, 1370656859, 1370656857, 1370656845, 1370656843, 1370656839, 1370656835]} ##### 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.016156911849975586 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Jul 4 17:28:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24612688) 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 : 24612688 get user id for portfolio 24612688 get sub ptf for main ptf 24612688, type 3726 and hashtags ['Carton_gris', 'Teint_Dans_La_Masse', 'mal_croppe', 'plastique', 'cartonnette', 'papier', 'kraft', 'environnement', 'flou', 'autre_refus', 'metal', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24612688 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','mal_croppe','plastique','cartonnette','papier','kraft','environnement','flou','autre_refus','metal','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24612688 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','mal_croppe','plastique','cartonnette','papier','kraft','environnement','flou','autre_refus','metal','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 24612688, 'sub_port_id': 24612717, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536731, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'plastique': {'main_port_id': 24612688, 'sub_port_id': 24612718, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536732, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 24612688, 'sub_port_id': 24612719, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536733, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'kraft': {'main_port_id': 24612688, 'sub_port_id': 24612720, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536734, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'mal_croppe': {'main_port_id': 24612688, 'sub_port_id': 24612721, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536735, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'Carton_gris': {'main_port_id': 24612688, 'sub_port_id': 24612722, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536736, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'autre_refus': {'main_port_id': 24612688, 'sub_port_id': 24612723, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536737, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'Carton_brun': {'main_port_id': 24612688, 'sub_port_id': 24612724, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536738, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'environnement': {'main_port_id': 24612688, 'sub_port_id': 24612725, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536739, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'flou': {'main_port_id': 24612688, 'sub_port_id': 24612726, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536740, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'metal': {'main_port_id': 24612688, 'sub_port_id': 24612727, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536741, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'papier': {'main_port_id': 24612688, 'sub_port_id': 24612728, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536742, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612717 , 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=24612688 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 (24612717) result : ((1370657327,), (1370657359,), (1370657361,), (1370657780,), (1370658025,), (1370658026,), (1370658027,), (1370658191,), (1370658192,), (1370658193,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612718 , 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=24612688 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 (24612718) result : ((1370657338,), (1370657340,), (1370658167,), (1370658168,), (1370658169,), (1370658170,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612719 , 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=24612688 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 (24612719) result : ((1370657313,), (1370657328,), (1370657330,), (1370657332,), (1370658021,), (1370658108,), (1370658109,), (1370658110,), (1370658111,), (1370658112,), (1370658113,), (1370658114,), (1370658115,), (1370658185,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612720 , 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=24612688 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 (24612720) result : ((1370658031,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612721 , 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=24612688 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 (24612721) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612722 , 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=24612688 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 (24612722) result : ((1370657320,), (1370657349,), (1370658024,), (1370658137,), (1370658141,), (1370658145,), (1370658149,), (1370658187,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612723 , 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=24612688 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 (24612723) result : ((1370657341,), (1370658117,), (1370658118,), (1370658119,), (1370658120,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612724 , 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=24612688 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 (24612724) result : ((1370657369,), (1370658029,), (1370658151,), (1370658152,), (1370658154,), (1370658156,), (1370658158,), (1370658160,), (1370658196,), (1370658197,), (1370658500,), (1370658501,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612725 , 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=24612688 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 (24612725) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612726 , 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=24612688 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 (24612726) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612727 , 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=24612688 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 (24612727) result : ((1370658171,), (1370658172,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24612728 , 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=24612688 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 (24612728) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24612688) result : ((1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) 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 (1370657400,1370656900,1370657600) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24612688 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','mal_croppe','plastique','cartonnette','papier','kraft','environnement','flou','autre_refus','metal','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24612688 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','mal_croppe','plastique','cartonnette','papier','kraft','environnement','flou','autre_refus','metal','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 24612688, 'sub_port_id': 24612729, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536743, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'plastique': {'main_port_id': 24612688, 'sub_port_id': 24612730, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536744, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 24612688, 'sub_port_id': 24612731, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536745, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'kraft': {'main_port_id': 24612688, 'sub_port_id': 24612732, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536746, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'mal_croppe': {'main_port_id': 24612688, 'sub_port_id': 24612733, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536747, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'Carton_gris': {'main_port_id': 24612688, 'sub_port_id': 24612734, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536748, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'autre_refus': {'main_port_id': 24612688, 'sub_port_id': 24612735, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536749, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'Carton_brun': {'main_port_id': 24612688, 'sub_port_id': 24612736, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536750, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'environnement': {'main_port_id': 24612688, 'sub_port_id': 24612737, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536751, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'flou': {'main_port_id': 24612688, 'sub_port_id': 24612738, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536752, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'metal': {'main_port_id': 24612688, 'sub_port_id': 24612739, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536753, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 18, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}, 'papier': {'main_port_id': 24612688, 'sub_port_id': 24612740, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16536754, 'last_updated_at': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 17, 26, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 17, 18, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612729,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612717 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612730,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612718 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612731,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612719 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612732,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612720 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612733,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612721 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612734,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612722 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612735,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612723 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612736,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612724 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612737,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612725 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612738,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612726 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612739,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612727 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24612740,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24612728 lien utilise dans velours : https://www.fotonower.com/velours/24612729,24612730,24612731,24612732,24612733,24612734,24612735,24612736,24612737,24612738,24612739,24612740?tags=cartonnette,plastique,Teint_Dans_La_Masse,kraft,mal_croppe,Carton_gris,autre_refus,Carton_brun,environnement,flou,metal,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24612688]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412] map_info['map_portfolio_photo'] : {24612688: [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412, 1370658281, 1370658266, 1370658261, 1370658256, 1370658252, 1370658239, 1370658224, 1370658217, 1370658199, 1370658188, 1370658180, 1370658173, 1370658103, 1370658097, 1370658093, 1370658088, 1370658083, 1370658079, 1370658030, 1370658017, 1370658012, 1370658008, 1370657993, 1370657959, 1370657831, 1370657824, 1370657794, 1370657787, 1370657734, 1370657729, 1370657638, 1370657633, 1370657600, 1370657598, 1370657564, 1370657562, 1370657469, 1370657466, 1370657457, 1370657452, 1370657434, 1370657400, 1370657288, 1370657285, 1370657280, 1370657274, 1370657270, 1370657265, 1370657233, 1370657225, 1370657206, 1370657189, 1370657184, 1370657179, 1370656989, 1370656981, 1370656932, 1370656906, 1370656900, 1370656894, 1370656859, 1370656857, 1370656845, 1370656843, 1370656839, 1370656835]} final : False mtd_id 4302 list_pids : [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412] Looping around the photos to save general results len do output : 1 /24612688. 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, '3237727') ('4302', '24612688', '1370658567', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658566', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658564', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658563', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658559', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658557', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658553', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658552', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658547', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658546', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658542', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658541', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658495', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658490', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658476', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658466', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658437', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658412', None, None, None, None, None, '3237727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '24612688', "{'cartonnette': 24612717, 'plastique': 24612718, 'Teint_Dans_La_Masse': 24612719, 'kraft': 24612720, 'mal_croppe': 24612721, 'Carton_gris': 24612722, 'autre_refus': 24612723, 'Carton_brun': 24612724, 'environnement': 24612725, 'flou': 24612726, 'metal': 24612727, 'papier': 24612728}", None, None, None, None, '3237727'), ('4302', '24612688', '1370658567', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658566', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658564', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658563', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658559', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658557', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658553', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658552', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658547', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658546', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658542', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658541', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658495', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658490', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658476', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658466', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658437', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658412', None, None, None, None, None, '3237727')] time used for this insertion : 0.022243499755859375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.45002174377441406 time spend to save output : 0.02261185646057129 total time spend for step 1 : 0.47263360023498535 step2:final Fri Jul 4 17:28:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (24612688) 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 24612688 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1370656859,1370656857,1370656845,1370656843,1370656839,1370656835,1370656989,1370656981,1370656932,1370656906,1370656900,1370656894,1370657233,1370657225,1370657206,1370657189,1370657184,1370657179,1370657288,1370657285,1370657280,1370657274,1370657270,1370657265,1370657469,1370657466,1370657457,1370657452,1370657434,1370657400,1370657831,1370657824,1370657787,1370657794,1370657729,1370657734,1370657633,1370657638,1370657598,1370657600,1370657564,1370657562,1370658030,1370658017,1370658012,1370658008,1370657993,1370657959,1370658103,1370658097,1370658093,1370658088,1370658083,1370658079,1370658224,1370658217,1370658199,1370658188,1370658180,1370658173,1370658281,1370658266,1370658261,1370658256,1370658252,1370658239,1370658495,1370658490,1370658476,1370658466,1370658437,1370658412,1370658566,1370658567,1370658563,1370658564,1370658557,1370658559,1370658552,1370658553,1370658546,1370658547,1370658541,1370658542); 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([24612688]) Inside saveOutput : final : False verbose : True original output for save of step final : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} new output for save of step final : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412] map_info['map_portfolio_photo'] : {24612688: [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412, 1370658281, 1370658266, 1370658261, 1370658256, 1370658252, 1370658239, 1370658224, 1370658217, 1370658199, 1370658188, 1370658180, 1370658173, 1370658103, 1370658097, 1370658093, 1370658088, 1370658083, 1370658079, 1370658030, 1370658017, 1370658012, 1370658008, 1370657993, 1370657959, 1370657831, 1370657824, 1370657794, 1370657787, 1370657734, 1370657729, 1370657638, 1370657633, 1370657600, 1370657598, 1370657564, 1370657562, 1370657469, 1370657466, 1370657457, 1370657452, 1370657434, 1370657400, 1370657288, 1370657285, 1370657280, 1370657274, 1370657270, 1370657265, 1370657233, 1370657225, 1370657206, 1370657189, 1370657184, 1370657179, 1370656989, 1370656981, 1370656932, 1370656906, 1370656900, 1370656894, 1370656859, 1370656857, 1370656845, 1370656843, 1370656839, 1370656835]} final : False mtd_id 4302 list_pids : [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412] Looping around the photos to save general results len do output : 18 /1370658567.Didn't retrieve data . /1370658566.Didn't retrieve data . /1370658564.Didn't retrieve data . /1370658563.Didn't retrieve data . /1370658559.Didn't retrieve data . /1370658557.Didn't retrieve data . /1370658553.Didn't retrieve data . /1370658552.Didn't retrieve data . /1370658547.Didn't retrieve data . /1370658546.Didn't retrieve data . /1370658542.Didn't retrieve data . /1370658541.Didn't retrieve data . /1370658495.Didn't retrieve data . /1370658490.Didn't retrieve data . /1370658476.Didn't retrieve data . /1370658466.Didn't retrieve data . /1370658437.Didn't retrieve data . /1370658412.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, '3237727') ('4302', '24612688', '1370658567', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658566', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658564', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658563', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658559', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658557', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658553', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658552', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658547', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658546', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658542', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658541', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658495', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658490', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658476', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658466', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658437', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658412', None, None, None, None, None, '3237727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '24612688', '1370658567', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658566', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658564', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658563', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658559', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658557', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658553', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658552', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658547', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658546', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658542', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658541', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658495', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658490', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658476', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658466', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658437', '0.04186500501304778', None, None, None, None, '3237727'), ('4302', '24612688', '1370658412', '0.04186500501304778', None, None, None, None, '3237727')] time used for this insertion : 0.022221803665161133 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06937861442565918 time spend to save output : 0.02303457260131836 total time spend for step 2 : 0.09241318702697754 step3:velours_tree Fri Jul 4 17:28:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {24612688: [{'cartonnette': 24612717, 'plastique': 24612718, 'Teint_Dans_La_Masse': 24612719, 'kraft': 24612720, 'mal_croppe': 24612721, 'Carton_gris': 24612722, 'autre_refus': 24612723, 'Carton_brun': 24612724, 'environnement': 24612725, 'flou': 24612726, 'metal': 24612727, 'papier': 24612728}]} input_args_next_step : {24612688: ()} output_args : {24612688: [{'cartonnette': 24612717, 'plastique': 24612718, 'Teint_Dans_La_Masse': 24612719, 'kraft': 24612720, 'mal_croppe': 24612721, 'Carton_gris': 24612722, 'autre_refus': 24612723, 'Carton_brun': 24612724, 'environnement': 24612725, 'flou': 24612726, 'metal': 24612727, 'papier': 24612728}]} args : 24612688 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 : ({'cartonnette': 24612717, 'plastique': 24612718, 'Teint_Dans_La_Masse': 24612719, 'kraft': 24612720, 'mal_croppe': 24612721, 'Carton_gris': 24612722, 'autre_refus': 24612723, 'Carton_brun': 24612724, 'environnement': 24612725, 'flou': 24612726, 'metal': 24612727, 'papier': 24612728},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24612688) 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([24612688]) 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.40763378143310547 time spend to save output : 7.2479248046875e-05 total time spend for step 3 : 0.40770626068115234 step4:send_mail_cod Fri Jul 4 17:28:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} input_args_next_step : {1370658567: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658567 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658566 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658564 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658563 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658559 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658557 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658553 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658552 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658547 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658546 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658542 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658541 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658495 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658490 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658476 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658466 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658437 depend.output_id : 0 input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ()} output_args : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',)} args : 1370658412 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 : {24612688: [{'cartonnette': 24612717, 'plastique': 24612718, 'Teint_Dans_La_Masse': 24612719, 'kraft': 24612720, 'mal_croppe': 24612721, 'Carton_gris': 24612722, 'autre_refus': 24612723, 'Carton_brun': 24612724, 'environnement': 24612725, 'flou': 24612726, 'metal': 24612727, 'papier': 24612728}]} input_args_next_step : {1370658567: ('0.04186500501304778',), 1370658566: ('0.04186500501304778',), 1370658564: ('0.04186500501304778',), 1370658563: ('0.04186500501304778',), 1370658559: ('0.04186500501304778',), 1370658557: ('0.04186500501304778',), 1370658553: ('0.04186500501304778',), 1370658552: ('0.04186500501304778',), 1370658547: ('0.04186500501304778',), 1370658546: ('0.04186500501304778',), 1370658542: ('0.04186500501304778',), 1370658541: ('0.04186500501304778',), 1370658495: ('0.04186500501304778',), 1370658490: ('0.04186500501304778',), 1370658476: ('0.04186500501304778',), 1370658466: ('0.04186500501304778',), 1370658437: ('0.04186500501304778',), 1370658412: ('0.04186500501304778',), 24612688: ()} output_args : {24612688: [{'cartonnette': 24612717, 'plastique': 24612718, 'Teint_Dans_La_Masse': 24612719, 'kraft': 24612720, 'mal_croppe': 24612721, 'Carton_gris': 24612722, 'autre_refus': 24612723, 'Carton_brun': 24612724, 'environnement': 24612725, 'flou': 24612726, 'metal': 24612727, 'papier': 24612728}]} args : 24612688 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 :19, first value : ('0.04186500501304778',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24612688) 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 (1370658567,1370658566,1370658564,1370658563,1370658559,1370658557,1370658553,1370658552,1370658547,1370658546,1370658542,1370658541,1370658495,1370658490,1370658476,1370658466,1370658437,1370658412) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1370658412 begin to download photo : 1370658490 begin to download photo : 1370658546 begin to download photo : 1370658557 begin to download photo : 1370658566 download finish for photo 1370658546 begin to download photo : 1370658547 download finish for photo 1370658566 begin to download photo : 1370658567 download finish for photo 1370658557 begin to download photo : 1370658559 download finish for photo 1370658412 begin to download photo : 1370658437 download finish for photo 1370658490 begin to download photo : 1370658495 download finish for photo 1370658547 begin to download photo : 1370658552 download finish for photo 1370658567 download finish for photo 1370658559 begin to download photo : 1370658563 download finish for photo 1370658495 begin to download photo : 1370658541 download finish for photo 1370658437 begin to download photo : 1370658466 download finish for photo 1370658552 begin to download photo : 1370658553 download finish for photo 1370658563 begin to download photo : 1370658564 download finish for photo 1370658466 begin to download photo : 1370658476 download finish for photo 1370658541 begin to download photo : 1370658542 download finish for photo 1370658553 download finish for photo 1370658564 download finish for photo 1370658542 download finish for photo 1370658476 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P24612688_04-07-2025_17_28_30.pdf 24612717 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=24612717 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370657327: '1751642366_2269384_1370656835_fe72914e94914395402c0ec6cfc49993_rle_crop_3872488810_0.png', 1370657359: '1751642366_323665_1370656906_5bc6c2c4e9d91ed3a05d6a173d4cd128_rle_crop_3872488785_0.png', 1370657361: '1751642366_323665_1370656900_29e83a0bc82b044c2541b452a29b042b_rle_crop_3872488820_0.png', 1370657780: '1751642486_327140_1370657285_4fd89752263153a6c94d90a04c26edcd_rle_crop_3872489447_0.png', 1370658025: '1751642525_2277208_1370657233_a35616ec5a46ca69ff2d77db0e083e74_rle_crop_3872489768_0.png', 1370658026: '1751642525_2277208_1370657184_b3637e0f221e6d65b558f23fbc0b6c39_rle_crop_3872489822_0.png', 1370658027: '1751642525_2277208_1370657179_a94eeda85ee2658480e458ee2ca07845_rle_crop_3872489843_0.png', 1370658191: '1751642647_2280107_1370657469_ed58c76a74b6e16f0c8dbd8b980dcfa1_rle_crop_3872491275_0.png', 1370658192: '1751642647_2280107_1370657452_de5efb0119bb6b315cf6cc36d03d53e8_rle_crop_3872491310_0.png', 1370658193: '1751642647_2280107_1370657434_255029e8d4a2814468e64c33edec03bd_rle_crop_3872491334_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/1c3030a00ed9f352bd1f91c4d00b6845_94176768.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/44ace80c1449b8554a713ffeedc4e789_7103070.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/7f0de431baeb8251c1c37f0d8921eb7e_69884487.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/11d25a4414757e0d695c113650f9c1a1_99059586.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/2501cd82bad9b8dacebda8292d451dde_16203685.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/a78dcfe02b1add3cd65fa2de3cdf677b_58646998.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/13114ecc4e3f88bbeed7c6eb5e16c469_60361538.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/3f0ed16a88a3ff2d5c98f7e89342fa29_1699503.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/a34b92456d0ccbf3679e749cdd8b49f1_12006975.png change filename to text .imagette246127171751642910/ imagette246127171751642910/1751642366_323665_1370656900_29e83a0bc82b044c2541b452a29b042b_rle_crop_3872488820_0.png.png imagette246127171751642910/1751642366_323665_1370656906_5bc6c2c4e9d91ed3a05d6a173d4cd128_rle_crop_3872488785_0.png.png imagette246127171751642910/1751642525_2277208_1370657179_a94eeda85ee2658480e458ee2ca07845_rle_crop_3872489843_0.png.png imagette246127171751642910/1751642486_327140_1370657285_4fd89752263153a6c94d90a04c26edcd_rle_crop_3872489447_0.png.png imagette246127171751642910/1751642525_2277208_1370657184_b3637e0f221e6d65b558f23fbc0b6c39_rle_crop_3872489822_0.png.png imagette246127171751642910/1751642647_2280107_1370657452_de5efb0119bb6b315cf6cc36d03d53e8_rle_crop_3872491310_0.png.png imagette246127171751642910/1751642647_2280107_1370657434_255029e8d4a2814468e64c33edec03bd_rle_crop_3872491334_0.png.png imagette246127171751642910/1751642366_2269384_1370656835_fe72914e94914395402c0ec6cfc49993_rle_crop_3872488810_0.png.png imagette246127171751642910/1751642525_2277208_1370657233_a35616ec5a46ca69ff2d77db0e083e74_rle_crop_3872489768_0.png.png imagette246127171751642910/1751642647_2280107_1370657469_ed58c76a74b6e16f0c8dbd8b980dcfa1_rle_crop_3872491275_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/becc3921f75e1c41bbfc4ca77acefdeb_47789644.png imagette246127171751642910 24612718 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=24612718 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370657338: '1751642366_2269384_1370656843_58719a560e478713bf54b7589863f245_rle_crop_3872488780_0.png', 1370657340: '1751642366_2269384_1370656839_9609c41cb9b90f3f59e7b980c4ebc12c_rle_crop_3872488802_0.png', 1370658167: '1751642605_330345_1370657831_b81a637e327e8400273f9139c30c8abf_rle_crop_3872490261_0.png', 1370658168: '1751642605_330345_1370657824_6c7adf551933a1a2bf28236552e120c1_rle_crop_3872490273_0.png', 1370658169: '1751642605_330345_1370657794_63f69afa54f04774f637af4529c08e9b_rle_crop_3872490291_0.png', 1370658170: '1751642605_330345_1370657787_6272a1235a7c0181c2d838f6b79bcd32_rle_crop_3872490309_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/e6c9994c509ac3702dd8efdaae576cf6_47870504.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/d2437ae5c4cc32e41efd6f5912fbf38a_61522434.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/9d562ebd16bc639075ce40a007e62ec9_79353423.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/9d562ebd16bc639075ce40a007e62ec9_37552872.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/aab70be8753861597f4ded9c3afa248a_55713645.png change filename to text .imagette246127181751642911/ imagette246127181751642911/1751642605_330345_1370657787_6272a1235a7c0181c2d838f6b79bcd32_rle_crop_3872490309_0.png.png imagette246127181751642911/1751642366_2269384_1370656839_9609c41cb9b90f3f59e7b980c4ebc12c_rle_crop_3872488802_0.png.png imagette246127181751642911/1751642605_330345_1370657831_b81a637e327e8400273f9139c30c8abf_rle_crop_3872490261_0.png.png imagette246127181751642911/1751642605_330345_1370657794_63f69afa54f04774f637af4529c08e9b_rle_crop_3872490291_0.png.png imagette246127181751642911/1751642366_2269384_1370656843_58719a560e478713bf54b7589863f245_rle_crop_3872488780_0.png.png imagette246127181751642911/1751642605_330345_1370657824_6c7adf551933a1a2bf28236552e120c1_rle_crop_3872490273_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/aab70be8753861597f4ded9c3afa248a_51067105.png imagette246127181751642911 24612720 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=24612720 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370658031: '1751642525_2277208_1370657184_b3637e0f221e6d65b558f23fbc0b6c39_rle_crop_3872489826_0.png'} change filename to text .imagette246127201751642911/ imagette246127201751642911/1751642525_2277208_1370657184_b3637e0f221e6d65b558f23fbc0b6c39_rle_crop_3872489826_0.png.png imagette246127211751642911/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/ff87eecf02c1b2aec573d7d7b0f177ff_62639284.png imagette246127201751642911 24612721 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=24612721 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246127211751642911 24612723 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=24612723 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370657341: '1751642366_323665_1370656906_5bc6c2c4e9d91ed3a05d6a173d4cd128_rle_crop_3872488787_0.png', 1370658117: '1751642605_330345_1370657794_63f69afa54f04774f637af4529c08e9b_rle_crop_3872490287_0.png', 1370658118: '1751642605_330345_1370657787_6272a1235a7c0181c2d838f6b79bcd32_rle_crop_3872490305_0.png', 1370658119: '1751642605_330345_1370657734_a9fc775d74f4e0487fd49ebe6651fd8e_rle_crop_3872490314_0.png', 1370658120: '1751642605_330345_1370657729_f1f98375fcef092f172b89f69e62e501_rle_crop_3872490325_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/b0477f6c34c71d15d73431e213d14040_97178058.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/b5c6fbefcd83ca983ce246698b0246d6_96210837.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/b5c6fbefcd83ca983ce246698b0246d6_6920542.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/7be12a80683daf7362ad92f1f955a3e3_57154912.png change filename to text .imagette246127231751642911/ imagette246127231751642911/1751642366_323665_1370656906_5bc6c2c4e9d91ed3a05d6a173d4cd128_rle_crop_3872488787_0.png.png imagette246127231751642911/1751642605_330345_1370657787_6272a1235a7c0181c2d838f6b79bcd32_rle_crop_3872490305_0.png.png imagette246127231751642911/1751642605_330345_1370657794_63f69afa54f04774f637af4529c08e9b_rle_crop_3872490287_0.png.png imagette246127231751642911/1751642605_330345_1370657734_a9fc775d74f4e0487fd49ebe6651fd8e_rle_crop_3872490314_0.png.png imagette246127231751642911/1751642605_330345_1370657729_f1f98375fcef092f172b89f69e62e501_rle_crop_3872490325_0.png.png imagette246127261751642912/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/7be12a80683daf7362ad92f1f955a3e3_2234739.png imagette246127231751642911 24612726 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=24612726 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246127261751642912 24612727 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=24612727 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370658171: '1751642605_330345_1370657831_b81a637e327e8400273f9139c30c8abf_rle_crop_3872490259_0.png', 1370658172: '1751642605_330345_1370657824_6c7adf551933a1a2bf28236552e120c1_rle_crop_3872490271_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/135ad9197ef28d6dd1e3ba36b971df99_68128663.png change filename to text .imagette246127271751642912/ imagette246127271751642912/1751642605_330345_1370657831_b81a637e327e8400273f9139c30c8abf_rle_crop_3872490259_0.png.png imagette246127271751642912/1751642605_330345_1370657824_6c7adf551933a1a2bf28236552e120c1_rle_crop_3872490271_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/135ad9197ef28d6dd1e3ba36b971df99_92441749.png imagette246127271751642912 24612719 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=24612719 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370657313: '1751642366_2269384_1370656835_fe72914e94914395402c0ec6cfc49993_rle_crop_3872488812_0.png', 1370657328: '1751642366_323665_1370656989_7731fbdd450343aa61d41dac51c04e3c_rle_crop_3872488737_0.png', 1370657330: '1751642366_323665_1370656906_5bc6c2c4e9d91ed3a05d6a173d4cd128_rle_crop_3872488794_0.png', 1370657332: '1751642366_323665_1370656900_29e83a0bc82b044c2541b452a29b042b_rle_crop_3872488828_0.png', 1370658021: '1751642525_2277208_1370657189_e0a4c57b2956c1c5bad2cc7034c1b8c3_rle_crop_3872489813_0.png', 1370658108: '1751642605_330345_1370657831_b81a637e327e8400273f9139c30c8abf_rle_crop_3872490257_0.png', 1370658109: '1751642605_330345_1370657824_6c7adf551933a1a2bf28236552e120c1_rle_crop_3872490269_0.png', 1370658110: '1751642605_330345_1370657794_63f69afa54f04774f637af4529c08e9b_rle_crop_3872490284_0.png', 1370658111: '1751642605_330345_1370657787_6272a1235a7c0181c2d838f6b79bcd32_rle_crop_3872490302_0.png', 1370658112: '1751642605_330345_1370657600_4a94d6f7c98b5cf09a22f7610f366b0a_rle_crop_3872490381_0.png', 1370658113: '1751642605_330345_1370657598_faa01571727bb41d73c5a9808e552231_rle_crop_3872490398_0.png', 1370658114: '1751642605_330345_1370657564_11561ae7dc0390cc9e690a429c5e6678_rle_crop_3872490417_0.png', 1370658115: '1751642605_330345_1370657562_a2313722374e875aa4e8caff76b2b5ae_rle_crop_3872490439_0.png', 1370658185: '1751642647_2280107_1370657466_d8503966e1892e8929f624de5d7cf3f5_rle_crop_3872491297_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/4286b3623dab6a3b2d610d52c773d327_67953503.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/6422ad434dd553226beba7afa1807cc2_74093108.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/a63c0e0e58dee68034b3898887cd1c07_98050809.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/dff96b0959f353c1febcb166bbb390b9_83200440.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/6dde613973553040596d57c817ac8951_98232659.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/674d76f32fe31473cfa52cae24282f70_61737457.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/674d76f32fe31473cfa52cae24282f70_39997138.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/e930036c61316026fa3163729a498b2c_47273209.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/e930036c61316026fa3163729a498b2c_40797929.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/579e47a53503c741a83a2ce0f7157099_98584438.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/579e47a53503c741a83a2ce0f7157099_51131235.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/da1be18978c400f47d90484ef6ffe8d8_423038.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/da1be18978c400f47d90484ef6ffe8d8_37227448.png change filename to text .imagette246127191751642912/ imagette246127191751642912/1751642605_330345_1370657600_4a94d6f7c98b5cf09a22f7610f366b0a_rle_crop_3872490381_0.png.png imagette246127191751642912/1751642605_330345_1370657831_b81a637e327e8400273f9139c30c8abf_rle_crop_3872490257_0.png.png imagette246127191751642912/1751642605_330345_1370657794_63f69afa54f04774f637af4529c08e9b_rle_crop_3872490284_0.png.png imagette246127191751642912/1751642605_330345_1370657598_faa01571727bb41d73c5a9808e552231_rle_crop_3872490398_0.png.png imagette246127191751642912/1751642647_2280107_1370657466_d8503966e1892e8929f624de5d7cf3f5_rle_crop_3872491297_0.png.png imagette246127191751642912/1751642525_2277208_1370657189_e0a4c57b2956c1c5bad2cc7034c1b8c3_rle_crop_3872489813_0.png.png imagette246127191751642912/1751642605_330345_1370657824_6c7adf551933a1a2bf28236552e120c1_rle_crop_3872490269_0.png.png imagette246127191751642912/1751642366_323665_1370656989_7731fbdd450343aa61d41dac51c04e3c_rle_crop_3872488737_0.png.png imagette246127191751642912/1751642366_2269384_1370656835_fe72914e94914395402c0ec6cfc49993_rle_crop_3872488812_0.png.png imagette246127191751642912/1751642366_323665_1370656906_5bc6c2c4e9d91ed3a05d6a173d4cd128_rle_crop_3872488794_0.png.png imagette246127191751642912/1751642366_323665_1370656900_29e83a0bc82b044c2541b452a29b042b_rle_crop_3872488828_0.png.png imagette246127191751642912/1751642605_330345_1370657562_a2313722374e875aa4e8caff76b2b5ae_rle_crop_3872490439_0.png.png imagette246127191751642912/1751642605_330345_1370657564_11561ae7dc0390cc9e690a429c5e6678_rle_crop_3872490417_0.png.png imagette246127191751642912/1751642605_330345_1370657787_6272a1235a7c0181c2d838f6b79bcd32_rle_crop_3872490302_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/aa96c7a28baadc0419424886b48ca63c_4218506.png imagette246127191751642912 24612722 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=24612722 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370657320: '1751642366_2269384_1370656835_fe72914e94914395402c0ec6cfc49993_rle_crop_3872488806_0.png', 1370657349: '1751642366_323665_1370656989_7731fbdd450343aa61d41dac51c04e3c_rle_crop_3872488731_0.png', 1370658024: '1751642525_2277208_1370657184_b3637e0f221e6d65b558f23fbc0b6c39_rle_crop_3872489829_0.png', 1370658137: '1751642605_330345_1370657638_3e5c343997ea96bd99048bf50879d492_rle_crop_3872490340_0.png', 1370658141: '1751642605_330345_1370657633_060c77a32102083b6eafc57b0baf169b_rle_crop_3872490353_0.png', 1370658145: '1751642605_330345_1370657564_11561ae7dc0390cc9e690a429c5e6678_rle_crop_3872490405_0.png', 1370658149: '1751642605_330345_1370657562_a2313722374e875aa4e8caff76b2b5ae_rle_crop_3872490427_0.png', 1370658187: '1751642647_2280107_1370657466_d8503966e1892e8929f624de5d7cf3f5_rle_crop_3872491288_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/4fd3496d5b10d7e8cbcd987a45d30863_92793537.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/a98a8f3a57c7db067a36d40b9481d47b_80352939.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/4acd7d2892bbc519b661391fc8b41ae3_40429076.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/f198159bbf80c858cb39300b98793b83_50727924.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/f198159bbf80c858cb39300b98793b83_14279320.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/4cee5ca2d132e1e2f9c1eda2d64a4b4f_95743330.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/4cee5ca2d132e1e2f9c1eda2d64a4b4f_18670352.png change filename to text .imagette246127221751642913/ imagette246127221751642913/1751642366_2269384_1370656835_fe72914e94914395402c0ec6cfc49993_rle_crop_3872488806_0.png.png imagette246127221751642913/1751642647_2280107_1370657466_d8503966e1892e8929f624de5d7cf3f5_rle_crop_3872491288_0.png.png imagette246127221751642913/1751642605_330345_1370657633_060c77a32102083b6eafc57b0baf169b_rle_crop_3872490353_0.png.png imagette246127221751642913/1751642605_330345_1370657638_3e5c343997ea96bd99048bf50879d492_rle_crop_3872490340_0.png.png imagette246127221751642913/1751642605_330345_1370657562_a2313722374e875aa4e8caff76b2b5ae_rle_crop_3872490427_0.png.png imagette246127221751642913/1751642525_2277208_1370657184_b3637e0f221e6d65b558f23fbc0b6c39_rle_crop_3872489829_0.png.png imagette246127221751642913/1751642366_323665_1370656989_7731fbdd450343aa61d41dac51c04e3c_rle_crop_3872488731_0.png.png imagette246127221751642913/1751642605_330345_1370657564_11561ae7dc0390cc9e690a429c5e6678_rle_crop_3872490405_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/3647637680472f2c5d8a1b46761f7c3a_13248055.png imagette246127221751642913 24612724 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=24612724 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370657369: '1751642366_323665_1370656894_e1a2c8a321cdea66c67ae66ccb0aa86d_rle_crop_3872488846_0.png', 1370658029: '1751642525_2277208_1370657184_b3637e0f221e6d65b558f23fbc0b6c39_rle_crop_3872489828_0.png', 1370658151: '1751642605_330345_1370657794_63f69afa54f04774f637af4529c08e9b_rle_crop_3872490288_0.png', 1370658152: '1751642605_330345_1370657787_6272a1235a7c0181c2d838f6b79bcd32_rle_crop_3872490306_0.png', 1370658154: '1751642605_330345_1370657638_3e5c343997ea96bd99048bf50879d492_rle_crop_3872490342_0.png', 1370658156: '1751642605_330345_1370657633_060c77a32102083b6eafc57b0baf169b_rle_crop_3872490355_0.png', 1370658158: '1751642605_330345_1370657600_4a94d6f7c98b5cf09a22f7610f366b0a_rle_crop_3872490372_0.png', 1370658160: '1751642605_330345_1370657598_faa01571727bb41d73c5a9808e552231_rle_crop_3872490389_0.png', 1370658196: '1751642647_2280107_1370657466_d8503966e1892e8929f624de5d7cf3f5_rle_crop_3872491292_0.png', 1370658197: '1751642647_2280107_1370657457_21515206ad3e775c6e42afa63898568c_rle_crop_3872491304_0.png', 1370658500: '1751642766_2283187_1370657993_cc312120e5f585707df2d64e40118b9e_rle_crop_3872491963_0.png', 1370658501: '1751642766_2283187_1370657959_8aaceeca68ee9ff209b9e8e1c3bc8f89_rle_crop_3872491971_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/d252222f2a041dcd9dc2fd4497b75491_54953168.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/a8e58e4d963d96d5f3a60e4667a7fa4a_68296376.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/6e240884bc7cb1f7e1a391c143c4c5d4_13425094.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/6e240884bc7cb1f7e1a391c143c4c5d4_13595771.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/f836f5bbcf248bb9d278f75b36a34bad_3345521.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/f836f5bbcf248bb9d278f75b36a34bad_4398703.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/6e3bc0e5dede14222abdc76b7bf53611_14587735.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/6e3bc0e5dede14222abdc76b7bf53611_4211097.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/43f04a3938d55c2e20da2afeb7b2234a_86759449.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/707cb8eb427606103d61b773c21b79cc_51715695.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/df40bbac14bc2fd73283b602b2013115_74833064.png change filename to text .imagette246127241751642913/ imagette246127241751642913/1751642366_323665_1370656894_e1a2c8a321cdea66c67ae66ccb0aa86d_rle_crop_3872488846_0.png.png imagette246127241751642913/1751642766_2283187_1370657959_8aaceeca68ee9ff209b9e8e1c3bc8f89_rle_crop_3872491971_0.png.png imagette246127241751642913/1751642647_2280107_1370657466_d8503966e1892e8929f624de5d7cf3f5_rle_crop_3872491292_0.png.png imagette246127241751642913/1751642525_2277208_1370657184_b3637e0f221e6d65b558f23fbc0b6c39_rle_crop_3872489828_0.png.png imagette246127241751642913/1751642605_330345_1370657638_3e5c343997ea96bd99048bf50879d492_rle_crop_3872490342_0.png.png imagette246127241751642913/1751642605_330345_1370657633_060c77a32102083b6eafc57b0baf169b_rle_crop_3872490355_0.png.png imagette246127241751642913/1751642605_330345_1370657794_63f69afa54f04774f637af4529c08e9b_rle_crop_3872490288_0.png.png imagette246127241751642913/1751642605_330345_1370657787_6272a1235a7c0181c2d838f6b79bcd32_rle_crop_3872490306_0.png.png imagette246127241751642913/1751642647_2280107_1370657457_21515206ad3e775c6e42afa63898568c_rle_crop_3872491304_0.png.png imagette246127241751642913/1751642605_330345_1370657598_faa01571727bb41d73c5a9808e552231_rle_crop_3872490389_0.png.png imagette246127241751642913/1751642605_330345_1370657600_4a94d6f7c98b5cf09a22f7610f366b0a_rle_crop_3872490372_0.png.png imagette246127241751642913/1751642766_2283187_1370657993_cc312120e5f585707df2d64e40118b9e_rle_crop_3872491963_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/0a1f64d30ffb7b50a243de0229107c1f_58449404.png imagette246127241751642913 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24612688 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24612729,24612730,24612731,24612732,24612733,24612734,24612735,24612736,24612737,24612738,24612739,24612740?tags=cartonnette,plastique,Teint_Dans_La_Masse,kraft,mal_croppe,Carton_gris,autre_refus,Carton_brun,environnement,flou,metal,papier your option no_mail is active, we will not send the real mail to your client args[1370658567] : ('0.04186500501304778',) no score found for photo 1370658567 We are sending mail with results at report@fotonower.com args[1370658566] : ('0.04186500501304778',) no score found for photo 1370658566 We are sending mail with results at report@fotonower.com args[1370658564] : ('0.04186500501304778',) no score found for photo 1370658564 We are sending mail with results at report@fotonower.com args[1370658563] : ('0.04186500501304778',) no score found for photo 1370658563 We are sending mail with results at report@fotonower.com args[1370658559] : ('0.04186500501304778',) no score found for photo 1370658559 We are sending mail with results at report@fotonower.com args[1370658557] : ('0.04186500501304778',) no score found for photo 1370658557 We are sending mail with results at report@fotonower.com args[1370658553] : ('0.04186500501304778',) no score found for photo 1370658553 We are sending mail with results at report@fotonower.com args[1370658552] : ('0.04186500501304778',) no score found for photo 1370658552 We are sending mail with results at report@fotonower.com args[1370658547] : ('0.04186500501304778',) no score found for photo 1370658547 We are sending mail with results at report@fotonower.com args[1370658546] : ('0.04186500501304778',) no score found for photo 1370658546 We are sending mail with results at report@fotonower.com args[1370658542] : ('0.04186500501304778',) no score found for photo 1370658542 We are sending mail with results at report@fotonower.com args[1370658541] : ('0.04186500501304778',) no score found for photo 1370658541 We are sending mail with results at report@fotonower.com args[1370658495] : ('0.04186500501304778',) no score found for photo 1370658495 We are sending mail with results at report@fotonower.com args[1370658490] : ('0.04186500501304778',) no score found for photo 1370658490 We are sending mail with results at report@fotonower.com args[1370658476] : ('0.04186500501304778',) no score found for photo 1370658476 We are sending mail with results at report@fotonower.com args[1370658466] : ('0.04186500501304778',) no score found for photo 1370658466 We are sending mail with results at report@fotonower.com args[1370658437] : ('0.04186500501304778',) no score found for photo 1370658437 We are sending mail with results at report@fotonower.com args[1370658412] : ('0.04186500501304778',) no score found for photo 1370658412 We are sending mail with results at report@fotonower.com refus_total : 0.04186500501304778 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=24612688 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_P24612688_04-07-2025_17_28_30.pdf results_Auto_P24612688_04-07-2025_17_28_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24612688_04-07-2025_17_28_30.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','24612688','results_Auto_P24612688_04-07-2025_17_28_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24612688_04-07-2025_17_28_30.pdf','pdf','','0.26','0.04186500501304778') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24612688]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412] map_info['map_portfolio_photo'] : {24612688: [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412, 1370658281, 1370658266, 1370658261, 1370658256, 1370658252, 1370658239, 1370658224, 1370658217, 1370658199, 1370658188, 1370658180, 1370658173, 1370658103, 1370658097, 1370658093, 1370658088, 1370658083, 1370658079, 1370658030, 1370658017, 1370658012, 1370658008, 1370657993, 1370657959, 1370657831, 1370657824, 1370657794, 1370657787, 1370657734, 1370657729, 1370657638, 1370657633, 1370657600, 1370657598, 1370657564, 1370657562, 1370657469, 1370657466, 1370657457, 1370657452, 1370657434, 1370657400, 1370657288, 1370657285, 1370657280, 1370657274, 1370657270, 1370657265, 1370657233, 1370657225, 1370657206, 1370657189, 1370657184, 1370657179, 1370656989, 1370656981, 1370656932, 1370656906, 1370656900, 1370656894, 1370656859, 1370656857, 1370656845, 1370656843, 1370656839, 1370656835]} final : False mtd_id 4302 list_pids : [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412] 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, '3237727') ('4302', '24612688', '1370658567', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658566', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658564', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658563', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658559', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658557', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658553', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658552', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658547', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658546', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658542', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658541', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658495', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658490', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658476', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658466', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658437', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658412', None, None, None, None, None, '3237727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '24612688', '1370658567', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658566', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658564', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658563', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658559', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658557', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658553', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658552', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658547', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658546', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658542', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658541', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658495', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658490', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658476', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658466', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658437', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658412', None, None, None, None, None, '3237727')] time used for this insertion : 0.018434762954711914 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.145293474197388 time spend to save output : 0.018787145614624023 total time spend for step 4 : 5.164080619812012 step5:split_time_score Fri Jul 4 17:28:35 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24612688'] 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 : [('24612688',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24612688) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1370658566: {'path': 'temp/1751642910_1771878_1370658566_b4061c804c2fe7b3bf1d12ddb80140ce.jpg', 'extension': 'jpg'}, 1370658567: {'path': 'temp/1751642910_1771878_1370658567_059398f8813f04e3b2cac4074f50e69b.jpg', 'extension': 'jpg'}, 1370658546: {'path': 'temp/1751642910_1771878_1370658546_33294fdae7c811d6f50138d3d75d4777.jpg', 'extension': 'jpg'}, 1370658547: {'path': 'temp/1751642910_1771878_1370658547_5bed961dd90d983b23321ec10db4bbce.jpg', 'extension': 'jpg'}, 1370658552: {'path': 'temp/1751642910_1771878_1370658552_b100d8394eff9ba34854615ac3ac7676.jpg', 'extension': 'jpg'}, 1370658553: {'path': 'temp/1751642910_1771878_1370658553_a4bed67b7db6ee1a287b383fc61997a9.jpg', 'extension': 'jpg'}, 1370658557: {'path': 'temp/1751642910_1771878_1370658557_c3ac5010459b70804c63b3456ece6f3a.jpg', 'extension': 'jpg'}, 1370658559: {'path': 'temp/1751642910_1771878_1370658559_85d605493ee5b36aee5a3594a87099a9.jpg', 'extension': 'jpg'}, 1370658563: {'path': 'temp/1751642910_1771878_1370658563_4f84bb6a1806a7ce81fff9d03d9c6dc9.jpg', 'extension': 'jpg'}, 1370658564: {'path': 'temp/1751642910_1771878_1370658564_8dac8020720428ac267a9cf6274a5837.jpg', 'extension': 'jpg'}, 1370658490: {'path': 'temp/1751642910_1771878_1370658490_066989aa9f4e42f685795e2c4e8e0fe4.jpg', 'extension': 'jpg'}, 1370658495: {'path': 'temp/1751642910_1771878_1370658495_350a3ee3c369c43c2cdc41ef5ebdb3de.jpg', 'extension': 'jpg'}, 1370658541: {'path': 'temp/1751642910_1771878_1370658541_e734013c927373227d9c497551545385.jpg', 'extension': 'jpg'}, 1370658542: {'path': 'temp/1751642910_1771878_1370658542_245d8a004616d1e6a659db1a4d52b5d8.jpg', 'extension': 'jpg'}, 1370658412: {'path': 'temp/1751642910_1771878_1370658412_e7e3c190241aea774653c3090a3c2b43.jpg', 'extension': 'jpg'}, 1370658437: {'path': 'temp/1751642910_1771878_1370658437_05feea8ba42e0c30260cb5063dab9118.jpg', 'extension': 'jpg'}, 1370658466: {'path': 'temp/1751642910_1771878_1370658466_41e256059ef55c4752b61a1e0bb87cd4.jpg', 'extension': 'jpg'}, 1370658476: {'path': 'temp/1751642910_1771878_1370658476_c62bfd521f037375b4e2cd17e856a230.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 = 24612688; (('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 = 24612688 group by h (('17', 84),) 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=24612688 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 (24612688) 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 (24612688) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04072025 24612688 Nombre de photos uploadées : 84 / 23040 (0%) 04072025 24612688 Nombre de photos taguées (types de déchets): 0 / 84 (0%) 04072025 24612688 Nombre de photos taguées (volume) : 0 / 84 (0%) [{'photo_id': 1370656859, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/f1161d36ce67c98be8621ff113746aa7.jpg', 'username': None, 'uploaded_at': 1751642183, 'text': 'image_04072025_17_15_04_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370656857, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/b011aad60dc9b14171e3a5845664b29f.jpg', 'username': None, 'uploaded_at': 1751642183, 'text': 'image_04072025_17_15_14_010132m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370656845, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/eb9655d24b32ca6019a86ca8aded5549.jpg', 'username': None, 'uploaded_at': 1751642183, 'text': 'image_04072025_17_15_23_009122m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370656843, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/58719a560e478713bf54b7589863f245.jpg', 'username': None, 'uploaded_at': 1751642183, 'text': 'image_04072025_17_15_33_010132m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ???????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0037446022033691406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24612688, '2025-07-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1951450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02416253089904785 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= 1951450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24608557, 'dashboard_result_id': 12139936, '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_P24608557_04-07-2025_16_00_06.pdf'}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24601516, 'dashboard_result_id': 12139937, '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_P24601516_04-07-2025_15_00_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24601549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24601550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24601551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24601552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24601553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24601554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24601555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24601556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24601557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24601558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24601559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24601560, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24597959, 'dashboard_result_id': 12139938, '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_P24597959_04-07-2025_14_00_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24597994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24597995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24597996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24597997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24597998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24597999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24598000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24598001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24598002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24598003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24598004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24598005, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24592838, 'dashboard_result_id': 12139939, '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_P24592838_04-07-2025_13_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24592881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24592882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24592883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24592884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24592885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24592886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24592887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24592888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24592889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24592890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24592891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24592892, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24589471, 'dashboard_result_id': 12139940, '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_P24589471_04-07-2025_12_00_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24589518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24589519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24589520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24589521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24589523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24589525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24589526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24589528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24589529, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24589531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24589533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24589534, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24586317, 'dashboard_result_id': 12139941, '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_P24586317_04-07-2025_11_00_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24586410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24586411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24586412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24586413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24586414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24586415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24586416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24586417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24586418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24586419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24586420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24586421, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24581990, 'dashboard_result_id': 12139942, '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_P24581990_04-07-2025_10_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24582049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24582050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24582051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24582052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24582053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24582054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24582055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24582056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24582057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24582058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24582059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24582060, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24580137, 'dashboard_result_id': 12139943, '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_P24580137_04-07-2025_08_50_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24580142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580153, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24580345, 'dashboard_result_id': 12139944, '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_P24580345_04-07-2025_08_46_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24580417, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24581606, 'dashboard_result_id': 12139945, '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_P24581606_04-07-2025_09_06_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24581648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24581649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24581650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24581651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24581652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24581653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24581654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24581655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24581656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24581657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24581658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24581659, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24582937, 'dashboard_result_id': 12139946, '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_P24582937_04-07-2025_09_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24582973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24582974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24582975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24582976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24582977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24582978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24582979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24582980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24582981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24582982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24582983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24582984, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24583904, 'dashboard_result_id': 12139947, '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_P24583904_04-07-2025_09_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24583907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24583908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24583909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24583910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24583911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24583912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24583913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24583914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24583915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24583916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24583917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24583918, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24584826, 'dashboard_result_id': 12139948, '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_P24584826_04-07-2025_09_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24584898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24584899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24584900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24584901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24584902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24584903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24584904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24584905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24584906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24584907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24584908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24584909, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24585822, 'dashboard_result_id': 12139949, '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_P24585822_04-07-2025_10_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24585845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24585846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24585847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24585848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24585849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24585850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24585851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24585852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24585853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24585854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24585855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24585856, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24586610, 'dashboard_result_id': 12139951, '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_P24586610_04-07-2025_10_17_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24586699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24586700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24586701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24586702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24586703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24586704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24586705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24586706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24586707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24586708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24586709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24586710, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24587639, 'dashboard_result_id': 12139952, '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_P24587639_04-07-2025_10_33_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24587644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24587645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24587646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24587647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24587648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24587649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24587650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24587651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24587652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24587653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24587654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24587655, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24588270, 'dashboard_result_id': 12139953, '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_P24588270_04-07-2025_10_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24588275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24588276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24588277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24588278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24588279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24588280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24588281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24588282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24588283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24588284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24588285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24588286, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24588966, 'dashboard_result_id': 12139954, '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_P24588966_04-07-2025_11_03_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24588976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24588977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24588978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24588979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24588980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24588981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24588982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24588983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24588984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24588985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24588986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24588987, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24589659, 'dashboard_result_id': 12139955, '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_P24589659_04-07-2025_11_17_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24589762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24589763, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24589764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24589765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24589766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24589767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24589768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24589769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24589770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24589771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24589772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24589773, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24590654, 'dashboard_result_id': 12139956, '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_P24590654_04-07-2025_11_33_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24590659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24590660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24590661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24590662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24590663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24590664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24590665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24590666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24590667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24590668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24590669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24590670, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24591419, 'dashboard_result_id': 12139957, '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_P24591419_04-07-2025_11_47_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24591451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24591452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24591454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24591455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24591456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24591457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24591458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24591459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24591460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24591461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24591462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24591463, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24592235, 'dashboard_result_id': 12139958, '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_P24592235_04-07-2025_12_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24592256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24592258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24592260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24592261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24592263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24592265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24592266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24592268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24592271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24592272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24592274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24592275, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24592974, 'dashboard_result_id': 12139959, '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_P24592974_04-07-2025_12_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24593030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24593033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24593037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24593040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24593043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24593047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24593049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24593052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24593054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24593057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24593059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24593061, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24594425, 'dashboard_result_id': 12139960, '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_P24594425_04-07-2025_12_33_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24594452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24594453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24594454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24594455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24594456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24594457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24594458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24594459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24594460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24594461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24594462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24594463, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24595704, 'dashboard_result_id': 12139961, '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_P24595704_04-07-2025_12_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24595736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24595738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24595740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24595741, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24595743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24595745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24595746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24595747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24595748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24595749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24595750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24595751, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24597106, 'dashboard_result_id': 12139962, '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_P24597106_04-07-2025_13_02_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24597195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24597196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24597197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24597198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24597199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24597200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24597201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24597202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24597203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24597204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24597205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24597206, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24598154, 'dashboard_result_id': 12139964, '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_P24598154_04-07-2025_13_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24598280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24598282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24598284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24598285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24598287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24598289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24598290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24598291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24598292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24598293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24598294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24598295, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24599487, 'dashboard_result_id': 12139965, '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_P24599487_04-07-2025_13_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24599564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24599565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24599566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24599567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24599568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24599569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24599570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24599571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24599572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24599573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24599574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24599575, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24600389, 'dashboard_result_id': 12139966, '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_P24600389_04-07-2025_13_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24600434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24600435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24600437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24600438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24600439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24600440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24600441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24600442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24600444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24600445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24600446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24600447, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24601084, 'dashboard_result_id': 12139967, '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_P24601084_04-07-2025_14_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24601088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24601089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24601090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24601091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24601092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24601093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24601094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24601095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24601096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24601097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24601098, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24601100, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24601660, 'dashboard_result_id': 12139968, '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_P24601660_04-07-2025_14_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24601710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24601711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24601712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24601713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24601714, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24601715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24601716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24601717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24601718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24601719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24601720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24601721, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24602486, 'dashboard_result_id': 12139969, '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_P24602486_04-07-2025_14_33_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24602499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24602500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24602501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24602502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24602503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24602504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24602505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24602506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24602507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24602508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24602509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24602510, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24603179, 'dashboard_result_id': 12139970, '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_P24603179_04-07-2025_14_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24603244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24603246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24603247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24603249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24603250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24603252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24603253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24603254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24603255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24603256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24603257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24603258, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24604251, 'dashboard_result_id': 12139971, '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_P24604251_04-07-2025_15_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24604307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24604308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24604309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24604310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24604311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24604312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24604313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24604314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24604315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24604316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24604317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24604318, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24605340, 'dashboard_result_id': 12139972, '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_P24605340_04-07-2025_15_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24605349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24605350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24605351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24605352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24605353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24605354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24605355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24605356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24605357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24605358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24605359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24605360, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24606574, 'dashboard_result_id': 12139973, '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_P24606574_04-07-2025_15_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24606582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24606583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24606584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24606585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24606586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24606587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24606588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24606589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24606590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24606591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24606592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24606593, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24607246, 'dashboard_result_id': 12139974, '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_P24607246_04-07-2025_15_47_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24607294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24607295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24607296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24607297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24607298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24607299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24607300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24607301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24607303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24607304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24607305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24607306, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24608042, 'dashboard_result_id': 12139975, '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_P24608042_04-07-2025_15_59_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24608083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24608085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24608086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24608087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24608088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24608089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24608090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24608091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24608092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24608093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24608094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24608095, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24610124, 'dashboard_result_id': 12139977, '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_P24610124_04-07-2025_16_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24610147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24610148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24610149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24610150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24610151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24610152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24610153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24610154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24610155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24610156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24610157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24610158, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24611160, 'dashboard_result_id': 12139978, '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_P24611160_04-07-2025_17_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24611260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24611261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24611262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24611264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24611265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24611266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24611268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24611269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24611270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24611271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24611272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24611273, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24611872, 'dashboard_result_id': 12139979, '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_P24611872_04-07-2025_17_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24611891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24611892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24611894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24611895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24611896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24611897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24611899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24611900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24611901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24611903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24611904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24611905, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1960709, 'mtr_portfolio_id': 24612688, 'dashboard_result_id': 12139980, '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_P24612688_04-07-2025_17_26_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24612717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24612718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24612719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24612720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24612721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24612722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24612723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24612724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24612725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24612726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24612727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24612728, '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 = 24608557 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 = 24608557 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 = 24608557 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24608557 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 = 24608557 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24608557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24608557_04-07-2025_16_00_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24608557 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_P24608557_04-07-2025_16_00_06.pdf'}" where mtr_portfolio_id = 24608557 and dashboard_run_id = 1960709 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 = 24601516 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 = 24601516 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 = 24601516 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24601516 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 = 24601516 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24601516 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24601516_04-07-2025_15_00_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24601516 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_P24601516_04-07-2025_15_00_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24601549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24601550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24601551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24601552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24601553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24601554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24601555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24601556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24601557, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24601558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24601559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24601560, 'pht': 3726}}" where mtr_portfolio_id = 24601516 and dashboard_run_id = 1960709 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 = 24597959 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 = 24597959 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 = 24597959 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24597959 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 = 24597959 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24597959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24597959_04-07-2025_14_00_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24597959 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_P24597959_04-07-2025_14_00_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24597994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24597995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24597996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24597997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24597998, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24597999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24598000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24598001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24598002, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24598003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24598004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24598005, 'pht': 3726}}" where mtr_portfolio_id = 24597959 and dashboard_run_id = 1960709 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 = 24592838 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 = 24592838 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 = 24592838 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24592838 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 = 24592838 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24592838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24592838_04-07-2025_13_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24592838 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_P24592838_04-07-2025_13_00_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24592881, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24592882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24592883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24592884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24592885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24592886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24592887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24592888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24592889, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24592890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24592891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24592892, 'pht': 3726}}" where mtr_portfolio_id = 24592838 and dashboard_run_id = 1960709 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 = 24589471 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 = 24589471 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 = 24589471 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24589471 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 = 24589471 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24589471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24589471_04-07-2025_12_00_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24589471 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_P24589471_04-07-2025_12_00_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24589518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24589519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24589520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24589521, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24589523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24589525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24589526, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24589528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24589529, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24589531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24589533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24589534, 'pht': 3726}}" where mtr_portfolio_id = 24589471 and dashboard_run_id = 1960709 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 = 24586317 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': 3235188, 'mtr_portfolio_id': 24586317, 'created_at': datetime.datetime(2025, 7, 4, 11, 0, 37), 'result': '0.07747997849234448', 'result_long': None, 'result_double': None}] Qualite : 0.07747997849234448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24586317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24586317_04-07-2025_11_00_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24586317 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_P24586317_04-07-2025_11_00_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24586410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24586411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24586412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24586413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24586414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24586415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24586416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24586417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24586418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24586419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24586420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24586421, 'pht': 3726}}" where mtr_portfolio_id = 24586317 and dashboard_run_id = 1960709 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`=24586317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139941, 0.07747997849234448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24586317_04-07-2025_11_00_38.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24586410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24586411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24586412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24586413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24586414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24586415, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24586416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24586417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24586418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24586419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24586420, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24586421, '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 = 24581990 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 = 24581990 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 = 24581990 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24581990 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 = 24581990 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24581990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24581990_04-07-2025_10_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24581990 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_P24581990_04-07-2025_10_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24582049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24582050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24582051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24582052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24582053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24582054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24582055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24582056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24582057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24582058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24582059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24582060, 'pht': 3726}}" where mtr_portfolio_id = 24581990 and dashboard_run_id = 1960709 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 = 24580137 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': 3234437, 'mtr_portfolio_id': 24580137, 'created_at': datetime.datetime(2025, 7, 4, 8, 50, 58), 'result': '0.05196932696448502', 'result_long': None, 'result_double': None}] Qualite : 0.05196932696448502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24580137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24580137_04-07-2025_08_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24580137 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_P24580137_04-07-2025_08_50_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24580142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580153, 'pht': 3726}}" where mtr_portfolio_id = 24580137 and dashboard_run_id = 1960709 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`=24580137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139943, 0.05196932696448502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24580137_04-07-2025_08_50_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24580142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580153, '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 = 24580345 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': 3234502, 'mtr_portfolio_id': 24580345, 'created_at': datetime.datetime(2025, 7, 4, 8, 46, 56), 'result': '0.03849710588211739', 'result_long': None, 'result_double': None}] Qualite : 0.03849710588211739 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24580345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24580345_04-07-2025_08_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24580345 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_P24580345_04-07-2025_08_46_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24580417, 'pht': 3726}}" where mtr_portfolio_id = 24580345 and dashboard_run_id = 1960709 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`=24580345 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139944, 0.03849710588211739, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24580345_04-07-2025_08_46_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24580417, '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 = 24581606 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': 3234711, 'mtr_portfolio_id': 24581606, 'created_at': datetime.datetime(2025, 7, 4, 9, 6, 59), 'result': '0.048503315117755456', 'result_long': None, 'result_double': None}] Qualite : 0.048503315117755456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24581606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24581606_04-07-2025_09_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24581606 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_P24581606_04-07-2025_09_06_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24581648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24581649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24581650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24581651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24581652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24581653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24581654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24581655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24581656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24581657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24581658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24581659, 'pht': 3726}}" where mtr_portfolio_id = 24581606 and dashboard_run_id = 1960709 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`=24581606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139945, 0.048503315117755456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24581606_04-07-2025_09_06_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24581648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24581649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24581650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24581651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24581652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24581653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24581654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24581655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24581656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24581657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24581658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24581659, '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 = 24582937 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': 3234843, 'mtr_portfolio_id': 24582937, 'created_at': datetime.datetime(2025, 7, 4, 9, 19, 27), 'result': '0.1140078252282661', 'result_long': None, 'result_double': None}] Qualite : 0.1140078252282661 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24582937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24582937_04-07-2025_09_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24582937 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_P24582937_04-07-2025_09_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24582973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24582974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24582975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24582976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24582977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24582978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24582979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24582980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24582981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24582982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24582983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24582984, 'pht': 3726}}" where mtr_portfolio_id = 24582937 and dashboard_run_id = 1960709 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`=24582937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139946, 0.1140078252282661, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24582937_04-07-2025_09_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24582973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24582974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24582975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24582976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24582977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24582978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24582979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24582980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24582981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24582982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24582983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24582984, '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 = 24583904 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': 3234941, 'mtr_portfolio_id': 24583904, 'created_at': datetime.datetime(2025, 7, 4, 9, 33), 'result': '0.11391962360166942', 'result_long': None, 'result_double': None}] Qualite : 0.11391962360166942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24583904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24583904_04-07-2025_09_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24583904 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_P24583904_04-07-2025_09_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24583907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24583908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24583909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24583910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24583911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24583912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24583913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24583914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24583915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24583916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24583917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24583918, 'pht': 3726}}" where mtr_portfolio_id = 24583904 and dashboard_run_id = 1960709 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`=24583904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139947, 0.11391962360166942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24583904_04-07-2025_09_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24583907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24583908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24583909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24583910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24583911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24583912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24583913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24583914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24583915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24583916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24583917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24583918, '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 = 24584826 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': 3235009, 'mtr_portfolio_id': 24584826, 'created_at': datetime.datetime(2025, 7, 4, 9, 47, 1), 'result': '0.0564031836371381', 'result_long': None, 'result_double': None}] Qualite : 0.0564031836371381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24584826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24584826_04-07-2025_09_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24584826 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_P24584826_04-07-2025_09_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24584898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24584899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24584900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24584901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24584902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24584903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24584904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24584905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24584906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24584907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24584908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24584909, 'pht': 3726}}" where mtr_portfolio_id = 24584826 and dashboard_run_id = 1960709 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`=24584826 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139948, 0.0564031836371381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24584826_04-07-2025_09_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24584898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24584899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24584900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24584901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24584902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24584903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24584904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24584905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24584906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24584907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24584908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24584909, '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 = 24585822 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': 3235114, 'mtr_portfolio_id': 24585822, 'created_at': datetime.datetime(2025, 7, 4, 10, 2, 57), 'result': '0.03770389413787596', 'result_long': None, 'result_double': None}] Qualite : 0.03770389413787596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24585822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24585822_04-07-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24585822 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_P24585822_04-07-2025_10_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24585845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24585846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24585847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24585848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24585849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24585850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24585851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24585852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24585853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24585854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24585855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24585856, 'pht': 3726}}" where mtr_portfolio_id = 24585822 and dashboard_run_id = 1960709 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`=24585822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139949, 0.03770389413787596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24585822_04-07-2025_10_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24585845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24585846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24585847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24585848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24585849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24585850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24585851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24585852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24585853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24585854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24585855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24585856, '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 = 24586610 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': 3235224, 'mtr_portfolio_id': 24586610, 'created_at': datetime.datetime(2025, 7, 4, 10, 17), 'result': '0.014005982697869443', 'result_long': None, 'result_double': None}] Qualite : 0.014005982697869443 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24586610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24586610_04-07-2025_10_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24586610 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_P24586610_04-07-2025_10_17_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24586699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24586700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24586701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24586702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24586703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24586704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24586705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24586706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24586707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24586708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24586709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24586710, 'pht': 3726}}" where mtr_portfolio_id = 24586610 and dashboard_run_id = 1960709 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`=24586610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139951, 0.014005982697869443, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24586610_04-07-2025_10_17_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24586699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24586700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24586701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24586702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24586703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24586704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24586705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24586706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24586707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24586708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24586709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24586710, '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 = 24587639 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': 3235341, 'mtr_portfolio_id': 24587639, 'created_at': datetime.datetime(2025, 7, 4, 10, 33, 30), 'result': '0.024579869151806894', 'result_long': None, 'result_double': None}] Qualite : 0.024579869151806894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24587639 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24587639_04-07-2025_10_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24587639 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_P24587639_04-07-2025_10_33_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24587644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24587645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24587646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24587647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24587648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24587649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24587650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24587651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24587652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24587653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24587654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24587655, 'pht': 3726}}" where mtr_portfolio_id = 24587639 and dashboard_run_id = 1960709 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`=24587639 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139952, 0.024579869151806894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24587639_04-07-2025_10_33_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24587644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24587645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24587646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24587647, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24587648, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24587649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24587650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24587651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24587652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24587653, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24587654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24587655, '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 = 24588270 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': 3235406, 'mtr_portfolio_id': 24588270, 'created_at': datetime.datetime(2025, 7, 4, 10, 47), 'result': '0.040984435109491804', 'result_long': None, 'result_double': None}] Qualite : 0.040984435109491804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24588270 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24588270_04-07-2025_10_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24588270 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_P24588270_04-07-2025_10_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24588275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24588276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24588277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24588278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24588279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24588280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24588281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24588282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24588283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24588284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24588285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24588286, 'pht': 3726}}" where mtr_portfolio_id = 24588270 and dashboard_run_id = 1960709 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`=24588270 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139953, 0.040984435109491804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24588270_04-07-2025_10_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24588275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24588276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24588277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24588278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24588279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24588280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24588281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24588282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24588283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24588284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24588285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24588286, '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 = 24588966 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': 3235505, 'mtr_portfolio_id': 24588966, 'created_at': datetime.datetime(2025, 7, 4, 11, 3, 58), 'result': '0.03699650926454991', 'result_long': None, 'result_double': None}] Qualite : 0.03699650926454991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24588966 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24588966_04-07-2025_11_03_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24588966 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_P24588966_04-07-2025_11_03_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24588976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24588977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24588978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24588979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24588980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24588981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24588982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24588983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24588984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24588985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24588986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24588987, 'pht': 3726}}" where mtr_portfolio_id = 24588966 and dashboard_run_id = 1960709 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`=24588966 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139954, 0.03699650926454991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24588966_04-07-2025_11_03_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24588976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24588977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24588978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24588979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24588980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24588981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24588982, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24588983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24588984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24588985, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24588986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24588987, '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 = 24589659 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': 3235578, 'mtr_portfolio_id': 24589659, 'created_at': datetime.datetime(2025, 7, 4, 11, 17, 1), 'result': '0.036125329675294394', 'result_long': None, 'result_double': None}] Qualite : 0.036125329675294394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24589659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24589659_04-07-2025_11_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24589659 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_P24589659_04-07-2025_11_17_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24589762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24589763, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24589764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24589765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24589766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24589767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24589768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24589769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24589770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24589771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24589772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24589773, 'pht': 3726}}" where mtr_portfolio_id = 24589659 and dashboard_run_id = 1960709 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`=24589659 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139955, 0.036125329675294394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24589659_04-07-2025_11_17_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24589762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24589763, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24589764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24589765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24589766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24589767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24589768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24589769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24589770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24589771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24589772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24589773, '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 = 24590654 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': 3235652, 'mtr_portfolio_id': 24590654, 'created_at': datetime.datetime(2025, 7, 4, 11, 33, 28), 'result': '0.025169217612509415', 'result_long': None, 'result_double': None}] Qualite : 0.025169217612509415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24590654 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24590654_04-07-2025_11_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24590654 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_P24590654_04-07-2025_11_33_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24590659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24590660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24590661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24590662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24590663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24590664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24590665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24590666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24590667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24590668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24590669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24590670, 'pht': 3726}}" where mtr_portfolio_id = 24590654 and dashboard_run_id = 1960709 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`=24590654 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139956, 0.025169217612509415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24590654_04-07-2025_11_33_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24590659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24590660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24590661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24590662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24590663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24590664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24590665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24590666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24590667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24590668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24590669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24590670, '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 = 24591419 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': 3235727, 'mtr_portfolio_id': 24591419, 'created_at': datetime.datetime(2025, 7, 4, 11, 47, 2), 'result': '0.03924113023453786', 'result_long': None, 'result_double': None}] Qualite : 0.03924113023453786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24591419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24591419_04-07-2025_11_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24591419 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_P24591419_04-07-2025_11_47_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24591451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24591452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24591454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24591455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24591456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24591457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24591458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24591459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24591460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24591461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24591462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24591463, 'pht': 3726}}" where mtr_portfolio_id = 24591419 and dashboard_run_id = 1960709 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`=24591419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139957, 0.03924113023453786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24591419_04-07-2025_11_47_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24591451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24591452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24591454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24591455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24591456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24591457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24591458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24591459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24591460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24591461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24591462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24591463, '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 = 24592235 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': 3235851, 'mtr_portfolio_id': 24592235, 'created_at': datetime.datetime(2025, 7, 4, 12, 2, 58), 'result': '0.04072745649815608', 'result_long': None, 'result_double': None}] Qualite : 0.04072745649815608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24592235 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24592235_04-07-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24592235 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_P24592235_04-07-2025_12_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24592256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24592258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24592260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24592261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24592263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24592265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24592266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24592268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24592271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24592272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24592274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24592275, 'pht': 3726}}" where mtr_portfolio_id = 24592235 and dashboard_run_id = 1960709 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`=24592235 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139958, 0.04072745649815608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24592235_04-07-2025_12_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24592256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24592258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24592260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24592261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24592263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24592265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24592266, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24592268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24592271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24592272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24592274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24592275, '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 = 24592974 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': 3235932, 'mtr_portfolio_id': 24592974, 'created_at': datetime.datetime(2025, 7, 4, 12, 17), 'result': '0.032329278910665775', 'result_long': None, 'result_double': None}] Qualite : 0.032329278910665775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24592974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24592974_04-07-2025_12_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24592974 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_P24592974_04-07-2025_12_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24593030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24593033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24593037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24593040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24593043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24593047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24593049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24593052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24593054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24593057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24593059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24593061, 'pht': 3726}}" where mtr_portfolio_id = 24592974 and dashboard_run_id = 1960709 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`=24592974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139959, 0.032329278910665775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24592974_04-07-2025_12_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24593030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24593033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24593037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24593040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24593043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24593047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24593049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24593052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24593054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24593057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24593059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24593061, '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 = 24594425 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': 3236089, 'mtr_portfolio_id': 24594425, 'created_at': datetime.datetime(2025, 7, 4, 12, 33, 28), 'result': '0.09524604544050415', 'result_long': None, 'result_double': None}] Qualite : 0.09524604544050415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24594425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24594425_04-07-2025_12_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24594425 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_P24594425_04-07-2025_12_33_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24594452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24594453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24594454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24594455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24594456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24594457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24594458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24594459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24594460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24594461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24594462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24594463, 'pht': 3726}}" where mtr_portfolio_id = 24594425 and dashboard_run_id = 1960709 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`=24594425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139960, 0.09524604544050415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24594425_04-07-2025_12_33_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24594452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24594453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24594454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24594455, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24594456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24594457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24594458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24594459, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24594460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24594461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24594462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24594463, '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 = 24595704 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': 3236210, 'mtr_portfolio_id': 24595704, 'created_at': datetime.datetime(2025, 7, 4, 12, 47, 1), 'result': '0.09955575812849327', 'result_long': None, 'result_double': None}] Qualite : 0.09955575812849327 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24595704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24595704_04-07-2025_12_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24595704 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_P24595704_04-07-2025_12_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24595736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24595738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24595740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24595741, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24595743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24595745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24595746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24595747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24595748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24595749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24595750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24595751, 'pht': 3726}}" where mtr_portfolio_id = 24595704 and dashboard_run_id = 1960709 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`=24595704 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139961, 0.09955575812849327, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24595704_04-07-2025_12_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24595736, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24595738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24595740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24595741, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24595743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24595745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24595746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24595747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24595748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24595749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24595750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24595751, '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 = 24597106 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': 3236290, 'mtr_portfolio_id': 24597106, 'created_at': datetime.datetime(2025, 7, 4, 13, 2, 56), 'result': '0.07849737679500587', 'result_long': None, 'result_double': None}] Qualite : 0.07849737679500587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24597106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24597106_04-07-2025_13_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24597106 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_P24597106_04-07-2025_13_02_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24597195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24597196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24597197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24597198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24597199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24597200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24597201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24597202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24597203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24597204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24597205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24597206, 'pht': 3726}}" where mtr_portfolio_id = 24597106 and dashboard_run_id = 1960709 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`=24597106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139962, 0.07849737679500587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24597106_04-07-2025_13_02_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24597195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24597196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24597197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24597198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24597199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24597200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24597201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24597202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24597203, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24597204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24597205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24597206, '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 = 24598154 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': 3236398, 'mtr_portfolio_id': 24598154, 'created_at': datetime.datetime(2025, 7, 4, 13, 16, 31), 'result': '0.04490295498393466', 'result_long': None, 'result_double': None}] Qualite : 0.04490295498393466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24598154 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24598154_04-07-2025_13_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24598154 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_P24598154_04-07-2025_13_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24598280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24598282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24598284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24598285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24598287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24598289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24598290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24598291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24598292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24598293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24598294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24598295, 'pht': 3726}}" where mtr_portfolio_id = 24598154 and dashboard_run_id = 1960709 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`=24598154 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139964, 0.04490295498393466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24598154_04-07-2025_13_16_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24598280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24598282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24598284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24598285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24598287, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24598289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24598290, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24598291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24598292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24598293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24598294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24598295, '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 = 24599487 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': 3236473, 'mtr_portfolio_id': 24599487, 'created_at': datetime.datetime(2025, 7, 4, 13, 32, 59), 'result': '0.05629308274788727', 'result_long': None, 'result_double': None}] Qualite : 0.05629308274788727 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24599487 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24599487_04-07-2025_13_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24599487 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_P24599487_04-07-2025_13_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24599564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24599565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24599566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24599567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24599568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24599569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24599570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24599571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24599572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24599573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24599574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24599575, 'pht': 3726}}" where mtr_portfolio_id = 24599487 and dashboard_run_id = 1960709 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`=24599487 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139965, 0.05629308274788727, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24599487_04-07-2025_13_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24599564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24599565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24599566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24599567, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24599568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24599569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24599570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24599571, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24599572, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24599573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24599574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24599575, '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 = 24600389 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': 3236551, 'mtr_portfolio_id': 24600389, 'created_at': datetime.datetime(2025, 7, 4, 13, 47), 'result': '0.036958778088228686', 'result_long': None, 'result_double': None}] Qualite : 0.036958778088228686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24600389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24600389_04-07-2025_13_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24600389 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_P24600389_04-07-2025_13_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24600434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24600435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24600437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24600438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24600439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24600440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24600441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24600442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24600444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24600445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24600446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24600447, 'pht': 3726}}" where mtr_portfolio_id = 24600389 and dashboard_run_id = 1960709 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`=24600389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139966, 0.036958778088228686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24600389_04-07-2025_13_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24600434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24600435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24600437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24600438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24600439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24600440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24600441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24600442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24600444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24600445, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24600446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24600447, '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 = 24601084 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': 3236624, 'mtr_portfolio_id': 24601084, 'created_at': datetime.datetime(2025, 7, 4, 14, 3), 'result': '0.025039225973050302', 'result_long': None, 'result_double': None}] Qualite : 0.025039225973050302 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24601084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24601084_04-07-2025_14_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24601084 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_P24601084_04-07-2025_14_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24601088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24601089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24601090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24601091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24601092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24601093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24601094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24601095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24601096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24601097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24601098, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24601100, 'pht': 3726}}" where mtr_portfolio_id = 24601084 and dashboard_run_id = 1960709 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`=24601084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139967, 0.025039225973050302, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24601084_04-07-2025_14_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24601088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24601089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24601090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24601091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24601092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24601093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24601094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24601095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24601096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24601097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24601098, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24601100, '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 = 24601660 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': 3236716, 'mtr_portfolio_id': 24601660, 'created_at': datetime.datetime(2025, 7, 4, 14, 16, 59), 'result': '0.01416234543793631', 'result_long': None, 'result_double': None}] Qualite : 0.01416234543793631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24601660 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24601660_04-07-2025_14_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24601660 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_P24601660_04-07-2025_14_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24601710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24601711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24601712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24601713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24601714, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24601715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24601716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24601717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24601718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24601719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24601720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24601721, 'pht': 3726}}" where mtr_portfolio_id = 24601660 and dashboard_run_id = 1960709 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`=24601660 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139968, 0.01416234543793631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24601660_04-07-2025_14_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24601710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24601711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24601712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24601713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24601714, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24601715, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24601716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24601717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24601718, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24601719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24601720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24601721, '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 = 24602486 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': 3236810, 'mtr_portfolio_id': 24602486, 'created_at': datetime.datetime(2025, 7, 4, 14, 33, 1), 'result': '0.021653339526566926', 'result_long': None, 'result_double': None}] Qualite : 0.021653339526566926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24602486 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24602486_04-07-2025_14_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24602486 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_P24602486_04-07-2025_14_33_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24602499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24602500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24602501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24602502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24602503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24602504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24602505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24602506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24602507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24602508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24602509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24602510, 'pht': 3726}}" where mtr_portfolio_id = 24602486 and dashboard_run_id = 1960709 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`=24602486 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139969, 0.021653339526566926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24602486_04-07-2025_14_33_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24602499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24602500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24602501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24602502, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24602503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24602504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24602505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24602506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24602507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24602508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24602509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24602510, '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 = 24603179 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': 3236880, 'mtr_portfolio_id': 24603179, 'created_at': datetime.datetime(2025, 7, 4, 14, 46, 59), 'result': '0.04337323121006377', 'result_long': None, 'result_double': None}] Qualite : 0.04337323121006377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24603179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24603179_04-07-2025_14_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24603179 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_P24603179_04-07-2025_14_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24603244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24603246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24603247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24603249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24603250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24603252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24603253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24603254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24603255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24603256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24603257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24603258, 'pht': 3726}}" where mtr_portfolio_id = 24603179 and dashboard_run_id = 1960709 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`=24603179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139970, 0.04337323121006377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24603179_04-07-2025_14_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24603244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24603246, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24603247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24603249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24603250, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24603252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24603253, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24603254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24603255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24603256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24603257, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24603258, '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 = 24604251 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': 3236979, 'mtr_portfolio_id': 24604251, 'created_at': datetime.datetime(2025, 7, 4, 15, 3, 31), 'result': '0.025964908501298106', 'result_long': None, 'result_double': None}] Qualite : 0.025964908501298106 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24604251 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24604251_04-07-2025_15_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24604251 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_P24604251_04-07-2025_15_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24604307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24604308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24604309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24604310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24604311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24604312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24604313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24604314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24604315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24604316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24604317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24604318, 'pht': 3726}}" where mtr_portfolio_id = 24604251 and dashboard_run_id = 1960709 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`=24604251 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139971, 0.025964908501298106, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24604251_04-07-2025_15_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24604307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24604308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24604309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24604310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24604311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24604312, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24604313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24604314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24604315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24604316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24604317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24604318, '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 = 24605340 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': 3237064, 'mtr_portfolio_id': 24605340, 'created_at': datetime.datetime(2025, 7, 4, 15, 16, 57), 'result': '0.05111155723703074', 'result_long': None, 'result_double': None}] Qualite : 0.05111155723703074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24605340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24605340_04-07-2025_15_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24605340 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_P24605340_04-07-2025_15_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24605349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24605350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24605351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24605352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24605353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24605354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24605355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24605356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24605357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24605358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24605359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24605360, 'pht': 3726}}" where mtr_portfolio_id = 24605340 and dashboard_run_id = 1960709 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`=24605340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139972, 0.05111155723703074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24605340_04-07-2025_15_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24605349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24605350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24605351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24605352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24605353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24605354, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24605355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24605356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24605357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24605358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24605359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24605360, '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 = 24606574 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': 3237150, 'mtr_portfolio_id': 24606574, 'created_at': datetime.datetime(2025, 7, 4, 15, 33), 'result': '0.03482968341559343', 'result_long': None, 'result_double': None}] Qualite : 0.03482968341559343 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24606574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24606574_04-07-2025_15_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24606574 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_P24606574_04-07-2025_15_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24606582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24606583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24606584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24606585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24606586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24606587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24606588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24606589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24606590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24606591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24606592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24606593, 'pht': 3726}}" where mtr_portfolio_id = 24606574 and dashboard_run_id = 1960709 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`=24606574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139973, 0.03482968341559343, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24606574_04-07-2025_15_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24606582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24606583, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24606584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24606585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24606586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24606587, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24606588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24606589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24606590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24606591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24606592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24606593, '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 = 24607246 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': 3237207, 'mtr_portfolio_id': 24607246, 'created_at': datetime.datetime(2025, 7, 4, 15, 47, 2), 'result': '0.0583983859616667', 'result_long': None, 'result_double': None}] Qualite : 0.0583983859616667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24607246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24607246_04-07-2025_15_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24607246 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_P24607246_04-07-2025_15_47_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24607294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24607295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24607296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24607297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24607298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24607299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24607300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24607301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24607303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24607304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24607305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24607306, 'pht': 3726}}" where mtr_portfolio_id = 24607246 and dashboard_run_id = 1960709 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`=24607246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139974, 0.0583983859616667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24607246_04-07-2025_15_47_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24607294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24607295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24607296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24607297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24607298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24607299, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24607300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24607301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24607303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24607304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24607305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24607306, '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 = 24608042 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': 3237293, 'mtr_portfolio_id': 24608042, 'created_at': datetime.datetime(2025, 7, 4, 16, 3, 2), 'result': '0.036358765371634086', 'result_long': None, 'result_double': None}] Qualite : 0.036358765371634086 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24608042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24608042_04-07-2025_16_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24608042 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_P24608042_04-07-2025_16_03_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24608083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24608085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24608086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24608087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24608088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24608089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24608090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24608091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24608092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24608093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24608094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24608095, 'pht': 3726}}" where mtr_portfolio_id = 24608042 and dashboard_run_id = 1960709 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`=24608042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139975, 0.036358765371634086, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24608042_04-07-2025_16_03_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24608083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24608085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24608086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24608087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24608088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24608089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24608090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24608091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24608092, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24608093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24608094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24608095, '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 = 24610124 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': 3237509, 'mtr_portfolio_id': 24610124, 'created_at': datetime.datetime(2025, 7, 4, 16, 46, 58), 'result': '0.04404821440843844', 'result_long': None, 'result_double': None}] Qualite : 0.04404821440843844 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24610124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24610124_04-07-2025_16_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24610124 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_P24610124_04-07-2025_16_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24610147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24610148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24610149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24610150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24610151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24610152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24610153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24610154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24610155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24610156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24610157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24610158, 'pht': 3726}}" where mtr_portfolio_id = 24610124 and dashboard_run_id = 1960709 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`=24610124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139977, 0.04404821440843844, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24610124_04-07-2025_16_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24610147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24610148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24610149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24610150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24610151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24610152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24610153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24610154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24610155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24610156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24610157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24610158, '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 = 24611160 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': 3237592, 'mtr_portfolio_id': 24611160, 'created_at': datetime.datetime(2025, 7, 4, 17, 3, 30), 'result': '0.049570717676845365', 'result_long': None, 'result_double': None}] Qualite : 0.049570717676845365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24611160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24611160_04-07-2025_17_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24611160 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_P24611160_04-07-2025_17_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24611260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24611261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24611262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24611264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24611265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24611266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24611268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24611269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24611270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24611271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24611272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24611273, 'pht': 3726}}" where mtr_portfolio_id = 24611160 and dashboard_run_id = 1960709 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`=24611160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139978, 0.049570717676845365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24611160_04-07-2025_17_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24611260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24611261, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24611262, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24611264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24611265, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24611266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24611268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24611269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24611270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24611271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24611272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24611273, '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 = 24611872 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': 3237664, 'mtr_portfolio_id': 24611872, 'created_at': datetime.datetime(2025, 7, 4, 17, 17), 'result': '0.029617167976584053', 'result_long': None, 'result_double': None}] Qualite : 0.029617167976584053 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24611872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24611872_04-07-2025_17_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24611872 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_P24611872_04-07-2025_17_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24611891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24611892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24611894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24611895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24611896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24611897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24611899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24611900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24611901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24611903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24611904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24611905, 'pht': 3726}}" where mtr_portfolio_id = 24611872 and dashboard_run_id = 1960709 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`=24611872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139979, 0.029617167976584053, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24611872_04-07-2025_17_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24611891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24611892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24611894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24611895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24611896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24611897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24611899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24611900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24611901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24611903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24611904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24611905, '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 = 24612688 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': 3237727, 'mtr_portfolio_id': 24612688, 'created_at': datetime.datetime(2025, 7, 4, 17, 28, 29), 'result': '0.04186500501304778', 'result_long': None, 'result_double': None}] Qualite : 0.04186500501304778 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24612688 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24612688_04-07-2025_17_28_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24612688 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_P24612688_04-07-2025_17_28_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24612717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24612718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24612719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24612720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24612721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24612722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24612723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24612724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24612725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24612726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24612727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24612728, 'pht': 3726}}" where mtr_portfolio_id = 24612688 and dashboard_run_id = 1960708 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`=24612688 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12139980, 0.04186500501304778, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24612688_04-07-2025_17_28_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24612717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24612718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24612719, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24612720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24612721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24612722, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24612723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24612724, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24612725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24612726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24612727, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24612728, '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 (24608557,24601516,24597959,24592838,24589471,24586317,24581990,24580137,24580345,24581606,24582937,24583904,24584826,24585822,24586610,24587639,24588270,24588966,24589659,24590654,24591419,24592235,24592974,24594425,24595704,24597106,24598154,24599487,24600389,24601084,24601660,24602486,24603179,24604251,24605340,24606574,24607246,24608042,24610124,24611160,24611872,24612688) result : ((1370494762,), (1370494763,), (1370494767,), (1370494773,), (1370494775,), (1370494780,), (1370494791,), (1370494794,), (1370494800,), (1370494803,), (1370494811,), (1370494814,), (1370494829,), (1370494832,), (1370494836,), (1370494840,), (1370494844,), (1370494848,), (1370494863,), (1370494865,), (1370494868,), (1370494870,), (1370494872,), (1370494875,), (1370494880,), (1370494881,), (1370494883,), (1370494885,), (1370494886,), (1370494887,), (1370494901,), (1370494911,), (1370494917,), (1370494920,), (1370494924,), (1370494928,), (1370494948,), (1370494951,), (1370494953,), (1370494956,), (1370494963,), (1370494966,), (1370494978,), (1370494982,), (1370494988,), (1370494990,), (1370494992,), (1370494993,), (1370495000,), (1370495010,), (1370495017,), (1370495024,), (1370495027,), (1370495033,), (1370495108,), (1370495111,), (1370495116,), (1370495119,), (1370495129,), (1370495131,), (1370495406,), (1370495410,), (1370495416,), (1370495421,), (1370495426,), (1370495429,), (1370495643,), (1370495650,), (1370495656,), (1370495666,), (1370495682,), (1370495698,), (1370496401,), (1370496412,), (1370496473,), (1370496512,), (1370496531,), (1370496570,), (1370497148,), (1370497182,), (1370497221,), (1370497265,), (1370497342,), (1370497424,), (1370498581,), (1370498653,), (1370498721,), (1370498786,), (1370498855,), (1370498901,), (1370500581,), (1370500593,), (1370500628,), (1370500663,), (1370500698,), (1370500739,), (1370495053,), (1370495066,), (1370495072,), (1370495084,), (1370495088,), (1370495091,), (1370495155,), (1370495171,), (1370495178,), (1370495192,), (1370495217,), (1370495239,), (1370495288,), (1370495291,), (1370495313,), (1370495321,), (1370495325,), (1370495332,), (1370495347,), (1370495375,), (1370495379,), (1370495382,), (1370495391,), (1370495396,), (1370495448,), (1370495459,), (1370495475,), (1370495506,), (1370495530,), (1370495552,), (1370495580,), (1370495582,), (1370495588,), (1370495598,), (1370495612,), (1370495619,), (1370495726,), (1370495753,), (1370495763,), (1370495770,), (1370495805,), (1370495840,), (1370495922,), (1370495927,), (1370495961,), (1370495998,), (1370496033,), (1370496071,), (1370496233,), (1370496246,), (1370496253,), (1370496267,), (1370496274,), (1370496281,), (1370496631,), (1370496645,), (1370496669,), (1370496689,), (1370496698,), (1370496711,), (1370496782,), (1370496785,), (1370496788,), (1370496791,), (1370496794,), (1370496800,), (1370496917,), (1370496959,), (1370497011,), (1370497065,), (1370497076,), (1370497092,), (1370497646,), (1370497682,), (1370497715,), (1370497720,), (1370497777,), (1370497865,), (1370498035,), (1370498057,), (1370498073,), (1370498097,), (1370498152,), (1370498200,), (1370498283,), (1370498302,), (1370498347,), (1370498383,), (1370498406,), (1370498411,), (1370499141,), (1370499185,), (1370499232,), (1370499277,), (1370499347,), (1370499426,), (1370499735,), (1370499809,), (1370499915,), (1370499994,), (1370500029,), (1370500063,), (1370500213,), (1370500307,), (1370500386,), (1370500441,), (1370500475,), (1370500509,), (1370500884,), (1370500919,), (1370500954,), (1370501017,), (1370501086,), (1370501149,), (1370501190,), (1370501236,), (1370501289,), (1370501330,), (1370501396,), (1370501438,), (1370501600,), (1370501641,), (1370501680,), (1370501693,), (1370501717,), (1370501753,), (1370502079,), (1370502097,), (1370502117,), (1370502162,), (1370502172,), (1370502177,), (1370502356,), (1370502432,), (1370502508,), (1370502595,), (1370502654,), (1370502678,), (1370502781,), (1370502792,), (1370502810,), (1370502850,), (1370502871,), (1370502908,), (1370503167,), (1370503171,), (1370503175,), (1370503184,), (1370503219,), (1370503232,), (1370503264,), (1370503284,), (1370503339,), (1370503354,), (1370503381,), (1370503389,), (1370503431,), (1370503435,), (1370503458,), (1370503492,), (1370503534,), (1370503555,), (1370504429,), (1370504541,), (1370504686,), (1370504849,), (1370504957,), (1370505027,), (1370505954,), (1370505992,), (1370505999,), (1370506011,), (1370506040,), (1370506062,), (1370501824,), (1370501861,), (1370501896,), (1370501930,), (1370501950,), (1370501954,), (1370503008,), (1370503018,), (1370503033,), (1370503082,), (1370503091,), (1370503092,), (1370503608,), (1370503687,), (1370503791,), (1370503866,), (1370503935,), (1370504034,), (1370506203,), (1370506209,), (1370506235,), (1370506253,), (1370506262,), (1370506285,), (1370506984,), (1370508171,), (1370508212,), (1370508254,), (1370508329,), (1370508419,), (1370508517,), (1370509734,), (1370509767,), (1370509780,), (1370509830,), (1370509837,), (1370509857,), (1370510965,), (1370511009,), (1370511067,), (1370511189,), (1370511191,), (1370511206,), (1370511900,), (1370511935,), (1370511972,), (1370512028,), (1370512032,), (1370512038,), (1370512449,), (1370512485,), (1370512522,), (1370512588,), (1370512624,), (1370512650,), (1370513357,), (1370513426,), (1370513484,), (1370513521,), (1370513557,), (1370513605,), (1370514550,), (1370514599,), (1370514680,), (1370514735,), (1370514787,), (1370514870,), (1370515689,), (1370515767,), (1370515781,), (1370515827,), (1370515841,), (1370515856,), (1370517509,), (1370517602,), (1370517647,), (1370517687,), (1370517727,), (1370517760,), (1370518500,), (1370518514,), (1370518539,), (1370518574,), (1370518579,), (1370518587,), (1370519335,), (1370519348,), (1370519356,), (1370519358,), (1370506450,), (1370506531,), (1370506620,), (1370506794,), (1370506872,), (1370507200,), (1370507288,), (1370507353,), (1370507406,), (1370507506,), (1370507579,), (1370507769,), (1370507794,), (1370507849,), (1370507911,), (1370507933,), (1370508000,), (1370508774,), (1370508777,), (1370508841,), (1370508848,), (1370508883,), (1370508889,), (1370508912,), (1370508915,), (1370508944,), (1370508947,), (1370508967,), (1370508969,), (1370509008,), (1370509015,), (1370509061,), (1370509095,), (1370509138,), (1370509178,), (1370509339,), (1370509373,), (1370509407,), (1370509443,), (1370509518,), (1370509534,), (1370510055,), (1370510057,), (1370510095,), (1370510096,), (1370510138,), (1370510140,), (1370510157,), (1370510159,), (1370510165,), (1370510166,), (1370510174,), (1370510176,), (1370510227,), (1370510251,), (1370510274,), (1370510297,), (1370510309,), (1370510323,), (1370510497,), (1370510562,), (1370510579,), (1370510605,), (1370510720,), (1370510837,), (1370511234,), (1370511239,), (1370511284,), (1370511292,), (1370511334,), (1370511338,), (1370511373,), (1370511380,), (1370511417,), (1370511418,), (1370511436,), (1370511439,), (1370511555,), (1370511563,), (1370511586,), (1370511592,), (1370511594,), (1370511598,), (1370511698,), (1370511734,), (1370511769,), (1370511824,), (1370511856,), (1370511861,), (1370512091,), (1370512093,), (1370512095,), (1370512096,), (1370512098,), (1370512099,), (1370512101,), (1370512103,), (1370512106,), (1370512107,), (1370512111,), (1370512112,), (1370512214,), (1370512252,), (1370512285,), (1370512290,), (1370512294,), (1370512297,), (1370512357,), (1370512360,), (1370512389,), (1370512400,), (1370512409,), (1370512414,), (1370512700,), (1370512704,), (1370512724,), (1370512769,), (1370512799,), (1370512803,), (1370512815,), (1370512817,), (1370512826,), (1370512864,), (1370512877,), (1370512889,), (1370512903,), (1370512963,), (1370513023,), (1370513065,), (1370513100,), (1370513134,), (1370513827,), (1370513851,), (1370513861,), (1370513872,), (1370513893,), (1370513914,), (1370513979,), (1370513992,), (1370514016,), (1370514020,), (1370514029,), (1370514068,), (1370514161,), (1370514163,), (1370514166,), (1370514174,), (1370514197,), (1370514277,), (1370514945,), (1370514950,), (1370514973,), (1370514985,), (1370514995,), (1370514998,), (1370515116,), (1370515125,), (1370515127,), (1370515215,), (1370515233,), (1370515238,), (1370515307,), (1370515310,), (1370515378,), (1370515390,), (1370515395,), (1370515470,), (1370515875,), (1370515928,), (1370515996,), (1370516203,), (1370516336,), (1370516444,), (1370516703,), (1370516779,), (1370516850,), (1370516930,), (1370516987,), (1370517044,), (1370517202,), (1370517253,), (1370517303,), (1370517339,), (1370517351,), (1370517368,), (1370517942,), (1370517990,), (1370518026,), (1370518065,), (1370518099,), (1370518133,), (1370518218,), (1370518228,), (1370518242,), (1370518248,), (1370518267,), (1370518274,), (1370518299,), (1370518311,), (1370518322,), (1370518417,), (1370518436,), (1370518451,), (1370518609,), (1370518613,), (1370518619,), (1370518628,), (1370518635,), (1370518647,), (1370518701,), (1370518724,), (1370518763,), (1370518824,), (1370518863,), (1370518874,), (1370518913,), (1370518941,), (1370518950,), (1370518952,), (1370518995,), (1370519011,), (1370519075,), (1370519078,), (1370519093,), (1370519099,), (1370519117,), (1370519228,), (1370519471,), (1370519474,), (1370519538,), (1370519541,), (1370519574,), (1370519578,), (1370519619,), (1370519622,), (1370519678,), (1370519681,), (1370519721,), (1370519722,), (1370519805,), (1370519854,), (1370519924,), (1370519964,), (1370519991,), (1370520052,), (1370520173,), (1370520248,), (1370520267,), (1370520272,), (1370520305,), (1370520335,), (1370521119,), (1370521125,), (1370521141,), (1370521161,), (1370521189,), (1370521204,), (1370521236,), (1370521256,), (1370521283,), (1370521297,), (1370521323,), (1370521362,), (1370521481,), (1370521529,), (1370521550,), (1370521574,), (1370521599,), (1370521649,), (1370521876,), (1370521880,), (1370521890,), (1370521893,), (1370521897,), (1370521901,), (1370521980,), (1370522014,), (1370522028,), (1370522035,), (1370522040,), (1370522109,), (1370522142,), (1370522217,), (1370522225,), (1370522239,), (1370522250,), (1370522253,), (1370522309,), (1370522335,), (1370522356,), (1370522365,), (1370522378,), (1370522384,), (1370522623,), (1370522635,), (1370522661,), (1370522673,), (1370522694,), (1370522739,), (1370522795,), (1370522803,), (1370522805,), (1370522849,), (1370522901,), (1370522909,), (1370523052,), (1370523130,), (1370523193,), (1370523317,), (1370523380,), (1370523430,), (1370524072,), (1370524091,), (1370524120,), (1370524155,), (1370524208,), (1370524249,), (1370524380,), (1370524392,), (1370524424,), (1370524485,), (1370524490,), (1370524530,), (1370524557,), (1370524561,), (1370524564,), (1370524571,), (1370524573,), (1370524584,), (1370524826,), (1370524840,), (1370524897,), (1370524944,), (1370524996,), (1370525033,), (1370525172,), (1370525175,), (1370525204,), (1370525210,), (1370525239,), (1370525242,), (1370525276,), (1370525278,), (1370525289,), (1370525290,), (1370525297,), (1370525298,), (1370525308,), (1370525314,), (1370525318,), (1370525322,), (1370525352,), (1370525360,), (1370525369,), (1370525371,), (1370525373,), (1370525380,), (1370525396,), (1370525409,), (1370525598,), (1370525605,), (1370525611,), (1370525615,), (1370525618,), (1370525704,), (1370525927,), (1370525929,), (1370525988,), (1370526030,), (1370526066,), (1370526100,), (1370526129,), (1370526165,), (1370526193,), (1370526218,), (1370526241,), (1370526275,), (1370526393,), (1370526428,), (1370526463,), (1370526474,), (1370526495,), (1370526538,), (1370526588,), (1370526598,), (1370526613,), (1370526646,), (1370526695,), (1370526728,), (1370527038,), (1370527071,), (1370527148,), (1370527187,), (1370527233,), (1370527238,), (1370527726,), (1370527843,), (1370527956,), (1370528105,), (1370528229,), (1370528327,), (1370519365,), (1370519370,), (1370520657,), (1370520724,), (1370520789,), (1370520859,), (1370520949,), (1370521001,), (1370521709,), (1370521734,), (1370521776,), (1370521790,), (1370521797,), (1370521799,), (1370522414,), (1370522418,), (1370522439,), (1370522525,), (1370522538,), (1370522548,), (1370523535,), (1370523592,), (1370523652,), (1370523677,), (1370523705,), (1370523794,), (1370524677,), (1370524682,), (1370524692,), (1370524696,), (1370524701,), (1370524723,), (1370525488,), (1370525521,), (1370525530,), (1370525543,), (1370525548,), (1370525566,), (1370526785,), (1370526811,), (1370526844,), (1370526905,), (1370526929,), (1370526947,), (1370528829,), (1370528947,), (1370529080,), (1370529214,), (1370529347,), (1370529477,), (1370530264,), (1370530275,), (1370531508,), (1370531511,), (1370531514,), (1370531538,), (1370531592,), (1370531656,), (1370533025,), (1370533034,), (1370533045,), (1370533111,), (1370533146,), (1370533173,), (1370533966,), (1370534010,), (1370534068,), (1370534115,), (1370534149,), (1370534189,), (1370534908,), (1370534923,), (1370534941,), (1370534953,), (1370534958,), (1370534969,), (1370535388,), (1370535393,), (1370535403,), (1370535409,), (1370535412,), (1370535416,), (1370536235,), (1370536241,), (1370536282,), (1370536344,), (1370536357,), (1370536362,), (1370536796,), (1370536799,), (1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,), (1370533357,), (1370533402,), (1370533416,), (1370533446,), (1370533472,), (1370533479,), (1370533491,), (1370533495,), (1370533513,), (1370533520,), (1370533536,), (1370533541,), (1370533585,), (1370533589,), (1370533594,), (1370533599,), (1370533613,), (1370533616,), (1370533629,), (1370533638,), (1370533641,), (1370533643,), (1370533645,), (1370533657,), (1370533738,), (1370533763,), (1370533796,), (1370533822,), (1370533853,), (1370533878,), (1370534264,), (1370534267,), (1370534269,), (1370534271,), (1370534277,), (1370534279,), (1370534310,), (1370534320,), (1370534325,), (1370534333,), (1370534350,), (1370534353,), (1370534445,), (1370534446,), (1370534475,), (1370534478,), (1370534497,), (1370534500,), (1370534527,), (1370534530,), (1370534550,), (1370534555,), (1370534562,), (1370534566,), (1370534608,), (1370534623,), (1370534627,), (1370534631,), (1370534634,), (1370534643,), (1370534742,), (1370534775,), (1370534801,), (1370534834,), (1370534861,), (1370534873,), (1370534995,), (1370535009,), (1370535014,), (1370535019,), (1370535033,), (1370535036,), (1370535066,), (1370535070,), (1370535072,), (1370535074,), (1370535080,), (1370535096,), (1370535187,), (1370535217,), (1370535243,), (1370535274,), (1370535279,), (1370535293,), (1370535306,), (1370535309,), (1370535317,), (1370535322,), (1370535328,), (1370535332,), (1370535346,), (1370535350,), (1370535358,), (1370535362,), (1370535371,), (1370535376,), (1370535433,), (1370535437,), (1370535466,), (1370535495,), (1370535526,), (1370535561,), (1370535646,), (1370535672,), (1370535707,), (1370535778,), (1370535811,), (1370535836,), (1370535912,), (1370535920,), (1370535930,), (1370535936,), (1370535948,), (1370535989,), (1370536045,), (1370536075,), (1370536120,), (1370536147,), (1370536175,), (1370536204,), (1370536375,), (1370536399,), (1370536424,), (1370536430,), (1370536437,), (1370536451,), (1370536498,), (1370536509,), (1370536514,), (1370536528,), (1370536536,), (1370536557,), (1370536579,), (1370536590,), (1370536594,), (1370536597,), (1370536600,), (1370536613,), (1370536666,), (1370536670,), (1370536675,), (1370536682,), (1370536704,), (1370536730,), (1370536880,), (1370536885,), (1370536890,), (1370536895,), (1370536899,), (1370536902,), (1370536921,), (1370536926,), (1370536931,), (1370536946,), (1370536979,), (1370537029,), (1370537044,), (1370537055,), (1370537080,), (1370537127,), (1370537134,), (1370537138,), (1370537178,), (1370537182,), (1370537195,), (1370537201,), (1370537207,), (1370537221,), (1370537261,), (1370537264,), (1370537281,), (1370537290,), (1370537295,), (1370537300,), (1370537421,), (1370537429,), (1370537445,), (1370537461,), (1370537465,), (1370537471,), (1370537506,), (1370537509,), (1370537513,), (1370537517,), (1370537519,), (1370537524,), (1370537634,), (1370537639,), (1370537648,), (1370537653,), (1370537660,), (1370537665,), (1370537825,), (1370537830,), (1370537840,), (1370537854,), (1370537857,), (1370537860,), (1370537882,), (1370537888,), (1370537893,), (1370537899,), (1370537903,), (1370537905,), (1370537921,), (1370537924,), (1370537933,), (1370537960,), (1370537966,), (1370537971,), (1370537989,), (1370537995,), (1370538011,), (1370538039,), (1370538068,), (1370538121,), (1370538154,), (1370538161,), (1370538164,), (1370538175,), (1370538186,), (1370538188,), (1370538326,), (1370538329,), (1370538334,), (1370538341,), (1370538365,), (1370538370,), (1370538382,), (1370538393,), (1370538398,), (1370538429,), (1370538477,), (1370538490,), (1370538500,), (1370538520,), (1370538551,), (1370538569,), (1370538607,), (1370538643,), (1370539072,), (1370539090,), (1370539113,), (1370539144,), (1370539171,), (1370539215,), (1370539239,), (1370539242,), (1370539276,), (1370539277,), (1370539324,), (1370539327,), (1370539376,), (1370539377,), (1370539409,), (1370539412,), (1370539417,), (1370539418,), (1370539474,), (1370539506,), (1370539531,), (1370539535,), (1370539539,), (1370539544,), (1370539616,), (1370539621,), (1370539632,), (1370539665,), (1370539701,), (1370539759,), (1370539954,), (1370539981,), (1370539983,), (1370539985,), (1370540003,), (1370540028,), (1370540126,), (1370540160,), (1370540188,), (1370540214,), (1370540241,), (1370540267,), (1370540364,), (1370540413,), (1370540437,), (1370540459,), (1370540463,), (1370540468,), (1370540497,), (1370540515,), (1370540546,), (1370540557,), (1370540567,), (1370540581,), (1370540690,), (1370540694,), (1370540699,), (1370540748,), (1370540781,), (1370540824,), (1370540949,), (1370540982,), (1370541012,), (1370541043,), (1370541070,), (1370541099,), (1370541608,), (1370541684,), (1370541729,), (1370541793,), (1370541869,), (1370541944,), (1370542143,), (1370542177,), (1370542242,), (1370542291,), (1370542329,), (1370536808,), (1370536814,), (1370536818,), (1370536826,), (1370537311,), (1370537327,), (1370537361,), (1370537365,), (1370537368,), (1370537377,), (1370537753,), (1370537757,), (1370537759,), (1370537779,), (1370537781,), (1370537810,), (1370538235,), (1370538241,), (1370538245,), (1370538270,), (1370538271,), (1370538274,), (1370538765,), (1370538831,), (1370538863,), (1370538918,), (1370538953,), (1370538979,), (1370539790,), (1370539809,), (1370539823,), (1370539831,), (1370539856,), (1370539901,), (1370540600,), (1370540608,), (1370540613,), (1370540615,), (1370540648,), (1370540658,), (1370542367,), (1370543669,), (1370543692,), (1370543714,), (1370543720,), (1370543735,), (1370543783,), (1370544375,), (1370544401,), (1370544462,), (1370544465,), (1370544469,), (1370544479,), (1370545059,), (1370545069,), (1370545076,), (1370545087,), (1370545108,), (1370545144,), (1370545875,), (1370545903,), (1370545931,), (1370545965,), (1370546000,), (1370546032,), (1370546657,), (1370546685,), (1370546713,), (1370546774,), (1370546818,), (1370546835,), (1370547809,), (1370547818,), (1370547849,), (1370547880,), (1370547908,), (1370547936,), (1370548377,), (1370548383,), (1370548437,), (1370548449,), (1370548451,), (1370548477,), (1370549055,), (1370549059,), (1370549063,), (1370549067,), (1370549071,), (1370549079,), (1370549426,), (1370542542,), (1370542568,), (1370542598,), (1370542650,), (1370542701,), (1370542748,), (1370542920,), (1370542969,), (1370543015,), (1370543062,), (1370543104,), (1370543150,), (1370543263,), (1370543291,), (1370543309,), (1370543318,), (1370543324,), (1370543339,), (1370543423,), (1370543478,), (1370543514,), (1370543556,), (1370543584,), (1370543622,), (1370543842,), (1370543850,), (1370543862,), (1370543880,), (1370543882,), (1370543891,), (1370543952,), (1370544022,), (1370544068,), (1370544083,), (1370544086,), (1370544089,), (1370544107,), (1370544120,), (1370544198,), (1370544232,), (1370544245,), (1370544251,), (1370544291,), (1370544317,), (1370544332,), (1370544342,), (1370544345,), (1370544352,), (1370544502,), (1370544507,), (1370544513,), (1370544519,), (1370544525,), (1370544531,), (1370544605,), (1370544635,), (1370544672,), (1370544704,), (1370544721,), (1370544734,), (1370544768,), (1370544810,), (1370544816,), (1370544818,), (1370544820,), (1370544823,), (1370544839,), (1370544866,), (1370544907,), (1370544939,), (1370544969,), (1370545019,), (1370545255,), (1370545267,), (1370545269,), (1370545297,), (1370545310,), (1370545316,), (1370545427,), (1370545428,), (1370545431,), (1370545432,), (1370545434,), (1370545435,), (1370545439,), (1370545440,), (1370545457,), (1370545460,), (1370545487,), (1370545491,), (1370545548,), (1370545554,), (1370545559,), (1370545566,), (1370545575,), (1370545580,), (1370545593,), (1370545597,), (1370545627,), (1370545676,), (1370545733,), (1370545777,), (1370546123,), (1370546133,), (1370546143,), (1370546174,), (1370546191,), (1370546205,), (1370546271,), (1370546272,), (1370546275,), (1370546276,), (1370546303,), (1370546306,), (1370546318,), (1370546319,), (1370546328,), (1370546331,), (1370546337,), (1370546339,), (1370546357,), (1370546364,), (1370546368,), (1370546379,), (1370546385,), (1370546388,), (1370546409,), (1370546436,), (1370546510,), (1370546533,), (1370546563,), (1370546594,), (1370546849,), (1370546852,), (1370546856,), (1370546884,), (1370546954,), (1370547000,), (1370547140,), (1370547168,), (1370547228,), (1370547262,), (1370547290,), (1370547319,), (1370547411,), (1370547433,), (1370547439,), (1370547446,), (1370547457,), (1370547465,), (1370547586,), (1370547649,), (1370547754,), (1370547760,), (1370547787,), (1370547792,), (1370548005,), (1370548012,), (1370548023,), (1370548036,), (1370548041,), (1370548046,), (1370548083,), (1370548087,), (1370548091,), (1370548099,), (1370548110,), (1370548113,), (1370548120,), (1370548122,), (1370548136,), (1370548141,), (1370548162,), (1370548182,), (1370548201,), (1370548217,), (1370548220,), (1370548228,), (1370548263,), (1370548293,), (1370548508,), (1370548535,), (1370548561,), (1370548583,), (1370548615,), (1370548648,), (1370548749,), (1370548754,), (1370548779,), (1370548784,), (1370548817,), (1370548821,), (1370548844,), (1370548849,), (1370548872,), (1370548877,), (1370548901,), (1370548906,), (1370548985,), (1370548990,), (1370548997,), (1370549001,), (1370549004,), (1370549008,), (1370549021,), (1370549025,), (1370549027,), (1370549035,), (1370549038,), (1370549042,), (1370549092,), (1370549096,), (1370549100,), (1370549111,), (1370549116,), (1370549132,), (1370549158,), (1370549159,), (1370549168,), (1370549174,), (1370549181,), (1370549182,), (1370549199,), (1370549203,), (1370549228,), (1370549229,), (1370549238,), (1370549239,), (1370549247,), (1370549270,), (1370549320,), (1370549361,), (1370549366,), (1370549371,), (1370549379,), (1370549383,), (1370549386,), (1370549398,), (1370549410,), (1370549414,), (1370549458,), (1370549460,), (1370549464,), (1370549468,), (1370549472,), (1370549476,), (1370549511,), (1370549519,), (1370549525,), (1370549532,), (1370549553,), (1370549564,), (1370549594,), (1370549602,), (1370549608,), (1370549633,), (1370549637,), (1370549641,), (1370549657,), (1370549689,), (1370549716,), (1370549743,), (1370549774,), (1370549802,), (1370550075,), (1370550102,), (1370550117,), (1370550144,), (1370550178,), (1370550218,), (1370550322,), (1370550372,), (1370550427,), (1370550463,), (1370550503,), (1370550529,), (1370550682,), (1370550717,), (1370550745,), (1370550761,), (1370550813,), (1370550861,), (1370550890,), (1370550899,), (1370550922,), (1370550926,), (1370550931,), (1370550934,), (1370550985,), (1370550986,), (1370550987,), (1370550991,), (1370551000,), (1370551006,), (1370551033,), (1370551036,), (1370551039,), (1370551047,), (1370551054,), (1370551066,), (1370551085,), (1370551090,), (1370551095,), (1370551098,), (1370551102,), (1370551104,), (1370551113,), (1370551123,), (1370551128,), (1370551133,), (1370551141,), (1370551149,), (1370551153,), (1370551158,), (1370551162,), (1370551166,), (1370551177,), (1370551180,), (1370551252,), (1370551278,), (1370551344,), (1370551402,), (1370551477,), (1370551565,), (1370551694,), (1370551726,), (1370551755,), (1370551785,), (1370551814,), (1370551848,), (1370551960,), (1370551988,), (1370552001,), (1370552016,), (1370552031,), (1370552035,), (1370552165,), (1370552203,), (1370552240,), (1370552325,), (1370552419,), (1370552486,), (1370552662,), (1370552668,), (1370552720,), (1370552727,), (1370552760,), (1370552766,), (1370552792,), (1370552797,), (1370552821,), (1370552825,), (1370552850,), (1370552854,), (1370552900,), (1370552911,), (1370552915,), (1370552918,), (1370552921,), (1370552924,), (1370553132,), (1370553136,), (1370553140,), (1370553147,), (1370553235,), (1370553262,), (1370553295,), (1370553432,), (1370553433,), (1370553437,), (1370553438,), (1370553446,), (1370553448,), (1370553459,), (1370553460,), (1370553468,), (1370553469,), (1370554023,), (1370554090,), (1370554175,), (1370554236,), (1370554309,), (1370554383,), (1370549430,), (1370549433,), (1370549438,), (1370549442,), (1370549445,), (1370549933,), (1370549951,), (1370549978,), (1370549989,), (1370550005,), (1370550022,), (1370550945,), (1370550946,), (1370550952,), (1370550957,), (1370550969,), (1370550974,), (1370551187,), (1370551190,), (1370551193,), (1370551214,), (1370551217,), (1370551226,), (1370552061,), (1370552079,), (1370552087,), (1370552091,), (1370552109,), (1370552126,), (1370553326,), (1370553357,), (1370553389,), (1370553483,), (1370553486,), (1370554650,), (1370554735,), (1370554811,), (1370554886,), (1370554944,), (1370555009,), (1370555312,), (1370556631,), (1370556657,), (1370556689,), (1370556724,), (1370556759,), (1370556786,), (1370557559,), (1370557577,), (1370557591,), (1370557596,), (1370557599,), (1370557605,), (1370559563,), (1370559628,), (1370559701,), (1370559736,), (1370559775,), (1370559787,), (1370562837,), (1370562894,), (1370562943,), (1370562997,), (1370563063,), (1370563142,), (1370565172,), (1370565205,), (1370565230,), (1370565261,), (1370565288,), (1370565293,), (1370568005,), (1370568092,), (1370568214,), (1370568311,), (1370568414,), (1370568533,), (1370572586,), (1370572676,), (1370572787,), (1370572867,), (1370572959,), (1370573032,), (1370575594,), (1370575620,), (1370575652,), (1370575713,), (1370575746,), (1370575766,), (1370576972,), (1370577031,), (1370555111,), (1370555127,), (1370555140,), (1370555185,), (1370555245,), (1370555427,), (1370555479,), (1370555517,), (1370555539,), (1370555554,), (1370555634,), (1370555872,), (1370555943,), (1370555999,), (1370556046,), (1370556091,), (1370556140,), (1370556298,), (1370556350,), (1370556401,), (1370556460,), (1370556498,), (1370556535,), (1370556883,), (1370556908,), (1370556934,), (1370556968,), (1370557002,), (1370557032,), (1370557104,), (1370557105,), (1370557118,), (1370557120,), (1370557137,), (1370557138,), (1370557139,), (1370557140,), (1370557142,), (1370557143,), (1370557145,), (1370557147,), (1370557162,), (1370557195,), (1370557226,), (1370557254,), (1370557280,), (1370557311,), (1370557403,), (1370557430,), (1370557463,), (1370557478,), (1370557482,), (1370557486,), (1370557650,), (1370557687,), (1370557731,), (1370557792,), (1370557828,), (1370557950,), (1370558181,), (1370558250,), (1370558293,), (1370558335,), (1370558382,), (1370558416,), (1370558621,), (1370558682,), (1370558731,), (1370558846,), (1370558915,), (1370558977,), (1370559121,), (1370559183,), (1370559248,), (1370559331,), (1370559373,), (1370559422,), (1370559815,), (1370559819,), (1370559844,), (1370559914,), (1370559976,), (1370560017,), (1370560220,), (1370560264,), (1370560317,), (1370560361,), (1370560444,), (1370560509,), (1370560661,), (1370560665,), (1370560704,), (1370560705,), (1370560710,), (1370560711,), (1370560730,), (1370560732,), (1370560757,), (1370560760,), (1370560783,), (1370560786,), (1370560885,), (1370560915,), (1370560944,), (1370560988,), (1370561043,), (1370561120,), (1370561322,), (1370561404,), (1370561491,), (1370561588,), (1370561709,), (1370561861,), (1370562191,), (1370562304,), (1370562420,), (1370562495,), (1370562581,), (1370562648,), (1370563360,), (1370563413,), (1370563474,), (1370563503,), (1370563519,), (1370563551,), (1370563661,), (1370563687,), (1370563726,), (1370563784,), (1370563840,), (1370563881,), (1370564059,), (1370564111,), (1370564140,), (1370564215,), (1370564273,), (1370564326,), (1370564519,), (1370564590,), (1370564663,), (1370564720,), (1370564746,), (1370564764,), (1370564823,), (1370564850,), (1370564881,), (1370564926,), (1370564954,), (1370565006,), (1370565515,), (1370565563,), (1370565624,), (1370565702,), (1370565763,), (1370565831,), (1370566235,), (1370566310,), (1370566398,), (1370566472,), (1370566550,), (1370566624,), (1370566885,), (1370566941,), (1370567005,), (1370567080,), (1370567156,), (1370567212,), (1370567393,), (1370567470,), (1370567556,), (1370567653,), (1370567740,), (1370567807,), (1370568951,), (1370569049,), (1370569106,), (1370569150,), (1370569227,), (1370569305,), (1370569605,), (1370569631,), (1370569697,), (1370569722,), (1370569779,), (1370569793,), (1370569875,), (1370569900,), (1370569974,), (1370569996,), (1370570097,), (1370570115,), (1370570438,), (1370570512,), (1370570540,), (1370570594,), (1370570654,), (1370570766,), (1370571101,), (1370571147,), (1370571183,), (1370571244,), (1370571316,), (1370571404,), (1370571658,), (1370571778,), (1370571950,), (1370572079,), (1370572201,), (1370572288,), (1370573357,), (1370573464,), (1370573541,), (1370573653,), (1370573800,), (1370573888,), (1370574125,), (1370574127,), (1370574179,), (1370574180,), (1370574255,), (1370574259,), (1370574315,), (1370574319,), (1370574366,), (1370574370,), (1370574425,), (1370574428,), (1370574607,), (1370574649,), (1370574687,), (1370574718,), (1370574768,), (1370574811,), (1370574957,), (1370574985,), (1370575020,), (1370575034,), (1370575036,), (1370575066,), (1370575209,), (1370575243,), (1370575310,), (1370575365,), (1370575422,), (1370575499,), (1370575887,), (1370575897,), (1370575947,), (1370575961,), (1370575978,), (1370576004,), (1370576062,), (1370576063,), (1370576065,), (1370576066,), (1370576068,), (1370576069,), (1370576073,), (1370576074,), (1370576077,), (1370576078,), (1370576088,), (1370576089,), (1370576201,), (1370576231,), (1370576259,), (1370576299,), (1370576333,), (1370576372,), (1370576479,), (1370576489,), (1370576567,), (1370576633,), (1370576708,), (1370576769,), (1370577516,), (1370577558,), (1370577630,), (1370577725,), (1370577814,), (1370577917,), (1370578024,), (1370578064,), (1370578100,), (1370578144,), (1370578239,), (1370578290,), (1370578423,), (1370578426,), (1370578467,), (1370578476,), (1370578538,), (1370578546,), (1370578611,), (1370578613,), (1370578618,), (1370578619,), (1370578633,), (1370578636,), (1370578786,), (1370578839,), (1370578878,), (1370578927,), (1370578987,), (1370579084,), (1370579353,), (1370579455,), (1370579573,), (1370579700,), (1370579839,), (1370579994,), (1370581484,), (1370581579,), (1370581679,), (1370581828,), (1370581957,), (1370582098,), (1370582513,), (1370582519,), (1370582598,), (1370582600,), (1370582614,), (1370582615,), (1370582625,), (1370582630,), (1370582653,), (1370582658,), (1370582683,), (1370582684,), (1370582752,), (1370582789,), (1370582838,), (1370582868,), (1370582899,), (1370582928,), (1370583027,), (1370583055,), (1370583081,), (1370583114,), (1370583159,), (1370583225,), (1370583415,), (1370583438,), (1370583448,), (1370583502,), (1370583543,), (1370583565,), (1370583791,), (1370583814,), (1370583821,), (1370583834,), (1370583845,), (1370583855,), (1370583943,), (1370583978,), (1370584015,), (1370584039,), (1370584066,), (1370584106,), (1370584264,), (1370584311,), (1370584357,), (1370584407,), (1370584419,), (1370584437,), (1370584492,), (1370584497,), (1370584501,), (1370584512,), (1370584516,), (1370584538,), (1370585287,), (1370585387,), (1370585502,), (1370585628,), (1370585749,), (1370585879,), (1370586181,), (1370586265,), (1370586346,), (1370586407,), (1370586487,), (1370586612,), (1370587137,), (1370587255,), (1370587356,), (1370587452,), (1370587532,), (1370587632,), (1370588864,), (1370588979,), (1370589126,), (1370589286,), (1370589472,), (1370589624,), (1370577092,), (1370577171,), (1370577270,), (1370577359,), (1370580515,), (1370580600,), (1370580677,), (1370580753,), (1370580872,), (1370581012,), (1370583663,), (1370583714,), (1370583737,), (1370583746,), (1370583765,), (1370583774,), (1370584722,), (1370584775,), (1370584836,), (1370584883,), (1370584924,), (1370584983,), (1370589954,), (1370590053,), (1370590114,), (1370590165,), (1370590202,), (1370590268,), (1370590762,), (1370592563,), (1370592616,), (1370592686,), (1370592741,), (1370592801,), (1370592862,), (1370596726,), (1370596813,), (1370596908,), (1370597074,), (1370597163,), (1370597254,), (1370599508,), (1370599555,), (1370599580,), (1370599601,), (1370599624,), (1370599628,), (1370600389,), (1370600392,), (1370600400,), (1370600427,), (1370600436,), (1370600445,), (1370602686,), (1370602761,), (1370602824,), (1370602878,), (1370602927,), (1370602983,), (1370605500,), (1370605524,), (1370605547,), (1370605570,), (1370605576,), (1370605588,), (1370606962,), (1370606991,), (1370607025,), (1370607043,), (1370607048,), (1370607059,), (1370607372,), (1370607375,), (1370607407,), (1370607410,), (1370607415,), (1370607422,), (1370607684,), (1370607689,), (1370607701,), (1370607713,), (1370607720,), (1370607741,), (1370608018,), (1370608021,), (1370608027,), (1370608043,), (1370608047,), (1370608057,), (1370590496,), (1370590575,), (1370590624,), (1370590686,), (1370590729,), (1370590890,), (1370590891,), (1370590922,), (1370590928,), (1370591001,), (1370591010,), (1370591066,), (1370591082,), (1370591149,), (1370591161,), (1370591204,), (1370591213,), (1370591396,), (1370591441,), (1370591469,), (1370591503,), (1370591560,), (1370591626,), (1370591772,), (1370591799,), (1370591848,), (1370591880,), (1370591914,), (1370591971,), (1370592147,), (1370592261,), (1370592333,), (1370592381,), (1370592416,), (1370592430,), (1370593031,), (1370593082,), (1370593141,), (1370593229,), (1370593309,), (1370593399,), (1370593668,), (1370593695,), (1370593746,), (1370593775,), (1370593877,), (1370593881,), (1370593976,), (1370593980,), (1370594059,), (1370594065,), (1370594134,), (1370594144,), (1370594263,), (1370594282,), (1370594312,), (1370594362,), (1370594413,), (1370594496,), (1370594903,), (1370595022,), (1370595149,), (1370595269,), (1370595377,), (1370595507,), (1370595798,), (1370595836,), (1370595942,), (1370596063,), (1370596169,), (1370596314,), (1370597518,), (1370597574,), (1370597683,), (1370597761,), (1370597800,), (1370597829,), (1370597909,), (1370597951,), (1370597985,), (1370598034,), (1370598056,), (1370598075,), (1370598181,), (1370598229,), (1370598299,), (1370598361,), (1370598425,), (1370598508,), (1370598699,), (1370598732,), (1370598755,), (1370598785,), (1370598843,), (1370598937,), (1370599212,), (1370599300,), (1370599345,), (1370599354,), (1370599364,), (1370599369,), (1370599696,), (1370599722,), (1370599748,), (1370599773,), (1370599808,), (1370599866,), (1370600037,), (1370600042,), (1370600082,), (1370600084,), (1370600102,), (1370600103,), (1370600117,), (1370600119,), (1370600159,), (1370600163,), (1370600200,), (1370600203,), (1370600274,), (1370600300,), (1370600303,), (1370600307,), (1370600309,), (1370600330,), (1370600342,), (1370600347,), (1370600351,), (1370600360,), (1370600363,), (1370600368,), (1370600564,), (1370600604,), (1370600636,), (1370600652,), (1370600694,), (1370600745,), (1370600870,), (1370600909,), (1370600959,), (1370600996,), (1370601030,), (1370601068,), (1370601162,), (1370601191,), (1370601228,), (1370601257,), (1370601299,), (1370601350,), (1370601658,), (1370601745,), (1370601827,), (1370601885,), (1370601938,), (1370601998,), (1370602193,), (1370602230,), (1370602265,), (1370602304,), (1370602337,), (1370602427,), (1370603160,), (1370603210,), (1370603263,), (1370603319,), (1370603405,), (1370603508,), (1370603844,), (1370603913,), (1370603948,), (1370603981,), (1370603997,), (1370604045,), (1370604239,), (1370604293,), (1370604333,), (1370604406,), (1370604475,), (1370604511,), (1370604614,), (1370604677,), (1370604729,), (1370604799,), (1370604851,), (1370604906,), (1370605014,), (1370605046,), (1370605083,), (1370605119,), (1370605184,), (1370605240,), (1370605650,), (1370605684,), (1370605710,), (1370605743,), (1370605777,), (1370605784,), (1370605801,), (1370605813,), (1370605819,), (1370605821,), (1370605824,), (1370605828,), (1370605907,), (1370605931,), (1370605961,), (1370606003,), (1370606048,), (1370606110,), (1370606277,), (1370606319,), (1370606390,), (1370606427,), (1370606466,), (1370606505,), (1370606656,), (1370606690,), (1370606735,), (1370606772,), (1370606811,), (1370606836,), (1370607082,), (1370607085,), (1370607089,), (1370607100,), (1370607116,), (1370607120,), (1370607138,), (1370607139,), (1370607142,), (1370607143,), (1370607146,), (1370607147,), (1370607158,), (1370607159,), (1370607164,), (1370607165,), (1370607173,), (1370607174,), (1370607190,), (1370607200,), (1370607203,), (1370607219,), (1370607221,), (1370607224,), (1370607273,), (1370607291,), (1370607312,), (1370607330,), (1370607341,), (1370607362,), (1370607437,), (1370607439,), (1370607442,), (1370607447,), (1370607468,), (1370607471,), (1370607481,), (1370607483,), (1370607497,), (1370607524,), (1370607533,), (1370607539,), (1370607555,), (1370607557,), (1370607560,), (1370607563,), (1370607567,), (1370607571,), (1370607598,), (1370607602,), (1370607610,), (1370607613,), (1370607615,), (1370607619,), (1370607647,), (1370607655,), (1370607663,), (1370607670,), (1370607674,), (1370607676,), (1370607777,), (1370607783,), (1370607787,), (1370607790,), (1370607793,), (1370607797,), (1370607814,), (1370607816,), (1370607823,), (1370607824,), (1370607832,), (1370607833,), (1370607836,), (1370607837,), (1370607840,), (1370607841,), (1370607843,), (1370607847,), (1370607907,), (1370607910,), (1370607927,), (1370607942,), (1370607947,), (1370607951,), (1370607962,), (1370607967,), (1370607970,), (1370607980,), (1370607983,), (1370607987,), (1370608065,), (1370608067,), (1370608069,), (1370608071,), (1370608076,), (1370608081,), (1370608170,), (1370608175,), (1370608217,), (1370608227,), (1370608257,), (1370608266,), (1370608294,), (1370608299,), (1370608323,), (1370608329,), (1370608354,), (1370608361,), (1370608525,), (1370608572,), (1370608606,), (1370608645,), (1370608667,), (1370608673,), (1370608703,), (1370608709,), (1370608722,), (1370608727,), (1370608731,), (1370608761,), (1370608856,), (1370608886,), (1370608917,), (1370608945,), (1370608980,), (1370609012,), (1370609298,), (1370609335,), (1370609371,), (1370609406,), (1370609432,), (1370609460,), (1370609568,), (1370609569,), (1370609572,), (1370609573,), (1370609575,), (1370609576,), (1370609577,), (1370609578,), (1370609580,), (1370609581,), (1370609590,), (1370609594,), (1370609747,), (1370609765,), (1370609776,), (1370609779,), (1370609817,), (1370609834,), (1370609845,), (1370609879,), (1370609924,), (1370609975,), (1370610025,), (1370610073,), (1370610166,), (1370610185,), (1370610196,), (1370610231,), (1370610246,), (1370610251,), (1370610547,), (1370610597,), (1370610645,), (1370610705,), (1370610763,), (1370610815,), (1370611134,), (1370611175,), (1370611228,), (1370611263,), (1370611290,), (1370611299,), (1370611358,), (1370611384,), (1370611410,), (1370611429,), (1370611434,), (1370609096,), (1370609114,), (1370609121,), (1370609134,), (1370609160,), (1370609188,), (1370610265,), (1370610267,), (1370610271,), (1370610297,), (1370610346,), (1370610398,), (1370611447,), (1370612929,), (1370612935,), (1370613007,), (1370613057,), (1370613093,), (1370613113,), (1370613368,), (1370613371,), (1370613376,), (1370613377,), (1370613378,), (1370613382,), (1370613748,), (1370613773,), (1370613801,), (1370613806,), (1370613818,), (1370613841,), (1370614289,), (1370614292,), (1370614298,), (1370614302,), (1370614304,), (1370614312,), (1370615075,), (1370615078,), (1370615083,), (1370615086,), (1370615093,), (1370615101,), (1370615834,), (1370615847,), (1370615861,), (1370615887,), (1370615902,), (1370615910,), (1370616096,), (1370616099,), (1370616110,), (1370616117,), (1370616131,), (1370616195,), (1370617286,), (1370617312,), (1370617324,), (1370617350,), (1370617377,), (1370617429,), (1370618721,), (1370618772,), (1370618844,), (1370618897,), (1370618946,), (1370619026,), (1370620801,), (1370620844,), (1370620887,), (1370620946,), (1370620998,), (1370621055,), (1370622019,), (1370622084,), (1370622138,), (1370622191,), (1370622261,), (1370622309,), (1370623887,), (1370623913,), (1370623950,), (1370624005,), (1370624051,), (1370611565,), (1370611567,), (1370611593,), (1370611605,), (1370611610,), (1370611614,), (1370611633,), (1370611634,), (1370611638,), (1370611644,), (1370611645,), (1370611648,), (1370611649,), (1370611661,), (1370611662,), (1370611679,), (1370611680,), (1370611696,), (1370611702,), (1370611704,), (1370611709,), (1370611713,), (1370611716,), (1370611733,), (1370611837,), (1370611841,), (1370611845,), (1370611856,), (1370611864,), (1370611869,), (1370611887,), (1370611892,), (1370611900,), (1370611904,), (1370611908,), (1370611913,), (1370611930,), (1370611935,), (1370611938,), (1370611941,), (1370611955,), (1370611964,), (1370611975,), (1370611980,), (1370611992,), (1370611994,), (1370611997,), (1370612018,), (1370612041,), (1370612048,), (1370612082,), (1370612125,), (1370612189,), (1370612244,), (1370612355,), (1370612370,), (1370612408,), (1370612439,), (1370612487,), (1370612518,), (1370612653,), (1370612672,), (1370612721,), (1370612755,), (1370612759,), (1370612763,), (1370612831,), (1370612842,), (1370612857,), (1370612871,), (1370612887,), (1370612890,), (1370613143,), (1370613161,), (1370613164,), (1370613168,), (1370613172,), (1370613176,), (1370613197,), (1370613198,), (1370613218,), (1370613219,), (1370613224,), (1370613226,), (1370613235,), (1370613236,), (1370613239,), (1370613240,), (1370613245,), (1370613247,), (1370613258,), (1370613266,), (1370613269,), (1370613273,), (1370613277,), (1370613280,), (1370613304,), (1370613306,), (1370613317,), (1370613331,), (1370613334,), (1370613351,), (1370613394,), (1370613399,), (1370613418,), (1370613427,), (1370613432,), (1370613433,), (1370613504,), (1370613506,), (1370613536,), (1370613537,), (1370613551,), (1370613552,), (1370613559,), (1370613560,), (1370613563,), (1370613564,), (1370613568,), (1370613571,), (1370613607,), (1370613615,), (1370613617,), (1370613619,), (1370613624,), (1370613629,), (1370613682,), (1370613694,), (1370613701,), (1370613711,), (1370613714,), (1370613718,), (1370613864,), (1370613905,), (1370613935,), (1370613961,), (1370613986,), (1370614025,), (1370614134,), (1370614161,), (1370614178,), (1370614190,), (1370614193,), (1370614196,), (1370614203,), (1370614214,), (1370614220,), (1370614224,), (1370614229,), (1370614236,), (1370614247,), (1370614250,), (1370614258,), (1370614265,), (1370614277,), (1370614280,), (1370614383,), (1370614392,), (1370614411,), (1370614422,), (1370614449,), (1370614459,), (1370614524,), (1370614527,), (1370614530,), (1370614531,), (1370614555,), (1370614562,), (1370614580,), (1370614589,), (1370614607,), (1370614623,), (1370614663,), (1370614678,), (1370614802,), (1370614833,), (1370614865,), (1370614893,), (1370614921,), (1370614945,), (1370614986,), (1370614989,), (1370615016,), (1370615029,), (1370615034,), (1370615048,), (1370615130,), (1370615133,), (1370615152,), (1370615153,), (1370615179,), (1370615185,), (1370615215,), (1370615216,), (1370615225,), (1370615227,), (1370615258,), (1370615261,), (1370615292,), (1370615295,), (1370615310,), (1370615311,), (1370615313,), (1370615314,), (1370615330,), (1370615333,), (1370615335,), (1370615339,), (1370615342,), (1370615344,), (1370615357,), (1370615379,), (1370615413,), (1370615441,), (1370615455,), (1370615501,), (1370615630,), (1370615657,), (1370615714,), (1370615741,), (1370615760,), (1370615777,), (1370615929,), (1370615930,), (1370615941,), (1370615942,), (1370615952,), (1370615953,), (1370615956,), (1370615957,), (1370615960,), (1370615961,), (1370615962,), (1370615964,), (1370615995,), (1370616003,), (1370616026,), (1370616047,), (1370616049,), (1370616052,), (1370616069,), (1370616074,), (1370616077,), (1370616085,), (1370616087,), (1370616090,), (1370616389,), (1370616422,), (1370616443,), (1370616486,), (1370616521,), (1370616564,), (1370616634,), (1370616662,), (1370616690,), (1370616696,), (1370616700,), (1370616703,), (1370616717,), (1370616721,), (1370616725,), (1370616738,), (1370616751,), (1370616778,), (1370616917,), (1370616969,), (1370617015,), (1370617050,), (1370617108,), (1370617166,), (1370617575,), (1370617627,), (1370617657,), (1370617695,), (1370617746,), (1370617774,), (1370617814,), (1370617872,), (1370617925,), (1370617973,), (1370617994,), (1370617998,), (1370618105,), (1370618137,), (1370618175,), (1370618210,), (1370618213,), (1370618281,), (1370618483,), (1370618567,), (1370618597,), (1370618627,), (1370618641,), (1370618645,), (1370619234,), (1370619299,), (1370619378,), (1370619425,), (1370619467,), (1370619485,), (1370619578,), (1370619579,), (1370619620,), (1370619623,), (1370619670,), (1370619676,), (1370619770,), (1370619781,), (1370619857,), (1370619874,), (1370619928,), (1370619941,), (1370620087,), (1370620147,), (1370620183,), (1370620205,), (1370620237,), (1370620288,), (1370620454,), (1370620515,), (1370620559,), (1370620598,), (1370620637,), (1370620711,), (1370621273,), (1370621327,), (1370621388,), (1370621438,), (1370621519,), (1370621546,), (1370621574,), (1370621607,), (1370621641,), (1370621653,), (1370621656,), (1370621677,), (1370621724,), (1370621761,), (1370621797,), (1370621801,), (1370621804,), (1370621809,), (1370621814,), (1370621816,), (1370621819,), (1370621822,), (1370621833,), (1370621865,), (1370622383,), (1370622429,), (1370622510,), (1370622637,), (1370622742,), (1370622776,), (1370622955,), (1370622966,), (1370622990,), (1370623007,), (1370623036,), (1370623048,), (1370623071,), (1370623087,), (1370623123,), (1370623126,), (1370623136,), (1370623147,), (1370623252,), (1370623256,), (1370623279,), (1370623304,), (1370623306,), (1370623332,), (1370623471,), (1370623499,), (1370623527,), (1370623562,), (1370623591,), (1370623618,), (1370623717,), (1370623721,), (1370623730,), (1370623733,), (1370623737,), (1370623750,), (1370624340,), (1370624412,), (1370624484,), (1370624611,), (1370624679,), (1370624735,), (1370625047,), (1370625086,), (1370625116,), (1370625146,), (1370625180,), (1370625191,), (1370625300,), (1370625304,), (1370625318,), (1370625321,), (1370625324,), (1370625325,), (1370625327,), (1370625328,), (1370625330,), (1370625331,), (1370625333,), (1370625334,), (1370625645,), (1370625743,), (1370625834,), (1370625896,), (1370625958,), (1370626036,), (1370626679,), (1370626731,), (1370626775,), (1370626886,), (1370627013,), (1370627293,), (1370627296,), (1370627388,), (1370627398,), (1370627432,), (1370627435,), (1370627482,), (1370627485,), (1370627492,), (1370627495,), (1370627541,), (1370627552,), (1370627591,), (1370627611,), (1370627637,), (1370627665,), (1370627682,), (1370627685,), (1370627692,), (1370627698,), (1370627701,), (1370627747,), (1370627770,), (1370627796,), (1370628252,), (1370628262,), (1370628284,), (1370628335,), (1370628368,), (1370628378,), (1370628424,), (1370628426,), (1370628460,), (1370628463,), (1370628487,), (1370628488,), (1370628510,), (1370628511,), (1370628551,), (1370628552,), (1370628554,), (1370628555,), (1370628580,), (1370628625,), (1370628689,), (1370628718,), (1370628751,), (1370628792,), (1370628918,), (1370628969,), (1370628996,), (1370629068,), (1370629076,), (1370629106,), (1370629305,), (1370629334,), (1370629367,), (1370629399,), (1370629429,), (1370629460,), (1370629559,), (1370629560,), (1370629591,), (1370629592,), (1370629639,), (1370629641,), (1370629675,), (1370629680,), (1370629710,), (1370629715,), (1370629757,), (1370629766,), (1370629857,), (1370629895,), (1370629899,), (1370629923,), (1370629948,), (1370630038,), (1370630342,), (1370630392,), (1370630461,), (1370630552,), (1370630598,), (1370630631,), (1370630955,), (1370630960,), (1370630988,), (1370631023,), (1370631052,), (1370631080,), (1370631216,), (1370631224,), (1370631250,), (1370631271,), (1370631288,), (1370631313,), (1370631385,), (1370631391,), (1370631400,), (1370631405,), (1370631437,), (1370631463,), (1370631518,), (1370631529,), (1370631534,), (1370631537,), (1370631539,), (1370631582,), (1370631797,), (1370631840,), (1370631888,), (1370631937,), (1370631983,), (1370632028,), (1370632355,), (1370632359,), (1370632365,), (1370632367,), (1370632370,), (1370632373,), (1370632477,), (1370632504,), (1370632534,), (1370632564,), (1370632586,), (1370632592,), (1370632614,), (1370632616,), (1370632622,), (1370632646,), (1370632684,), (1370632712,), (1370632836,), (1370632878,), (1370632900,), (1370632906,), (1370632911,), (1370632916,), (1370632931,), (1370632960,), (1370632995,), (1370633053,), (1370633117,), (1370633171,), (1370633569,), (1370633579,), (1370633585,), (1370633593,), (1370633595,), (1370633605,), (1370633621,), (1370633630,), (1370633634,), (1370633637,), (1370633645,), (1370633657,), (1370633686,), (1370633690,), (1370633695,), (1370633707,), (1370633717,), (1370633720,), (1370633773,), (1370633788,), (1370633801,), (1370633804,), (1370633807,), (1370633809,), (1370633826,), (1370633830,), (1370633841,), (1370633844,), (1370633846,), (1370633848,), (1370633866,), (1370633870,), (1370633873,), (1370633878,), (1370633883,), (1370633886,), (1370633905,), (1370633910,), (1370633913,), (1370633928,), (1370633930,), (1370633935,), (1370633985,), (1370633989,), (1370633991,), (1370633992,), (1370633995,), (1370633998,), (1370634017,), (1370634019,), (1370634021,), (1370634023,), (1370634025,), (1370634027,), (1370634091,), (1370634118,), (1370634152,), (1370634179,), (1370634182,), (1370634213,), (1370634290,), (1370634317,), (1370634346,), (1370634364,), (1370634372,), (1370634375,), (1370634428,), (1370634431,), (1370634434,), (1370634438,), (1370634442,), (1370634443,), (1370634453,), (1370634454,), (1370634457,), (1370634458,), (1370634464,), (1370634467,), (1370634473,), (1370634474,), (1370634477,), (1370634478,), (1370634479,), (1370634480,), (1370634498,), (1370634508,), (1370634511,), (1370634514,), (1370634521,), (1370634523,), (1370634601,), (1370634638,), (1370634641,), (1370634652,), (1370634661,), (1370634669,), (1370634715,), (1370634730,), (1370634736,), (1370634749,), (1370634797,), (1370634849,), (1370635283,), (1370635294,), (1370635312,), (1370635316,), (1370635330,), (1370635355,), (1370635385,), (1370635389,), (1370635394,), (1370635424,), (1370635449,), (1370635475,), (1370635515,), (1370635519,), (1370635529,), (1370635533,), (1370635536,), (1370635540,), (1370635725,), (1370635734,), (1370635742,), (1370635748,), (1370635764,), (1370635771,), (1370635829,), (1370635841,), (1370635843,), (1370635844,), (1370635845,), (1370635849,), (1370635874,), (1370635877,), (1370635896,), (1370635921,), (1370635941,), (1370635967,), (1370636082,), (1370636133,), (1370636197,), (1370636265,), (1370636341,), (1370636421,), (1370636750,), (1370636894,), (1370636988,), (1370637081,), (1370637177,), (1370637251,), (1370637855,), (1370637858,), (1370637863,), (1370637869,), (1370637879,), (1370637891,), (1370637931,), (1370637933,), (1370637943,), (1370637944,), (1370637953,), (1370637955,), (1370637963,), (1370637964,), (1370637966,), (1370637967,), (1370637969,), (1370637970,), (1370637984,), (1370637988,), (1370638015,), (1370638051,), (1370638082,), (1370638109,), (1370638199,), (1370638212,), (1370638226,), (1370638252,), (1370638255,), (1370638267,), (1370638329,), (1370638332,), (1370638342,), (1370638368,), (1370638382,), (1370638384,), (1370638539,), (1370638552,), (1370638577,), (1370638604,), (1370638632,), (1370638659,), (1370638755,), (1370638757,), (1370638782,), (1370638784,), (1370638803,), (1370638804,), (1370638807,), (1370638808,), (1370638811,), (1370638813,), (1370638816,), (1370638817,), (1370638852,), (1370638896,), (1370638922,), (1370638951,), (1370638978,), (1370639003,), (1370639119,), (1370639171,), (1370639241,), (1370639291,), (1370639313,), (1370639321,), (1370639370,), (1370639375,), (1370639378,), (1370639383,), (1370639392,), (1370639393,), (1370639411,), (1370639422,), (1370639432,), (1370639440,), (1370639446,), (1370639447,), (1370639460,), (1370639476,), (1370639509,), (1370639548,), (1370639574,), (1370639604,), (1370640199,), (1370640281,), (1370640360,), (1370640446,), (1370640533,), (1370640609,), (1370624112,), (1370626293,), (1370626357,), (1370626423,), (1370626490,), (1370626549,), (1370626611,), (1370627092,), (1370627863,), (1370627873,), (1370627935,), (1370628007,), (1370628077,), (1370628143,), (1370629204,), (1370629233,), (1370629236,), (1370629238,), (1370629245,), (1370629247,), (1370630677,), (1370630702,), (1370630729,), (1370630781,), (1370630818,), (1370630854,), (1370632110,), (1370632138,), (1370632168,), (1370632192,), (1370632217,), (1370632245,), (1370633327,), (1370633359,), (1370633387,), (1370633416,), (1370633446,), (1370633475,), (1370633728,), (1370633731,), (1370633734,), (1370633738,), (1370633741,), (1370633745,), (1370633941,), (1370633942,), (1370633945,), (1370633948,), (1370633951,), (1370633962,), (1370634381,), (1370634383,), (1370634386,), (1370634391,), (1370634405,), (1370634411,), (1370635064,), (1370635110,), (1370635158,), (1370635202,), (1370635232,), (1370635254,), (1370635576,), (1370635611,), (1370635637,), (1370635647,), (1370635654,), (1370635680,), (1370637467,), (1370637536,), (1370637597,), (1370637675,), (1370637720,), (1370637771,), (1370638414,), (1370638446,), (1370638515,), (1370638518,), (1370638520,), (1370638524,), (1370639334,), (1370639335,), (1370639339,), (1370639347,), (1370639349,), (1370639360,), (1370643091,), (1370643097,), (1370643100,), (1370643103,), (1370643107,), (1370643110,), (1370643227,), (1370643241,), (1370643288,), (1370643357,), (1370643389,), (1370643394,), (1370643476,), (1370643482,), (1370643541,), (1370643573,), (1370643581,), (1370643585,), (1370643605,), (1370643606,), (1370643607,), (1370643608,), (1370643610,), (1370643611,), (1370643614,), (1370643615,), (1370643617,), (1370643618,), (1370643620,), (1370643621,), (1370643665,), (1370643701,), (1370643745,), (1370643781,), (1370643816,), (1370643838,), (1370643950,), (1370644013,), (1370644077,), (1370644143,), (1370644176,), (1370644196,), (1370644461,), (1370644463,), (1370644487,), (1370644488,), (1370644522,), (1370644525,), (1370644557,), (1370644563,), (1370644594,), (1370644599,), (1370644632,), (1370644638,), (1370644758,), (1370644782,), (1370644788,), (1370644791,), (1370644796,), (1370644808,), (1370645056,), (1370645089,), (1370645141,), (1370645198,), (1370645239,), (1370645244,), (1370645927,), (1370645976,), (1370646081,), (1370646161,), (1370646235,), (1370646276,), (1370646363,), (1370646381,), (1370646385,), (1370646429,), (1370646473,), (1370646514,), (1370646774,), (1370646841,), (1370646877,), (1370646909,), (1370646938,), (1370646978,), (1370648041,), (1370648115,), (1370648200,), (1370648256,), (1370648353,), (1370648461,), (1370648697,), (1370648762,), (1370648838,), (1370648899,), (1370648980,), (1370649061,), (1370649143,), (1370649148,), (1370649208,), (1370649251,), (1370649281,), (1370649353,), (1370650079,), (1370650084,), (1370650114,), (1370650123,), (1370650148,), (1370650157,), (1370650184,), (1370650202,), (1370650252,), (1370650263,), (1370650285,), (1370650294,), (1370650530,), (1370650628,), (1370650706,), (1370650761,), (1370650817,), (1370650863,), (1370651204,), (1370651282,), (1370651364,), (1370651413,), (1370651445,), (1370651481,), (1370651599,), (1370651626,), (1370651636,), (1370651640,), (1370651643,), (1370651646,), (1370651734,), (1370651770,), (1370651806,), (1370651834,), (1370651846,), (1370651849,), (1370652128,), (1370652131,), (1370652137,), (1370652142,), (1370652151,), (1370652156,), (1370652180,), (1370652187,), (1370652217,), (1370652247,), (1370652265,), (1370652269,), (1370652275,), (1370652277,), (1370652280,), (1370652295,), (1370652331,), (1370652366,), (1370652673,), (1370652685,), (1370652688,), (1370652693,), (1370652695,), (1370652698,), (1370652701,), (1370652709,), (1370652714,), (1370652719,), (1370652726,), (1370652732,), (1370652750,), (1370652751,), (1370652753,), (1370652762,), (1370652766,), (1370652770,), (1370652814,), (1370652818,), (1370652829,), (1370652845,), (1370652849,), (1370652853,), (1370652866,), (1370652873,), (1370652892,), (1370652901,), (1370652916,), (1370652944,), (1370653396,), (1370653421,), (1370653432,), (1370653462,), (1370653496,), (1370653544,), (1370653784,), (1370653853,), (1370653937,), (1370654011,), (1370654163,), (1370654415,), (1370654447,), (1370654498,), (1370654565,), (1370654656,), (1370654760,), (1370654994,), (1370655074,), (1370655098,), (1370655180,), (1370655270,), (1370655386,), (1370655529,), (1370655539,), (1370655580,), (1370655613,), (1370655614,), (1370655615,), (1370655666,), (1370655675,), (1370655679,), (1370655686,), (1370655689,), (1370655692,), (1370655721,), (1370655729,), (1370655733,), (1370655736,), (1370655744,), (1370655748,), (1370655760,), (1370655762,), (1370655764,), (1370655771,), (1370655774,), (1370655779,), (1370655824,), (1370655826,), (1370655830,), (1370655835,), (1370655862,), (1370655869,), (1370655908,), (1370655916,), (1370655919,), (1370655923,), (1370655957,), (1370655998,), (1370656045,), (1370656046,), (1370656051,), (1370656055,), (1370656064,), (1370656071,), (1370656124,), (1370656137,), (1370656144,), (1370656155,), (1370656169,), (1370656192,), (1370656215,), (1370656226,), (1370656233,), (1370656255,), (1370656259,), (1370656282,), (1370656436,), (1370656439,), (1370656442,), (1370656445,), (1370656446,), (1370656448,), (1370656457,), (1370656465,), (1370656469,), (1370656474,), (1370656479,), (1370656485,), (1370656502,), (1370656507,), (1370656509,), (1370656514,), (1370656530,), (1370656541,), (1370656597,), (1370656616,), (1370656650,), (1370656684,), (1370656719,), (1370656753,), (1370656835,), (1370656839,), (1370656843,), (1370656845,), (1370656857,), (1370656859,), (1370656894,), (1370656900,), (1370656906,), (1370656932,), (1370656981,), (1370656989,), (1370657179,), (1370657184,), (1370657189,), (1370657206,), (1370657225,), (1370657233,), (1370657265,), (1370657270,), (1370657274,), (1370657280,), (1370657285,), (1370657288,), (1370657400,), (1370657434,), (1370657452,), (1370657457,), (1370657466,), (1370657469,), (1370657562,), (1370657564,), (1370657598,), (1370657600,), (1370657633,), (1370657638,), (1370657729,), (1370657734,), (1370657787,), (1370657794,), (1370657824,), (1370657831,), (1370657959,), (1370657993,), (1370658008,), (1370658012,), (1370658017,), (1370658030,), (1370658079,), (1370658083,), (1370658088,), (1370658093,), (1370658097,), (1370658103,), (1370658173,), (1370658180,), (1370658188,), (1370658199,), (1370658217,), (1370658224,), (1370658239,), (1370658252,), (1370658256,), (1370658261,), (1370658266,), (1370658281,), (1370658412,), (1370658437,), (1370658466,), (1370658476,), (1370658490,), (1370658495,), (1370658541,), (1370658542,), (1370658546,), (1370658547,), (1370658552,), (1370658553,), (1370658557,), (1370658559,), (1370658563,), (1370658564,), (1370658566,), (1370658567,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04072025': {'nb_upload': 84, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24612688]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412] map_info['map_portfolio_photo'] : {24612688: [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412, 1370658281, 1370658266, 1370658261, 1370658256, 1370658252, 1370658239, 1370658224, 1370658217, 1370658199, 1370658188, 1370658180, 1370658173, 1370658103, 1370658097, 1370658093, 1370658088, 1370658083, 1370658079, 1370658030, 1370658017, 1370658012, 1370658008, 1370657993, 1370657959, 1370657831, 1370657824, 1370657794, 1370657787, 1370657734, 1370657729, 1370657638, 1370657633, 1370657600, 1370657598, 1370657564, 1370657562, 1370657469, 1370657466, 1370657457, 1370657452, 1370657434, 1370657400, 1370657288, 1370657285, 1370657280, 1370657274, 1370657270, 1370657265, 1370657233, 1370657225, 1370657206, 1370657189, 1370657184, 1370657179, 1370656989, 1370656981, 1370656932, 1370656906, 1370656900, 1370656894, 1370656859, 1370656857, 1370656845, 1370656843, 1370656839, 1370656835]} final : True mtd_id 4302 list_pids : [1370658567, 1370658566, 1370658564, 1370658563, 1370658559, 1370658557, 1370658553, 1370658552, 1370658547, 1370658546, 1370658542, 1370658541, 1370658495, 1370658490, 1370658476, 1370658466, 1370658437, 1370658412] Looping around the photos to save general results len do output : 1 /24612688Didn'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, '3237727') ('4302', '24612688', '1370658567', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658566', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658564', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658563', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658559', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658557', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658553', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658552', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658547', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658546', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658542', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658541', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658495', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658490', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658476', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658466', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658437', None, None, None, None, None, '3237727') ('4302', None, None, None, None, None, None, None, '3237727') ('4302', '24612688', '1370658412', None, None, None, None, None, '3237727') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '24612688', 'None', None, None, None, None, '3237727'), ('4302', '24612688', '1370658567', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658566', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658564', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658563', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658559', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658557', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658553', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658552', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658547', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658546', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658542', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658541', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658495', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658490', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658476', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658466', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658437', None, None, None, None, None, '3237727'), ('4302', '24612688', '1370658412', None, None, None, None, None, '3237727')] time used for this insertion : 0.0217893123626709 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.324122428894043 time spend to save output : 0.02209615707397461 total time spend for step 5 : 2.3462185859680176 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 (3237727) 2.65user 2.51system 0:12.45elapsed 41%CPU (0avgtext+0avgdata 164856maxresident)k 27008inputs+16848outputs (107major+77816minor)pagefaults 0swaps