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 : 3964852 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 (4133704) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4133704) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987565 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4133704'] with mtr_portfolio_ids : ['28987565'] and first list_photo_ids : [] new path : /proc/3964852/ Name: python3 Umask: 0002 State: R (running) Tgid: 3964852 Ngid: 0 Pid: 3964852 PPid: 3964851 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3964852 NSpid: 3964852 NSpgid: 3963434 NSsid: 3963434 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98344 kB VmRSS: 98344 kB RssAnon: 59908 kB RssFile: 38436 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3964852', 'Ngid': '0', 'Pid': '3964852', 'PPid': '3964851', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3964852', 'NSpid': '3964852', 'NSpgid': '3963434', 'NSsid': '3963434', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98344 kB', 'VmRSS': '98344 kB', 'RssAnon': '59908 kB', 'RssFile': '38436 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '3964852', '1106908', '0', '1106884', '865636', '98344', b'', 'marlene', '4133704') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28987565) 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 (4133704 ) ) 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 (28987565) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396570534, 'portfolio_id': 28987565}, {'photo_id': 1396570499, 'portfolio_id': 28987565}, {'photo_id': 1396570496, 'portfolio_id': 28987565}, {'photo_id': 1396570493, 'portfolio_id': 28987565}, {'photo_id': 1396570490, 'portfolio_id': 28987565}, {'photo_id': 1396570487, 'portfolio_id': 28987565}, {'photo_id': 1396570480, 'portfolio_id': 28987565}, {'photo_id': 1396570431, 'portfolio_id': 28987565}, {'photo_id': 1396570429, 'portfolio_id': 28987565}, {'photo_id': 1396570427, 'portfolio_id': 28987565}, {'photo_id': 1396570425, 'portfolio_id': 28987565}, {'photo_id': 1396570406, 'portfolio_id': 28987565}, {'photo_id': 1396570403, 'portfolio_id': 28987565}, {'photo_id': 1396570400, 'portfolio_id': 28987565}, {'photo_id': 1396570398, 'portfolio_id': 28987565}, {'photo_id': 1396570396, 'portfolio_id': 28987565}, {'photo_id': 1396570372, 'portfolio_id': 28987565}, {'photo_id': 1396570367, 'portfolio_id': 28987565}, {'photo_id': 1396570362, 'portfolio_id': 28987565}, {'photo_id': 1396570358, 'portfolio_id': 28987565}, {'photo_id': 1396570355, 'portfolio_id': 28987565}, {'photo_id': 1396570333, 'portfolio_id': 28987565}, {'photo_id': 1396570330, 'portfolio_id': 28987565}, {'photo_id': 1396570327, 'portfolio_id': 28987565}, {'photo_id': 1396570325, 'portfolio_id': 28987565}, {'photo_id': 1396570319, 'portfolio_id': 28987565}, {'photo_id': 1396570172, 'portfolio_id': 28987565}, {'photo_id': 1396570168, 'portfolio_id': 28987565}, {'photo_id': 1396570165, 'portfolio_id': 28987565}, {'photo_id': 1396570163, 'portfolio_id': 28987565}, {'photo_id': 1396570160, 'portfolio_id': 28987565}, {'photo_id': 1396570090, 'portfolio_id': 28987565}, {'photo_id': 1396570086, 'portfolio_id': 28987565}, {'photo_id': 1396570076, 'portfolio_id': 28987565}, {'photo_id': 1396570073, 'portfolio_id': 28987565}, {'photo_id': 1396570072, 'portfolio_id': 28987565}, {'photo_id': 1396570044, 'portfolio_id': 28987565}, {'photo_id': 1396570039, 'portfolio_id': 28987565}, {'photo_id': 1396570013, 'portfolio_id': 28987565}, {'photo_id': 1396570001, 'portfolio_id': 28987565}, {'photo_id': 1396569997, 'portfolio_id': 28987565}, {'photo_id': 1396569969, 'portfolio_id': 28987565}, {'photo_id': 1396569964, 'portfolio_id': 28987565}, {'photo_id': 1396569960, 'portfolio_id': 28987565}, {'photo_id': 1396569957, 'portfolio_id': 28987565}, {'photo_id': 1396569955, 'portfolio_id': 28987565}, {'photo_id': 1396569953, 'portfolio_id': 28987565}, {'photo_id': 1396569915, 'portfolio_id': 28987565}, {'photo_id': 1396569914, 'portfolio_id': 28987565}, {'photo_id': 1396569913, 'portfolio_id': 28987565}, {'photo_id': 1396569858, 'portfolio_id': 28987565}, {'photo_id': 1396569855, 'portfolio_id': 28987565}] map_portfolio_id_photo_id: {28987565: [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480, 1396570431, 1396570429, 1396570427, 1396570425, 1396570406, 1396570403, 1396570400, 1396570398, 1396570396, 1396570372, 1396570367, 1396570362, 1396570358, 1396570355, 1396570333, 1396570330, 1396570327, 1396570325, 1396570319, 1396570172, 1396570168, 1396570165, 1396570163, 1396570160, 1396570090, 1396570086, 1396570076, 1396570073, 1396570072, 1396570044, 1396570039, 1396570013, 1396570001, 1396569997, 1396569969, 1396569964, 1396569960, 1396569957, 1396569955, 1396569953, 1396569915, 1396569914, 1396569913, 1396569858, 1396569855]} ##### 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.019169330596923828 #### 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 Nov 28 08:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28987565) 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 : 28987565 get user id for portfolio 28987565 get sub ptf for main ptf 28987565, type 3726 and hashtags ['cartonnette', 'environnement', 'kraft', 'plastique', 'autre_refus', 'metal', 'mal_croppe', 'papier', 'Teint_Dans_La_Masse', 'flou', 'Carton_gris', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28987565 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','kraft','plastique','autre_refus','metal','mal_croppe','papier','Teint_Dans_La_Masse','flou','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28987565 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','kraft','plastique','autre_refus','metal','mal_croppe','papier','Teint_Dans_La_Masse','flou','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 28987565, 'sub_port_id': 28987567, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693676, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'flou': {'main_port_id': 28987565, 'sub_port_id': 28987568, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693677, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'plastique': {'main_port_id': 28987565, 'sub_port_id': 28987569, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693678, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'Carton_brun': {'main_port_id': 28987565, 'sub_port_id': 28987570, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693679, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'Carton_gris': {'main_port_id': 28987565, 'sub_port_id': 28987571, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693680, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'cartonnette': {'main_port_id': 28987565, 'sub_port_id': 28987572, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693681, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'environnement': {'main_port_id': 28987565, 'sub_port_id': 28987573, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693682, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'mal_croppe': {'main_port_id': 28987565, 'sub_port_id': 28987574, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693683, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 28987565, 'sub_port_id': 28987575, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693684, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'papier': {'main_port_id': 28987565, 'sub_port_id': 28987576, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693685, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'autre_refus': {'main_port_id': 28987565, 'sub_port_id': 28987577, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693686, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}, 'metal': {'main_port_id': 28987565, 'sub_port_id': 28987578, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693687, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28987567 , 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=28987565 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 (28987567) result : ((1396570474,), (1396570476,), (1396570486,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987568 , 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=28987565 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 (28987568) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987569 , 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=28987565 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 (28987569) result : ((1396570055,), (1396570056,), (1396570058,), (1396570059,), (1396570060,), (1396570238,), (1396570323,), (1396570324,), (1396570378,), (1396570379,), (1396570380,), (1396570392,), (1396570393,), (1396570468,), (1396570470,), (1396570471,), (1396570472,), (1396570482,), (1396570483,), (1396570484,), (1396570485,), (1396570552,), (1396570553,), (1396570561,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987570 , 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=28987565 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 (28987570) result : ((1396570053,), (1396570320,), (1396570321,), (1396570460,), (1396570461,), (1396570462,), (1396570463,), (1396570478,), (1396570479,), (1396570560,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987571 , 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=28987565 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 (28987571) result : ((1396570206,), (1396570316,), (1396570317,), (1396570376,), (1396570389,), (1396570454,), (1396570455,), (1396570456,), (1396570548,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987572 , 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=28987565 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 (28987572) result : ((1396570221,), (1396570223,), (1396570225,), (1396570227,), (1396570318,), (1396570391,), (1396570458,), (1396570459,), (1396570475,), (1396570477,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987573 , 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=28987565 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 (28987573) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987574 , 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=28987565 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 (28987574) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987575 , 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=28987565 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 (28987575) result : ((1396570051,), (1396570052,), (1396570066,), (1396570067,), (1396570180,), (1396570181,), (1396570183,), (1396570313,), (1396570314,), (1396570387,), (1396570453,), (1396570464,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987576 , 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=28987565 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 (28987576) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987577 , 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=28987565 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 (28987577) result : ((1396570194,), (1396570196,), (1396570198,), (1396570388,), (1396570465,), (1396570467,), (1396570469,), (1396570546,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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 28987578 , 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=28987565 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 (28987578) result : ((1396570061,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28987565) result : ((1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) 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 (1396570400) 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`=28987565 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','kraft','plastique','autre_refus','metal','mal_croppe','papier','Teint_Dans_La_Masse','flou','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28987565 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','kraft','plastique','autre_refus','metal','mal_croppe','papier','Teint_Dans_La_Masse','flou','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 28987565, 'sub_port_id': 28987579, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693688, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'flou': {'main_port_id': 28987565, 'sub_port_id': 28987580, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693689, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'plastique': {'main_port_id': 28987565, 'sub_port_id': 28987581, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693690, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'Carton_brun': {'main_port_id': 28987565, 'sub_port_id': 28987582, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693691, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'Carton_gris': {'main_port_id': 28987565, 'sub_port_id': 28987583, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693692, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'cartonnette': {'main_port_id': 28987565, 'sub_port_id': 28987584, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693693, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'environnement': {'main_port_id': 28987565, 'sub_port_id': 28987585, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693694, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'mal_croppe': {'main_port_id': 28987565, 'sub_port_id': 28987586, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693695, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 28987565, 'sub_port_id': 28987587, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693696, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'papier': {'main_port_id': 28987565, 'sub_port_id': 28987588, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693697, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'autre_refus': {'main_port_id': 28987565, 'sub_port_id': 28987589, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693698, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 22, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}, 'metal': {'main_port_id': 28987565, 'sub_port_id': 28987590, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19693699, 'last_updated_at': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 8, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 8, 22, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987567 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987580,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987568 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987585,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987573 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987575 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987588,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987576 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987589,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987577 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28987590,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28987578 lien utilise dans velours : https://marlene.fotonower.com/velours/28987579,28987580,28987581,28987582,28987583,28987584,28987585,28987586,28987587,28987588,28987589,28987590?tags=kraft,flou,plastique,Carton_brun,Carton_gris,cartonnette,environnement,mal_croppe,Teint_Dans_La_Masse,papier,autre_refus,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28987565]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480] map_info['map_portfolio_photo'] : {28987565: [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480, 1396570431, 1396570429, 1396570427, 1396570425, 1396570406, 1396570403, 1396570400, 1396570398, 1396570396, 1396570372, 1396570367, 1396570362, 1396570358, 1396570355, 1396570333, 1396570330, 1396570327, 1396570325, 1396570319, 1396570172, 1396570168, 1396570165, 1396570163, 1396570160, 1396570090, 1396570086, 1396570076, 1396570073, 1396570072, 1396570044, 1396570039, 1396570013, 1396570001, 1396569997, 1396569969, 1396569964, 1396569960, 1396569957, 1396569955, 1396569953, 1396569915, 1396569914, 1396569913, 1396569858, 1396569855]} final : False mtd_id 4302 list_pids : [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480] Looping around the photos to save general results len do output : 1 /28987565. 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, '4133704') ('4302', '28987565', '1396570534', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570499', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570496', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570493', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570490', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570487', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570480', None, None, None, None, None, '4133704') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '28987565', "{'kraft': 28987567, 'flou': 28987568, 'plastique': 28987569, 'Carton_brun': 28987570, 'Carton_gris': 28987571, 'cartonnette': 28987572, 'environnement': 28987573, 'mal_croppe': 28987574, 'Teint_Dans_La_Masse': 28987575, 'papier': 28987576, 'autre_refus': 28987577, 'metal': 28987578}", None, None, None, None, '4133704'), ('4302', '28987565', '1396570534', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570499', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570496', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570493', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570490', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570487', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570480', None, None, None, None, None, '4133704')] time used for this insertion : 0.015755891799926758 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5413362979888916 time spend to save output : 0.016039133071899414 total time spend for step 1 : 0.557375431060791 step2:final Fri Nov 28 08:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (28987565) 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 28987565 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396569858,1396569855,1396569915,1396569914,1396569913,1396569969,1396569964,1396569960,1396569957,1396569955,1396569953,1396570044,1396570039,1396570013,1396570001,1396569997,1396570090,1396570086,1396570076,1396570073,1396570072,1396570172,1396570168,1396570165,1396570163,1396570160,1396570333,1396570330,1396570327,1396570325,1396570319,1396570372,1396570367,1396570362,1396570358,1396570355,1396570406,1396570403,1396570400,1396570398,1396570396,1396570431,1396570429,1396570427,1396570425,1396570499,1396570496,1396570493,1396570490,1396570487,1396570480,1396570534); 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([28987565]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',)} new output for save of step final : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',)} [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480] map_info['map_portfolio_photo'] : {28987565: [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480, 1396570431, 1396570429, 1396570427, 1396570425, 1396570406, 1396570403, 1396570400, 1396570398, 1396570396, 1396570372, 1396570367, 1396570362, 1396570358, 1396570355, 1396570333, 1396570330, 1396570327, 1396570325, 1396570319, 1396570172, 1396570168, 1396570165, 1396570163, 1396570160, 1396570090, 1396570086, 1396570076, 1396570073, 1396570072, 1396570044, 1396570039, 1396570013, 1396570001, 1396569997, 1396569969, 1396569964, 1396569960, 1396569957, 1396569955, 1396569953, 1396569915, 1396569914, 1396569913, 1396569858, 1396569855]} final : False mtd_id 4302 list_pids : [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480] Looping around the photos to save general results len do output : 7 /1396570534.Didn't retrieve data . /1396570499.Didn't retrieve data . /1396570496.Didn't retrieve data . /1396570493.Didn't retrieve data . /1396570490.Didn't retrieve data . /1396570487.Didn't retrieve data . /1396570480.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, '4133704') ('4302', '28987565', '1396570534', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570499', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570496', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570493', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570490', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570487', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570480', None, None, None, None, None, '4133704') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '28987565', '1396570534', '0.06687309664848937', None, None, None, None, '4133704'), ('4302', '28987565', '1396570499', '0.06687309664848937', None, None, None, None, '4133704'), ('4302', '28987565', '1396570496', '0.06687309664848937', None, None, None, None, '4133704'), ('4302', '28987565', '1396570493', '0.06687309664848937', None, None, None, None, '4133704'), ('4302', '28987565', '1396570490', '0.06687309664848937', None, None, None, None, '4133704'), ('4302', '28987565', '1396570487', '0.06687309664848937', None, None, None, None, '4133704'), ('4302', '28987565', '1396570480', '0.06687309664848937', None, None, None, None, '4133704')] time used for this insertion : 0.014735698699951172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07894015312194824 time spend to save output : 0.015105247497558594 total time spend for step 2 : 0.09404540061950684 step3:velours_tree Fri Nov 28 08:32:59 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 : {28987565: [{'kraft': 28987567, 'flou': 28987568, 'plastique': 28987569, 'Carton_brun': 28987570, 'Carton_gris': 28987571, 'cartonnette': 28987572, 'environnement': 28987573, 'mal_croppe': 28987574, 'Teint_Dans_La_Masse': 28987575, 'papier': 28987576, 'autre_refus': 28987577, 'metal': 28987578}]} input_args_next_step : {28987565: ()} output_args : {28987565: [{'kraft': 28987567, 'flou': 28987568, 'plastique': 28987569, 'Carton_brun': 28987570, 'Carton_gris': 28987571, 'cartonnette': 28987572, 'environnement': 28987573, 'mal_croppe': 28987574, 'Teint_Dans_La_Masse': 28987575, 'papier': 28987576, 'autre_refus': 28987577, 'metal': 28987578}]} args : 28987565 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 28987567, 'flou': 28987568, 'plastique': 28987569, 'Carton_brun': 28987570, 'Carton_gris': 28987571, 'cartonnette': 28987572, 'environnement': 28987573, 'mal_croppe': 28987574, 'Teint_Dans_La_Masse': 28987575, 'papier': 28987576, 'autre_refus': 28987577, 'metal': 28987578},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28987565) 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([28987565]) 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.276409387588501 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.276458740234375 step4:send_mail_cod Fri Nov 28 08:32:59 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 : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',)} input_args_next_step : {1396570534: ()} output_args : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',)} args : 1396570534 depend.output_id : 0 input_args_next_step : {1396570534: ('0.06687309664848937',), 1396570499: ()} output_args : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',)} args : 1396570499 depend.output_id : 0 input_args_next_step : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ()} output_args : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',)} args : 1396570496 depend.output_id : 0 input_args_next_step : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ()} output_args : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',)} args : 1396570493 depend.output_id : 0 input_args_next_step : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ()} output_args : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',)} args : 1396570490 depend.output_id : 0 input_args_next_step : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ()} output_args : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',)} args : 1396570487 depend.output_id : 0 input_args_next_step : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ()} output_args : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',)} args : 1396570480 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 : {28987565: [{'kraft': 28987567, 'flou': 28987568, 'plastique': 28987569, 'Carton_brun': 28987570, 'Carton_gris': 28987571, 'cartonnette': 28987572, 'environnement': 28987573, 'mal_croppe': 28987574, 'Teint_Dans_La_Masse': 28987575, 'papier': 28987576, 'autre_refus': 28987577, 'metal': 28987578}]} input_args_next_step : {1396570534: ('0.06687309664848937',), 1396570499: ('0.06687309664848937',), 1396570496: ('0.06687309664848937',), 1396570493: ('0.06687309664848937',), 1396570490: ('0.06687309664848937',), 1396570487: ('0.06687309664848937',), 1396570480: ('0.06687309664848937',), 28987565: ()} output_args : {28987565: [{'kraft': 28987567, 'flou': 28987568, 'plastique': 28987569, 'Carton_brun': 28987570, 'Carton_gris': 28987571, 'cartonnette': 28987572, 'environnement': 28987573, 'mal_croppe': 28987574, 'Teint_Dans_La_Masse': 28987575, 'papier': 28987576, 'autre_refus': 28987577, 'metal': 28987578}]} args : 28987565 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 :8, first value : ('0.06687309664848937',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28987565) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1396570534,1396570499,1396570496,1396570493,1396570490,1396570487,1396570480) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396570480 begin to download photo : 1396570490 begin to download photo : 1396570496 begin to download photo : 1396570534 download finish for photo 1396570534 download finish for photo 1396570490 begin to download photo : 1396570493 download finish for photo 1396570480 begin to download photo : 1396570487 download finish for photo 1396570496 begin to download photo : 1396570499 download finish for photo 1396570493 download finish for photo 1396570487 download finish for photo 1396570499 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 : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P28987565_28-11-2025_08_32_59.pdf 28987567 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987567 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396570474: '1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617557_0.png', 1396570476: '1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617544_0.png', 1396570486: '1764314947_1386951_1396570367_1bc11c0c83c98dc400530c2b93d83c2f_rle_crop_4048617526_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e3297331c38d024eef397813f9285775_69491775.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/90ca144a9bce4b9ed3b29e06e7d2433c_5100115.png change filename to text .imagette289875671764315179/ imagette289875671764315179/1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617557_0.png.png imagette289875671764315179/1764314947_1386951_1396570367_1bc11c0c83c98dc400530c2b93d83c2f_rle_crop_4048617526_0.png.png imagette289875671764315179/1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617544_0.png.png imagette289875681764315179/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/34cae1a3ef89249ea05aa0fba59874ff_70507139.png imagette289875671764315179 28987568 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987568 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289875681764315179 28987569 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987569 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396570393: '1764314846_1381862_1396570001_58531d3386883fdff49ae6230c4f4b41_rle_crop_4048617169_0.png', 1396570561: '1764315087_1392892_1396570431_228c91eb245bd6df0be4cdc154b8f3f1_rle_crop_4048617769_0.png', 1396570553: '1764315068_1392362_1396570429_74d2617e051b575a4c2cc084b1a5494b_rle_crop_4048617698_0.png', 1396570552: '1764315068_1392362_1396570429_74d2617e051b575a4c2cc084b1a5494b_rle_crop_4048617697_0.png', 1396570485: '1764314947_1386951_1396570358_00c4f34ac2a16c6cab4efa59569681af_rle_crop_4048617596_0.png', 1396570484: '1764314947_1386951_1396570358_00c4f34ac2a16c6cab4efa59569681af_rle_crop_4048617598_0.png', 1396570483: '1764314947_1386951_1396570362_885a3065c316c94a10667558cbeca59f_rle_crop_4048617571_0.png', 1396570482: '1764314947_1386951_1396570362_885a3065c316c94a10667558cbeca59f_rle_crop_4048617566_0.png', 1396570472: '1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617548_0.png', 1396570471: '1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617556_0.png', 1396570470: '1764314965_1387290_1396570398_06326abdf7a22980d58d56175125f94e_rle_crop_4048617503_0.png', 1396570468: '1764314965_1387290_1396570398_06326abdf7a22980d58d56175125f94e_rle_crop_4048617515_0.png', 1396570055: '1764314588_1374456_1396569914_e26c05820a2074c8c204e0897550eb2c_rle_crop_4048616238_0.png', 1396570392: '1764314846_1381862_1396570090_36778fa75fbe3ecd41f9df40f9752834_rle_crop_4048617145_0.png', 1396570380: '1764314826_1381507_1396570160_97d563a38b66d2e0de5c6cd1bf039c3f_rle_crop_4048617032_0.png', 1396570379: '1764314826_1381507_1396570165_fb935fd882e413fe13cd17d287962991_rle_crop_4048617003_0.png', 1396570378: '1764314826_1381507_1396570168_519ed62f933fbec81bbb96750ea60753_rle_crop_4048616993_0.png', 1396570324: '1764314726_1377751_1396569953_36a5cebe068c85b43baf5bde6ca14b90_rle_crop_4048616883_0.png', 1396570323: '1764314726_1377751_1396569955_9ea7c6fd4af914b2d2928cc9e44192e5_rle_crop_4048616855_0.png', 1396570238: '1764314705_1377336_1396570086_dc6840851f105b6f00703ce54794cf18_rle_crop_4048616594_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e61fda5fa84a69a83129c87c63102d86_92851897.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e5d00ead97dbb3e9fd17dd6f188a157d_59111930.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0e4d72d6d1fcc0a05cfdc94b51723a36_98746349.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/82143a6f5a647dc2d2860da20c5ee24c_87882129.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/8a1ea45ccb4921ecec598b1309aa438f_35622341.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/47ad29c43d1ad5f7fe8ad7f94829da75_22541334.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/dac0487e7be8e576ec7cfa0239b4e571_45491065.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/192e26dd71d73c5367bd75fcf42a4365_3477239.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/548596ebb43886fad7c3b87eba397060_89780698.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/a0c6da027c205b8e2e7acd22288f997d_8163762.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d99ed5c003a5ac451841a81855e3b2c2_37251010.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/25448aa2293c4c3a77be3a54d4d21bb1_38152033.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/4cad59a592c1a95648b24abb141c6119_50599910.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/362c668507fe97e9181f0fb855a03be0_82550308.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/882f4f5c8c56320c73104f62b23d984a_94256748.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/7b41af5dbaf886ca698432a3a0d0927a_46945722.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/522dfb7c05eb0a5e029ee6d760d8fc47_98346402.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/834c7b3c7a468141698b0e6c5d8d5ea1_15664669.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/af7484ee208710e3a2024072aed8a3d1_53808474.png change filename to text .imagette289875691764315179/ imagette289875691764315179/1764314947_1386951_1396570362_885a3065c316c94a10667558cbeca59f_rle_crop_4048617566_0.png.png imagette289875691764315179/1764314826_1381507_1396570168_519ed62f933fbec81bbb96750ea60753_rle_crop_4048616993_0.png.png imagette289875691764315179/1764314726_1377751_1396569955_9ea7c6fd4af914b2d2928cc9e44192e5_rle_crop_4048616855_0.png.png imagette289875691764315179/1764314705_1377336_1396570086_dc6840851f105b6f00703ce54794cf18_rle_crop_4048616594_0.png.png imagette289875691764315179/1764314947_1386951_1396570362_885a3065c316c94a10667558cbeca59f_rle_crop_4048617571_0.png.png imagette289875691764315179/1764314965_1387290_1396570398_06326abdf7a22980d58d56175125f94e_rle_crop_4048617503_0.png.png imagette289875691764315179/1764314846_1381862_1396570001_58531d3386883fdff49ae6230c4f4b41_rle_crop_4048617169_0.png.png imagette289875691764315179/1764314947_1386951_1396570358_00c4f34ac2a16c6cab4efa59569681af_rle_crop_4048617596_0.png.png imagette289875691764315179/1764314965_1387290_1396570398_06326abdf7a22980d58d56175125f94e_rle_crop_4048617515_0.png.png imagette289875691764315179/1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617548_0.png.png imagette289875691764315179/1764315068_1392362_1396570429_74d2617e051b575a4c2cc084b1a5494b_rle_crop_4048617697_0.png.png imagette289875691764315179/1764314826_1381507_1396570160_97d563a38b66d2e0de5c6cd1bf039c3f_rle_crop_4048617032_0.png.png imagette289875691764315179/1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617556_0.png.png imagette289875691764315179/1764315068_1392362_1396570429_74d2617e051b575a4c2cc084b1a5494b_rle_crop_4048617698_0.png.png imagette289875691764315179/1764314846_1381862_1396570090_36778fa75fbe3ecd41f9df40f9752834_rle_crop_4048617145_0.png.png imagette289875691764315179/1764314947_1386951_1396570358_00c4f34ac2a16c6cab4efa59569681af_rle_crop_4048617598_0.png.png imagette289875691764315179/1764315087_1392892_1396570431_228c91eb245bd6df0be4cdc154b8f3f1_rle_crop_4048617769_0.png.png imagette289875691764315179/1764314826_1381507_1396570165_fb935fd882e413fe13cd17d287962991_rle_crop_4048617003_0.png.png imagette289875691764315179/1764314588_1374456_1396569914_e26c05820a2074c8c204e0897550eb2c_rle_crop_4048616238_0.png.png imagette289875691764315179/1764314726_1377751_1396569953_36a5cebe068c85b43baf5bde6ca14b90_rle_crop_4048616883_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0bebd6c4bbfdb866d602a6e6522ae654_28570389.png imagette289875691764315179 28987572 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987572 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396570221: '1764314705_1377336_1396570086_dc6840851f105b6f00703ce54794cf18_rle_crop_4048616595_0.png', 1396570223: '1764314705_1377336_1396570076_f5130d9acb2ae99f0dc525dcf49d848d_rle_crop_4048616611_0.png', 1396570225: '1764314705_1377336_1396570073_467d15a62d16b9dc0e0215bff4e7d6e8_rle_crop_4048616627_0.png', 1396570227: '1764314705_1377336_1396570072_781111f9b396ba4c37f0d13eb6361b8b_rle_crop_4048616645_0.png', 1396570318: '1764314726_1377751_1396569953_36a5cebe068c85b43baf5bde6ca14b90_rle_crop_4048616879_0.png', 1396570391: '1764314846_1381862_1396569997_ed7ee7043ea9decfa3e37320d87f5702_rle_crop_4048617179_0.png', 1396570458: '1764314965_1387290_1396570400_8d331a3f5c8601ba3ae4358bd279060e_rle_crop_4048617485_0.png', 1396570459: '1764314965_1387290_1396570398_06326abdf7a22980d58d56175125f94e_rle_crop_4048617500_0.png', 1396570475: '1764314947_1386951_1396570367_1bc11c0c83c98dc400530c2b93d83c2f_rle_crop_4048617527_0.png', 1396570477: '1764314947_1386951_1396570358_00c4f34ac2a16c6cab4efa59569681af_rle_crop_4048617583_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/249d72e71193f3199a145f594a587f30_1134245.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ace7610307dd025ce25b9e941d5dbbab_11173156.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/67d9c2494ba29be0082add49e3d38519_22583990.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/00c8c1c37559e6aedfaae896e637bd90_71396050.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/394cdb21ade0917471dfbf3141b49ffa_28183673.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/5e28c28e2e0da9cef9e8c50a31b3d761_61966095.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b09b885912aadbbff55a71f7fcc3ecbd_564937.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/5598b1fa94cb8b19209d1b1fa75ecf61_26491148.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e60d2761c895d50a18c8c9be2d5e9374_36322561.png change filename to text .imagette289875721764315181/ imagette289875721764315181/1764314947_1386951_1396570358_00c4f34ac2a16c6cab4efa59569681af_rle_crop_4048617583_0.png.png imagette289875721764315181/1764314965_1387290_1396570400_8d331a3f5c8601ba3ae4358bd279060e_rle_crop_4048617485_0.png.png imagette289875721764315181/1764314705_1377336_1396570072_781111f9b396ba4c37f0d13eb6361b8b_rle_crop_4048616645_0.png.png imagette289875721764315181/1764314947_1386951_1396570367_1bc11c0c83c98dc400530c2b93d83c2f_rle_crop_4048617527_0.png.png imagette289875721764315181/1764314726_1377751_1396569953_36a5cebe068c85b43baf5bde6ca14b90_rle_crop_4048616879_0.png.png imagette289875721764315181/1764314705_1377336_1396570073_467d15a62d16b9dc0e0215bff4e7d6e8_rle_crop_4048616627_0.png.png imagette289875721764315181/1764314965_1387290_1396570398_06326abdf7a22980d58d56175125f94e_rle_crop_4048617500_0.png.png imagette289875721764315181/1764314705_1377336_1396570086_dc6840851f105b6f00703ce54794cf18_rle_crop_4048616595_0.png.png imagette289875721764315181/1764314705_1377336_1396570076_f5130d9acb2ae99f0dc525dcf49d848d_rle_crop_4048616611_0.png.png imagette289875721764315181/1764314846_1381862_1396569997_ed7ee7043ea9decfa3e37320d87f5702_rle_crop_4048617179_0.png.png imagette289875741764315182/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/078d324864a731e05cbc0d02cdfba3e4_69826086.png imagette289875721764315181 28987574 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987574 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289875741764315182 28987577 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987577 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396570194: '1764314705_1377336_1396570076_f5130d9acb2ae99f0dc525dcf49d848d_rle_crop_4048616612_0.png', 1396570196: '1764314705_1377336_1396570073_467d15a62d16b9dc0e0215bff4e7d6e8_rle_crop_4048616625_0.png', 1396570198: '1764314705_1377336_1396570073_467d15a62d16b9dc0e0215bff4e7d6e8_rle_crop_4048616636_0.png', 1396570388: '1764314846_1381862_1396570001_58531d3386883fdff49ae6230c4f4b41_rle_crop_4048617160_0.png', 1396570465: '1764314947_1386951_1396570362_885a3065c316c94a10667558cbeca59f_rle_crop_4048617563_0.png', 1396570467: '1764314947_1386951_1396570358_00c4f34ac2a16c6cab4efa59569681af_rle_crop_4048617586_0.png', 1396570469: '1764314947_1386951_1396570355_8bd6455db59791bff4a87d1c76256e7f_rle_crop_4048617608_0.png', 1396570546: '1764315068_1392362_1396570429_74d2617e051b575a4c2cc084b1a5494b_rle_crop_4048617700_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/fe33ce3668f699738454717440992138_84696592.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/041eef63706a8e15bc564e5b8b89e7e0_63154530.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/09a5279a5ac72c21f46b9b663f603224_61865872.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b7726486541f8b0a43bc582fcdb1ed00_2389477.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d61a85fa109058df822a5fd3ec89af4c_74631638.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/affff8be0d0774530f771c6a89d2d902_43022038.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b3fc4fb18620180b2703cbae787eed18_84262724.png change filename to text .imagette289875771764315182/ imagette289875771764315182/1764314947_1386951_1396570362_885a3065c316c94a10667558cbeca59f_rle_crop_4048617563_0.png.png imagette289875771764315182/1764315068_1392362_1396570429_74d2617e051b575a4c2cc084b1a5494b_rle_crop_4048617700_0.png.png imagette289875771764315182/1764314705_1377336_1396570073_467d15a62d16b9dc0e0215bff4e7d6e8_rle_crop_4048616636_0.png.png imagette289875771764315182/1764314705_1377336_1396570076_f5130d9acb2ae99f0dc525dcf49d848d_rle_crop_4048616612_0.png.png imagette289875771764315182/1764314846_1381862_1396570001_58531d3386883fdff49ae6230c4f4b41_rle_crop_4048617160_0.png.png imagette289875771764315182/1764314947_1386951_1396570358_00c4f34ac2a16c6cab4efa59569681af_rle_crop_4048617586_0.png.png imagette289875771764315182/1764314705_1377336_1396570073_467d15a62d16b9dc0e0215bff4e7d6e8_rle_crop_4048616625_0.png.png imagette289875771764315182/1764314947_1386951_1396570355_8bd6455db59791bff4a87d1c76256e7f_rle_crop_4048617608_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/a0b5f4054390da81fae807433325b5ee_40613313.png imagette289875771764315182 28987578 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987578 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396570061: '1764314588_1374456_1396569914_e26c05820a2074c8c204e0897550eb2c_rle_crop_4048616233_0.png'} change filename to text .imagette289875781764315182/ imagette289875781764315182/1764314588_1374456_1396569914_e26c05820a2074c8c204e0897550eb2c_rle_crop_4048616233_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/082a0e2c2db1034ca4fe10d6a5431db9_69068661.png imagette289875781764315182 28987570 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396570053: '1764314588_1374456_1396569914_e26c05820a2074c8c204e0897550eb2c_rle_crop_4048616234_0.png', 1396570320: '1764314726_1377751_1396569960_d93d3bc16b216fdbda04243f196afe13_rle_crop_4048616831_0.png', 1396570321: '1764314726_1377751_1396569955_9ea7c6fd4af914b2d2928cc9e44192e5_rle_crop_4048616864_0.png', 1396570460: '1764314965_1387290_1396570400_8d331a3f5c8601ba3ae4358bd279060e_rle_crop_4048617489_0.png', 1396570461: '1764314965_1387290_1396570398_06326abdf7a22980d58d56175125f94e_rle_crop_4048617504_0.png', 1396570462: '1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617550_0.png', 1396570463: '1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617549_0.png', 1396570478: '1764314947_1386951_1396570362_885a3065c316c94a10667558cbeca59f_rle_crop_4048617572_0.png', 1396570479: '1764314947_1386951_1396570358_00c4f34ac2a16c6cab4efa59569681af_rle_crop_4048617593_0.png', 1396570560: '1764315087_1392892_1396570431_228c91eb245bd6df0be4cdc154b8f3f1_rle_crop_4048617768_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/361e076d84d2069c14d161c125e3aadc_94047753.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/952d745759f0c059db6e7bb6e3188238_58529869.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/02fa14a0e50cf3d74893ddd28c0bc54a_6892511.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/48f371ebbac64c099392d0caaf577256_2923581.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/1870c981c29b4d00482523622d4dc29e_61499125.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d9f242455d9811133c4e2a4af447de3d_31819710.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/99af55db6276de32db4480353477fc82_64282840.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/6d9cdcff2aa3024c14b1a1128174d1e8_75622563.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/9c4ad157c17aa5c407884379fab789b2_47677461.png change filename to text .imagette289875701764315182/ imagette289875701764315182/1764314965_1387290_1396570398_06326abdf7a22980d58d56175125f94e_rle_crop_4048617504_0.png.png imagette289875701764315182/1764314947_1386951_1396570362_885a3065c316c94a10667558cbeca59f_rle_crop_4048617572_0.png.png imagette289875701764315182/1764314726_1377751_1396569960_d93d3bc16b216fdbda04243f196afe13_rle_crop_4048616831_0.png.png imagette289875701764315182/1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617549_0.png.png imagette289875701764315182/1764314588_1374456_1396569914_e26c05820a2074c8c204e0897550eb2c_rle_crop_4048616234_0.png.png imagette289875701764315182/1764314965_1387290_1396570400_8d331a3f5c8601ba3ae4358bd279060e_rle_crop_4048617489_0.png.png imagette289875701764315182/1764314726_1377751_1396569955_9ea7c6fd4af914b2d2928cc9e44192e5_rle_crop_4048616864_0.png.png imagette289875701764315182/1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617550_0.png.png imagette289875701764315182/1764314947_1386951_1396570358_00c4f34ac2a16c6cab4efa59569681af_rle_crop_4048617593_0.png.png imagette289875701764315182/1764315087_1392892_1396570431_228c91eb245bd6df0be4cdc154b8f3f1_rle_crop_4048617768_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/1b6de3ecea569d9daf93181d849c8566_92448198.png imagette289875701764315182 28987571 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396570206: '1764314705_1377336_1396570073_467d15a62d16b9dc0e0215bff4e7d6e8_rle_crop_4048616623_0.png', 1396570316: '1764314726_1377751_1396569957_2981b7577f360cf02354aa88375505a5_rle_crop_4048616838_0.png', 1396570317: '1764314726_1377751_1396569953_36a5cebe068c85b43baf5bde6ca14b90_rle_crop_4048616878_0.png', 1396570376: '1764314826_1381507_1396570160_97d563a38b66d2e0de5c6cd1bf039c3f_rle_crop_4048617028_0.png', 1396570389: '1764314846_1381862_1396570001_58531d3386883fdff49ae6230c4f4b41_rle_crop_4048617159_0.png', 1396570454: '1764314965_1387290_1396570398_06326abdf7a22980d58d56175125f94e_rle_crop_4048617506_0.png', 1396570455: '1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617543_0.png', 1396570456: '1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617545_0.png', 1396570548: '1764315068_1392362_1396570427_a901faf7188aab61e0e7edbd858d15c8_rle_crop_4048617716_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/a22bedb0338c965f6e5d2070049aa99d_71528735.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/8a5497a14a0fafce606f364b383b1987_49210122.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/7e98128652f4f183c2343b9542beed13_69181996.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/92856a7bd950a013d58d5c48df15659c_84003043.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/5f8dabdb384756b2f1899b8a05ff7a6a_13165361.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/80da11d78acf8f776e3ab1101d0997da_7325522.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/c36da343d8ca481543ca65c0d7d4564e_41275324.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/64e0eff12f8dd956794f3d7f47d9980a_7380188.png change filename to text .imagette289875711764315183/ imagette289875711764315183/1764314726_1377751_1396569953_36a5cebe068c85b43baf5bde6ca14b90_rle_crop_4048616878_0.png.png imagette289875711764315183/1764314965_1387290_1396570398_06326abdf7a22980d58d56175125f94e_rle_crop_4048617506_0.png.png imagette289875711764315183/1764314726_1377751_1396569957_2981b7577f360cf02354aa88375505a5_rle_crop_4048616838_0.png.png imagette289875711764315183/1764314705_1377336_1396570073_467d15a62d16b9dc0e0215bff4e7d6e8_rle_crop_4048616623_0.png.png imagette289875711764315183/1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617545_0.png.png imagette289875711764315183/1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617543_0.png.png imagette289875711764315183/1764315068_1392362_1396570427_a901faf7188aab61e0e7edbd858d15c8_rle_crop_4048617716_0.png.png imagette289875711764315183/1764314846_1381862_1396570001_58531d3386883fdff49ae6230c4f4b41_rle_crop_4048617159_0.png.png imagette289875711764315183/1764314826_1381507_1396570160_97d563a38b66d2e0de5c6cd1bf039c3f_rle_crop_4048617028_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b6c3c0d59ce57e3728abe4a28549b2f1_47645154.png imagette289875711764315183 28987575 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396570051: '1764314588_1374456_1396569914_e26c05820a2074c8c204e0897550eb2c_rle_crop_4048616235_0.png', 1396570052: '1764314588_1374456_1396569914_e26c05820a2074c8c204e0897550eb2c_rle_crop_4048616240_0.png', 1396570066: '1764314607_1374836_1396569915_9de593a00436a95ea6d3f48e11c32a20_rle_crop_4048616330_0.png', 1396570067: '1764314607_1374836_1396569915_9de593a00436a95ea6d3f48e11c32a20_rle_crop_4048616332_0.png', 1396570180: '1764314705_1377336_1396570086_dc6840851f105b6f00703ce54794cf18_rle_crop_4048616597_0.png', 1396570181: '1764314705_1377336_1396570076_f5130d9acb2ae99f0dc525dcf49d848d_rle_crop_4048616610_0.png', 1396570183: '1764314705_1377336_1396570073_467d15a62d16b9dc0e0215bff4e7d6e8_rle_crop_4048616632_0.png', 1396570313: '1764314726_1377751_1396569964_47c4b4de4f01db575dc06b8b2f1283c2_rle_crop_4048616822_0.png', 1396570314: '1764314726_1377751_1396569955_9ea7c6fd4af914b2d2928cc9e44192e5_rle_crop_4048616867_0.png', 1396570387: '1764314846_1381862_1396570090_36778fa75fbe3ecd41f9df40f9752834_rle_crop_4048617147_0.png', 1396570453: '1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617546_0.png', 1396570464: '1764314947_1386951_1396570355_8bd6455db59791bff4a87d1c76256e7f_rle_crop_4048617613_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/54b19c2665cc99b7086cde85555528fd_3480522.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/72621832b01e00ba6bb64de9073acb6e_21789638.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/9a6c4b1839309daf0f9fbbe69d73a5de_83553502.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/286880b535655e8d2c4771a65493e87e_90291001.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/5e5e7956323913cc9e5c2dc6218e6188_2125767.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/5f546278defd310ab3db30aae8497be2_74397000.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0a3e73d19e72b1dfeb488d4d494fded0_6186277.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/55c6eab15db25a88408238925f906e38_19691620.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/945fed37e6d6ec41c9d31f53c45f8164_82496072.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/bc7c2a2d6cb55c46808522515b82d39a_93840904.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/778d81135b7a45fe1936e339939c3341_67997188.png change filename to text .imagette289875751764315184/ imagette289875751764315184/1764314705_1377336_1396570073_467d15a62d16b9dc0e0215bff4e7d6e8_rle_crop_4048616632_0.png.png imagette289875751764315184/1764314607_1374836_1396569915_9de593a00436a95ea6d3f48e11c32a20_rle_crop_4048616332_0.png.png imagette289875751764315184/1764314846_1381862_1396570090_36778fa75fbe3ecd41f9df40f9752834_rle_crop_4048617147_0.png.png imagette289875751764315184/1764314726_1377751_1396569955_9ea7c6fd4af914b2d2928cc9e44192e5_rle_crop_4048616867_0.png.png imagette289875751764315184/1764314705_1377336_1396570076_f5130d9acb2ae99f0dc525dcf49d848d_rle_crop_4048616610_0.png.png imagette289875751764315184/1764314726_1377751_1396569964_47c4b4de4f01db575dc06b8b2f1283c2_rle_crop_4048616822_0.png.png imagette289875751764315184/1764314607_1374836_1396569915_9de593a00436a95ea6d3f48e11c32a20_rle_crop_4048616330_0.png.png imagette289875751764315184/1764314588_1374456_1396569914_e26c05820a2074c8c204e0897550eb2c_rle_crop_4048616240_0.png.png imagette289875751764315184/1764314588_1374456_1396569914_e26c05820a2074c8c204e0897550eb2c_rle_crop_4048616235_0.png.png imagette289875751764315184/1764314947_1386951_1396570355_8bd6455db59791bff4a87d1c76256e7f_rle_crop_4048617613_0.png.png imagette289875751764315184/1764314965_1387290_1396570396_191f7fb05c74655591f1790d68e44f62_rle_crop_4048617546_0.png.png imagette289875751764315184/1764314705_1377336_1396570086_dc6840851f105b6f00703ce54794cf18_rle_crop_4048616597_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/9eb68c7c11345e047305bac8007e4518_52633881.png imagette289875751764315184 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28987565 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28987579,28987580,28987581,28987582,28987583,28987584,28987585,28987586,28987587,28987588,28987589,28987590?tags=kraft,flou,plastique,Carton_brun,Carton_gris,cartonnette,environnement,mal_croppe,Teint_Dans_La_Masse,papier,autre_refus,metal your option no_mail is active, we will not send the real mail to your client args[1396570534] : ('0.06687309664848937',) no score found for photo 1396570534 We are sending mail with results at report@fotonower.com args[1396570499] : ('0.06687309664848937',) no score found for photo 1396570499 We are sending mail with results at report@fotonower.com args[1396570496] : ('0.06687309664848937',) no score found for photo 1396570496 We are sending mail with results at report@fotonower.com args[1396570493] : ('0.06687309664848937',) no score found for photo 1396570493 We are sending mail with results at report@fotonower.com args[1396570490] : ('0.06687309664848937',) no score found for photo 1396570490 We are sending mail with results at report@fotonower.com args[1396570487] : ('0.06687309664848937',) no score found for photo 1396570487 We are sending mail with results at report@fotonower.com args[1396570480] : ('0.06687309664848937',) no score found for photo 1396570480 We are sending mail with results at report@fotonower.com refus_total : 0.06687309664848937 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987565 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_P28987565_28-11-2025_08_32_59.pdf results_Auto_P28987565_28-11-2025_08_32_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987565_28-11-2025_08_32_59.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','28987565','results_Auto_P28987565_28-11-2025_08_32_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987565_28-11-2025_08_32_59.pdf','pdf','','0.31','0.06687309664848937') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28987565]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480] map_info['map_portfolio_photo'] : {28987565: [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480, 1396570431, 1396570429, 1396570427, 1396570425, 1396570406, 1396570403, 1396570400, 1396570398, 1396570396, 1396570372, 1396570367, 1396570362, 1396570358, 1396570355, 1396570333, 1396570330, 1396570327, 1396570325, 1396570319, 1396570172, 1396570168, 1396570165, 1396570163, 1396570160, 1396570090, 1396570086, 1396570076, 1396570073, 1396570072, 1396570044, 1396570039, 1396570013, 1396570001, 1396569997, 1396569969, 1396569964, 1396569960, 1396569957, 1396569955, 1396569953, 1396569915, 1396569914, 1396569913, 1396569858, 1396569855]} final : False mtd_id 4302 list_pids : [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480] 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, '4133704') ('4302', '28987565', '1396570534', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570499', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570496', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570493', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570490', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570487', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570480', None, None, None, None, None, '4133704') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '28987565', '1396570534', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570499', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570496', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570493', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570490', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570487', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570480', None, None, None, None, None, '4133704')] time used for this insertion : 0.015903949737548828 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.162554740905762 time spend to save output : 0.016139507293701172 total time spend for step 4 : 7.178694248199463 step5:split_time_score Fri Nov 28 08:33:06 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 : ['28987565'] 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 : [('28987565',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28987565) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396570534: {'path': 'temp/1764315179_3964852_1396570534_b2cf1f8b492c947f3481055b3e24383a.jpg', 'extension': 'jpg'}, 1396570490: {'path': 'temp/1764315179_3964852_1396570490_502dd5debc9df560d623c2c968a18383.jpg', 'extension': 'jpg'}, 1396570493: {'path': 'temp/1764315179_3964852_1396570493_571c897f21c6587ce0b4b91397641e04.jpg', 'extension': 'jpg'}, 1396570480: {'path': 'temp/1764315179_3964852_1396570480_127f3b5bac09c4c2455e3daf48b85ea5.jpg', 'extension': 'jpg'}, 1396570487: {'path': 'temp/1764315179_3964852_1396570487_fa42a43c0570bc6b051316b2dbcdb970.jpg', 'extension': 'jpg'}, 1396570496: {'path': 'temp/1764315179_3964852_1396570496_a979efbe447018b1f7b32c3ea3d79936.jpg', 'extension': 'jpg'}, 1396570499: {'path': 'temp/1764315179_3964852_1396570499_c3643f0cbf09b66d5a75d852fa07ccdb.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 = 28987565; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28987565 group by h (('08', 52),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28987565 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 (28987565) 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 (28987565) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28112025 28987565 Nombre de photos uploadées : 52 / 23040 (0%) 28112025 28987565 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 28112025 28987565 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1396569858, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/63af3d13a99445fa13b929213b0c2099.jpg', 'username': None, 'uploaded_at': 1764314407, 'text': 'image_28112025_08_18_55_10138.jpg'}, {'photo_id': 1396569855, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e74364c4e13a98cd0a7ebf87679c1d7d.jpg', 'username': None, 'uploaded_at': 1764314407, 'text': 'image_28112025_08_19_05_10148.jpg'}, {'photo_id': 1396569915, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/9de593a00436a95ea6d3f48e11c32a20.jpg', 'username': None, 'uploaded_at': 1764314467, 'text': 'image_28112025_08_19_34_9133.jpg'}, {'photo_id': 1396569914, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e26c05820a2074c8c204e0897550eb2c.jpg', 'username': None, 'uploaded_at': 1764314467, 'text': 'image_28112025_08_20_35_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024073123931884766 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28987565, '2025-11-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-28' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2658013,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2517538070678711 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= 2658013 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28975051, 'dashboard_result_id': 17836887, '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_P28975051_28-11-2025_06_12_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28975640, 'dashboard_result_id': 17836888, '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_P28975640_28-11-2025_06_12_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28976061, 'dashboard_result_id': 17836889, '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_P28976061_28-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28976505, 'dashboard_result_id': 17836890, '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_P28976505_28-11-2025_06_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28978093, 'dashboard_result_id': 17836891, '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_P28978093_28-11-2025_06_14_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28978470, 'dashboard_result_id': 17836892, '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_P28978470_28-11-2025_06_15_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28978907, 'dashboard_result_id': 17836893, '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_P28978907_28-11-2025_06_15_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28979483, 'dashboard_result_id': 17836894, '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_P28979483_28-11-2025_06_16_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28979969, 'dashboard_result_id': 17836895, '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_P28979969_28-11-2025_06_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28980449, 'dashboard_result_id': 17836896, '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_P28980449_28-11-2025_06_17_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28980831, 'dashboard_result_id': 17836897, '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_P28980831_28-11-2025_06_18_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28981438, 'dashboard_result_id': 17836898, '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_P28981438_28-11-2025_06_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28982151, 'dashboard_result_id': 17836899, '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_P28982151_28-11-2025_06_20_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982163, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28982326, 'dashboard_result_id': 17836900, '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_P28982326_28-11-2025_06_20_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28982340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982351, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28982677, 'dashboard_result_id': 17836901, '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_P28982677_28-11-2025_06_21_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982704, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28983973, 'dashboard_result_id': 17836902, '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_P28983973_28-11-2025_06_21_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28983974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28983975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28983976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28983977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28983978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28983979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28983980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28983981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28983982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28983983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28983984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28983985, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28984352, 'dashboard_result_id': 17836903, '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_P28984352_28-11-2025_06_21_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984380, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28984847, 'dashboard_result_id': 17836904, '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_P28984847_28-11-2025_05_47_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984862, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28985168, 'dashboard_result_id': 17836905, '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_P28985168_28-11-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985183, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28985595, 'dashboard_result_id': 17836906, '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_P28985595_28-11-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985611, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2667121, 'mtr_portfolio_id': 28987565, 'dashboard_result_id': 17836907, '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_P28987565_28-11-2025_08_28_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987578, '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 = 28975051 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': 4133072, 'mtr_portfolio_id': 28975051, 'created_at': datetime.datetime(2025, 11, 28, 6, 12), 'result': '0.041448810976491474', 'result_long': None, 'result_double': None}] Qualite : 0.041448810976491474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975051 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_P28975051_28-11-2025_06_12_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}" where mtr_portfolio_id = 28975051 and dashboard_run_id = 2667121 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`=28975051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836887, 0.041448810976491474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_06_12_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, '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 = 28975640 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': 4133073, 'mtr_portfolio_id': 28975640, 'created_at': datetime.datetime(2025, 11, 28, 6, 12, 30), 'result': '0.028260757334550402', 'result_long': None, 'result_double': None}] Qualite : 0.028260757334550402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_06_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975640 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_P28975640_28-11-2025_06_12_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}" where mtr_portfolio_id = 28975640 and dashboard_run_id = 2667121 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`=28975640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836888, 0.028260757334550402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_06_12_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, '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 = 28976061 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': 4133074, 'mtr_portfolio_id': 28976061, 'created_at': datetime.datetime(2025, 11, 28, 6, 13, 28), 'result': '0.0425580038967795', 'result_long': None, 'result_double': None}] Qualite : 0.0425580038967795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976061 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_P28976061_28-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}" where mtr_portfolio_id = 28976061 and dashboard_run_id = 2667121 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`=28976061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836889, 0.0425580038967795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, '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 = 28976505 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': 4133075, 'mtr_portfolio_id': 28976505, 'created_at': datetime.datetime(2025, 11, 28, 6, 13, 59), 'result': '0.0685509832194652', 'result_long': None, 'result_double': None}] Qualite : 0.0685509832194652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_06_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976505 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_P28976505_28-11-2025_06_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, 'pht': 3726}}" where mtr_portfolio_id = 28976505 and dashboard_run_id = 2667121 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`=28976505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836890, 0.0685509832194652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_06_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, '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 = 28978093 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': 4133076, 'mtr_portfolio_id': 28978093, 'created_at': datetime.datetime(2025, 11, 28, 6, 14, 31), 'result': '0.04924462142012214', 'result_long': None, 'result_double': None}] Qualite : 0.04924462142012214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_06_14_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978093 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_P28978093_28-11-2025_06_14_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, 'pht': 3726}}" where mtr_portfolio_id = 28978093 and dashboard_run_id = 2667121 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`=28978093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836891, 0.04924462142012214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_06_14_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, '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 = 28978470 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': 4133077, 'mtr_portfolio_id': 28978470, 'created_at': datetime.datetime(2025, 11, 28, 6, 15, 30), 'result': '0.04236146457551967', 'result_long': None, 'result_double': None}] Qualite : 0.04236146457551967 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_06_15_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978470 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_P28978470_28-11-2025_06_15_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, 'pht': 3726}}" where mtr_portfolio_id = 28978470 and dashboard_run_id = 2667121 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`=28978470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836892, 0.04236146457551967, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_06_15_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, '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 = 28978907 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': 4133078, 'mtr_portfolio_id': 28978907, 'created_at': datetime.datetime(2025, 11, 28, 6, 15, 56), 'result': '0.0449972590407434', 'result_long': None, 'result_double': None}] Qualite : 0.0449972590407434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_06_15_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978907 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_P28978907_28-11-2025_06_15_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, 'pht': 3726}}" where mtr_portfolio_id = 28978907 and dashboard_run_id = 2667121 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`=28978907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836893, 0.0449972590407434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_06_15_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, '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 = 28979483 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': 4133079, 'mtr_portfolio_id': 28979483, 'created_at': datetime.datetime(2025, 11, 28, 6, 16, 12), 'result': '0.04504699440570224', 'result_long': None, 'result_double': None}] Qualite : 0.04504699440570224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28979483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_06_16_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28979483 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_P28979483_28-11-2025_06_16_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, 'pht': 3726}}" where mtr_portfolio_id = 28979483 and dashboard_run_id = 2667121 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`=28979483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836894, 0.04504699440570224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_06_16_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, '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 = 28979969 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': 4133080, 'mtr_portfolio_id': 28979969, 'created_at': datetime.datetime(2025, 11, 28, 6, 16, 59), 'result': '0.0411389730407871', 'result_long': None, 'result_double': None}] Qualite : 0.0411389730407871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28979969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_06_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28979969 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_P28979969_28-11-2025_06_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, 'pht': 3726}}" where mtr_portfolio_id = 28979969 and dashboard_run_id = 2667121 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`=28979969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836895, 0.0411389730407871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_06_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, '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 = 28980449 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': 4133081, 'mtr_portfolio_id': 28980449, 'created_at': datetime.datetime(2025, 11, 28, 6, 17, 30), 'result': '0.04286148862316855', 'result_long': None, 'result_double': None}] Qualite : 0.04286148862316855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28980449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980449_28-11-2025_06_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28980449 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_P28980449_28-11-2025_06_17_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, 'pht': 3726}}" where mtr_portfolio_id = 28980449 and dashboard_run_id = 2667121 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`=28980449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836896, 0.04286148862316855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980449_28-11-2025_06_17_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, '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 = 28980831 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': 4133082, 'mtr_portfolio_id': 28980831, 'created_at': datetime.datetime(2025, 11, 28, 6, 18), 'result': '0.051254198999725026', 'result_long': None, 'result_double': None}] Qualite : 0.051254198999725026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28980831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980831_28-11-2025_06_18_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28980831 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_P28980831_28-11-2025_06_18_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, 'pht': 3726}}" where mtr_portfolio_id = 28980831 and dashboard_run_id = 2667121 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`=28980831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836897, 0.051254198999725026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980831_28-11-2025_06_18_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, '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 = 28981438 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': 4133083, 'mtr_portfolio_id': 28981438, 'created_at': datetime.datetime(2025, 11, 28, 6, 18, 29), 'result': '0.05951098135541105', 'result_long': None, 'result_double': None}] Qualite : 0.05951098135541105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28981438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28981438 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_P28981438_28-11-2025_06_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, 'pht': 3726}}" where mtr_portfolio_id = 28981438 and dashboard_run_id = 2667121 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`=28981438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836898, 0.05951098135541105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_06_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, '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 = 28982151 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': 4133084, 'mtr_portfolio_id': 28982151, 'created_at': datetime.datetime(2025, 11, 28, 6, 19, 59), 'result': '0.06720476090565872', 'result_long': None, 'result_double': None}] Qualite : 0.06720476090565872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28982151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982151_28-11-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28982151 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_P28982151_28-11-2025_06_20_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982163, 'pht': 3726}}" where mtr_portfolio_id = 28982151 and dashboard_run_id = 2667121 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`=28982151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836899, 0.06720476090565872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982151_28-11-2025_06_20_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982163, '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 = 28982326 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': 4133085, 'mtr_portfolio_id': 28982326, 'created_at': datetime.datetime(2025, 11, 28, 6, 20, 29), 'result': '0.03553578264141378', 'result_long': None, 'result_double': None}] Qualite : 0.03553578264141378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28982326 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982326_28-11-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28982326 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_P28982326_28-11-2025_06_20_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28982340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982351, 'pht': 3726}}" where mtr_portfolio_id = 28982326 and dashboard_run_id = 2667121 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`=28982326 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836900, 0.03553578264141378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982326_28-11-2025_06_20_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28982340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982351, '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 = 28982677 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': 4133086, 'mtr_portfolio_id': 28982677, 'created_at': datetime.datetime(2025, 11, 28, 6, 20, 59), 'result': '0.049379925005906836', 'result_long': None, 'result_double': None}] Qualite : 0.049379925005906836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28982677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982677_28-11-2025_06_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28982677 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_P28982677_28-11-2025_06_21_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982704, 'pht': 3726}}" where mtr_portfolio_id = 28982677 and dashboard_run_id = 2667121 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`=28982677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836901, 0.049379925005906836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982677_28-11-2025_06_21_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982704, '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 = 28983973 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': 4133087, 'mtr_portfolio_id': 28983973, 'created_at': datetime.datetime(2025, 11, 28, 6, 21, 11), 'result': '0.05728450201263826', 'result_long': None, 'result_double': None}] Qualite : 0.05728450201263826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28983973 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28983973_28-11-2025_06_21_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28983973 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_P28983973_28-11-2025_06_21_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28983974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28983975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28983976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28983977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28983978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28983979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28983980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28983981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28983982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28983983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28983984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28983985, 'pht': 3726}}" where mtr_portfolio_id = 28983973 and dashboard_run_id = 2667121 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`=28983973 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836902, 0.05728450201263826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28983973_28-11-2025_06_21_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28983974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28983975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28983976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28983977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28983978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28983979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28983980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28983981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28983982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28983983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28983984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28983985, '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 = 28984352 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': 4133088, 'mtr_portfolio_id': 28984352, 'created_at': datetime.datetime(2025, 11, 28, 6, 21, 30), 'result': '0.048907210698158926', 'result_long': None, 'result_double': None}] Qualite : 0.048907210698158926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28984352 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984352_28-11-2025_06_21_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28984352 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_P28984352_28-11-2025_06_21_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984380, 'pht': 3726}}" where mtr_portfolio_id = 28984352 and dashboard_run_id = 2667121 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`=28984352 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836903, 0.048907210698158926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984352_28-11-2025_06_21_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984380, '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 = 28984847 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': 4133002, 'mtr_portfolio_id': 28984847, 'created_at': datetime.datetime(2025, 11, 28, 5, 47, 30), 'result': '0.041799832911874515', 'result_long': None, 'result_double': None}] Qualite : 0.041799832911874515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28984847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984847_28-11-2025_05_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28984847 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_P28984847_28-11-2025_05_47_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984862, 'pht': 3726}}" where mtr_portfolio_id = 28984847 and dashboard_run_id = 2667121 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`=28984847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836904, 0.041799832911874515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984847_28-11-2025_05_47_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984862, '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 = 28985168 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': 4133176, 'mtr_portfolio_id': 28985168, 'created_at': datetime.datetime(2025, 11, 28, 6, 3, 28), 'result': '0.05643612918517163', 'result_long': None, 'result_double': None}] Qualite : 0.05643612918517163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28985168 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985168_28-11-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28985168 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_P28985168_28-11-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985183, 'pht': 3726}}" where mtr_portfolio_id = 28985168 and dashboard_run_id = 2667121 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`=28985168 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836905, 0.05643612918517163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985168_28-11-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985183, '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 = 28985595 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': 4133255, 'mtr_portfolio_id': 28985595, 'created_at': datetime.datetime(2025, 11, 28, 6, 19, 31), 'result': '0.04188950702097101', 'result_long': None, 'result_double': None}] Qualite : 0.04188950702097101 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28985595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985595_28-11-2025_06_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28985595 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_P28985595_28-11-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985611, 'pht': 3726}}" where mtr_portfolio_id = 28985595 and dashboard_run_id = 2667121 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`=28985595 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836906, 0.04188950702097101, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985595_28-11-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985611, '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 = 28987565 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': 4133704, 'mtr_portfolio_id': 28987565, 'created_at': datetime.datetime(2025, 11, 28, 8, 32, 59), 'result': '0.06687309664848937', 'result_long': None, 'result_double': None}] Qualite : 0.06687309664848937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28987565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987565_28-11-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28987565 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_P28987565_28-11-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987578, 'pht': 3726}}" where mtr_portfolio_id = 28987565 and dashboard_run_id = 2667119 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`=28987565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17836907, 0.06687309664848937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987565_28-11-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987578, '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 (28975051,28975640,28976061,28976505,28978093,28978470,28978907,28979483,28979969,28980449,28980831,28981438,28982151,28982326,28982677,28983973,28984352,28984847,28985168,28985595,28987565) result : ((1396500799,), (1396500876,), (1396500951,), (1396501028,), (1396501825,), (1396501895,), (1396501965,), (1396502025,), (1396502595,), (1396502695,), (1396502783,), (1396502874,), (1396503635,), (1396503685,), (1396504251,), (1396504299,), (1396506218,), (1396506261,), (1396506283,), (1396506995,), (1396506650,), (1396506943,), (1396506969,), (1396507382,), (1396507407,), (1396507434,), (1396507465,), (1396507752,), (1396507766,), (1396507771,), (1396507776,), (1396507780,), (1396507960,), (1396508009,), (1396508055,), (1396508106,), (1396508153,), (1396508624,), (1396508674,), (1396508721,), (1396508781,), (1396509060,), (1396509552,), (1396509595,), (1396509654,), (1396509708,), (1396509755,), (1396509793,), (1396509870,), (1396509895,), (1396509907,), (1396509911,), (1396509950,), (1396509953,), (1396509956,), (1396509959,), (1396509962,), (1396509972,), (1396510041,), (1396510048,), (1396510052,), (1396510212,), (1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,), (1396512851,), (1396512854,), (1396512857,), (1396512860,), (1396512878,), (1396512881,), (1396512883,), (1396512886,), (1396512892,), (1396512897,), (1396512925,), (1396512918,), (1396512921,), (1396512923,), (1396512947,), (1396512972,), (1396512995,), (1396513030,), (1396513055,), (1396513082,), (1396513467,), (1396513539,), (1396513616,), (1396513678,), (1396514499,), (1396514526,), (1396514557,), (1396514588,), (1396514614,), (1396514620,), (1396514629,), (1396514657,), (1396514703,), (1396514746,), (1396514898,), (1396514950,), (1396515016,), (1396515077,), (1396515689,), (1396515767,), (1396515833,), (1396515878,), (1396515921,), (1396515946,), (1396516109,), (1396516158,), (1396516214,), (1396516300,), (1396516469,), (1396516473,), (1396516475,), (1396516476,), (1396516477,), (1396516501,), (1396516508,), (1396516509,), (1396516511,), (1396516528,), (1396516536,), (1396516540,), (1396516543,), (1396516547,), (1396516564,), (1396516567,), (1396516571,), (1396516575,), (1396516577,), (1396516590,), (1396516637,), (1396516681,), (1396517150,), (1396517204,), (1396517247,), (1396517288,), (1396517460,), (1396518172,), (1396518210,), (1396518212,), (1396518244,), (1396518264,), (1396518268,), (1396518391,), (1396518425,), (1396518434,), (1396518458,), (1396518489,), (1396518603,), (1396518668,), (1396518701,), (1396519242,), (1396528127,), (1396528128,), (1396528141,), (1396528145,), (1396528148,), (1396528151,), (1396528165,), (1396528169,), (1396528172,), (1396528175,), (1396528234,), (1396528237,), (1396528239,), (1396528243,), (1396528247,), (1396528251,), (1396528417,), (1396528447,), (1396528473,), (1396528621,), (1396528624,), (1396528628,), (1396528631,), (1396528633,), (1396528635,), (1396528649,), (1396528652,), (1396528654,), (1396528656,), (1396528657,), (1396528699,), (1396528705,), (1396528713,), (1396528714,), (1396528857,), (1396528888,), (1396528923,), (1396528951,), (1396528976,), (1396529152,), (1396529180,), (1396529208,), (1396529235,), (1396529254,), (1396529282,), (1396529396,), (1396529399,), (1396529409,), (1396529414,), (1396529419,), (1396529479,), (1396529480,), (1396529482,), (1396529535,), (1396529537,), (1396529539,), (1396529541,), (1396529545,), (1396529562,), (1396529564,), (1396529566,), (1396529568,), (1396529586,), (1396529588,), (1396529592,), (1396529596,), (1396529599,), (1396529603,), (1396529627,), (1396529618,), (1396529621,), (1396529624,), (1396529652,), (1396529656,), (1396529659,), (1396529662,), (1396529676,), (1396529679,), (1396529682,), (1396529686,), (1396529690,), (1396529694,), (1396529717,), (1396529721,), (1396529724,), (1396529726,), (1396529730,), (1396529751,), (1396529761,), (1396529770,), (1396529778,), (1396529801,), (1396529805,), (1396529809,), (1396529812,), (1396529815,), (1396529820,), (1396529844,), (1396529846,), (1396529848,), (1396529883,), (1396529886,), (1396529890,), (1396529895,), (1396529899,), (1396529902,), (1396529929,), (1396529945,), (1396529981,), (1396530011,), (1396530045,), (1396530077,), (1396530285,), (1396530287,), (1396530290,), (1396530294,), (1396530320,), (1396530322,), (1396530323,), (1396530324,), (1396530327,), (1396530330,), (1396530347,), (1396530350,), (1396530353,), (1396530388,), (1396530390,), (1396530392,), (1396530394,), (1396530396,), (1396530399,), (1396530705,), (1396530708,), (1396530711,), (1396530765,), (1396530760,), (1396530763,), (1396530796,), (1396530799,), (1396530802,), (1396530806,), (1396530810,), (1396530813,), (1396530829,), (1396530832,), (1396530835,), (1396530837,), (1396530839,), (1396530878,), (1396530880,), (1396530882,), (1396530885,), (1396530888,), (1396530892,), (1396530909,), (1396530912,), (1396530915,), (1396530918,), (1396531076,), (1396531106,), (1396531108,), (1396531110,), (1396531111,), (1396531128,), (1396531472,), (1396531504,), (1396531551,), (1396531612,), (1396531786,), (1396532382,), (1396532442,), (1396532502,), (1396532563,), (1396532628,), (1396532718,), (1396533069,), (1396533073,), (1396533077,), (1396533090,), (1396533125,), (1396533383,), (1396533385,), (1396533387,), (1396533413,), (1396533449,), (1396533494,), (1396534153,), (1396534222,), (1396534290,), (1396534357,), (1396534797,), (1396534800,), (1396534807,), (1396534840,), (1396534856,), (1396535151,), (1396535183,), (1396535215,), (1396535220,), (1396535222,), (1396535531,), (1396535567,), (1396535600,), (1396535639,), (1396535676,), (1396536024,), (1396536045,), (1396536047,), (1396536050,), (1396536054,), (1396536407,), (1396536322,), (1396536354,), (1396536388,), (1396536404,), (1396536543,), (1396536551,), (1396536584,), (1396536634,), (1396536670,), (1396537002,), (1396537129,), (1396537165,), (1396537203,), (1396537567,), (1396537595,), (1396537597,), (1396537599,), (1396537804,), (1396537819,), (1396537821,), (1396537844,), (1396537880,), (1396537883,), (1396537929,), (1396537932,), (1396537935,), (1396537938,), (1396537941,), (1396537944,), (1396537962,), (1396537964,), (1396537969,), (1396537975,), (1396538001,), (1396538004,), (1396538007,), (1396538010,), (1396538013,), (1396538015,), (1396538024,), (1396538028,), (1396538035,), (1396538196,), (1396538203,), (1396538207,), (1396538257,), (1396538287,), (1396538288,), (1396538362,), (1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,), (1396538955,), (1396538959,), (1396538961,), (1396538964,), (1396538967,), (1396538971,), (1396539020,), (1396539012,), (1396539014,), (1396539017,), (1396539054,), (1396539058,), (1396539070,), (1396539076,), (1396539096,), (1396539099,), (1396539113,), (1396539116,), (1396539119,), (1396539122,), (1396539126,), (1396539130,), (1396539148,), (1396539149,), (1396539150,), (1396539151,), (1396539195,), (1396539197,), (1396539199,), (1396539202,), (1396539206,), (1396539209,), (1396539224,), (1396539227,), (1396539271,), (1396539275,), (1396539278,), (1396539281,), (1396539284,), (1396539304,), (1396539305,), (1396539306,), (1396539308,), (1396539312,), (1396539316,), (1396539348,), (1396539358,), (1396539362,), (1396539366,), (1396539390,), (1396539391,), (1396539393,), (1396539395,), (1396539398,), (1396539401,), (1396539417,), (1396539420,), (1396539423,), (1396539461,), (1396539463,), (1396539465,), (1396539467,), (1396539472,), (1396539475,), (1396539500,), (1396539509,), (1396539517,), (1396539520,), (1396539523,), (1396539526,), (1396539667,), (1396539703,), (1396539738,), (1396539775,), (1396539929,), (1396539930,), (1396539962,), (1396539963,), (1396539995,), (1396540001,), (1396540030,), (1396540034,), (1396540393,), (1396540310,), (1396540357,), (1396541002,), (1396541059,), (1396541096,), (1396541126,), (1396541134,), (1396541440,), (1396541466,), (1396541488,), (1396541490,), (1396541510,), (1396541537,), (1396541564,), (1396541566,), (1396541568,), (1396541594,), (1396541597,), (1396541599,), (1396541601,), (1396541604,), (1396541607,), (1396541637,), (1396541640,), (1396541642,), (1396541644,), (1396541647,), (1396541668,), (1396541670,), (1396541672,), (1396541675,), (1396541678,), (1396541731,), (1396541735,), (1396541739,), (1396541743,), (1396541747,), (1396541776,), (1396541777,), (1396541911,), (1396541919,), (1396541921,), (1396541923,), (1396541926,), (1396541929,), (1396541946,), (1396541949,), (1396541952,), (1396541959,), (1396541998,), (1396542010,), (1396542017,), (1396542023,), (1396542026,), (1396542028,), (1396542047,), (1396542050,), (1396542053,), (1396542057,), (1396542061,), (1396542065,), (1396542096,), (1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,), (1396542541,), (1396542544,), (1396542547,), (1396542551,), (1396542555,), (1396542559,), (1396542578,), (1396542580,), (1396542581,), (1396542582,), (1396542620,), (1396542629,), (1396542631,), (1396542636,), (1396542639,), (1396543743,), (1396542732,), (1396543741,), (1396543775,), (1396543780,), (1396543783,), (1396543787,), (1396543791,), (1396543807,), (1396543810,), (1396543837,), (1396543839,), (1396543841,), (1396543843,), (1396543846,), (1396543905,), (1396543947,), (1396543952,), (1396543958,), (1396543983,), (1396543986,), (1396543989,), (1396543994,), (1396544000,), (1396544006,), (1396544025,), (1396544026,), (1396544027,), (1396544028,), (1396544061,), (1396544054,), (1396544055,), (1396544056,), (1396544058,), (1396544077,), (1396544081,), (1396544085,), (1396544089,), (1396544093,), (1396544168,), (1396544170,), (1396544171,), (1396544172,), (1396544175,), (1396544178,), (1396544193,), (1396544196,), (1396544199,), (1396544208,), (1396544215,), (1396544241,), (1396544243,), (1396544245,), (1396544246,), (1396544247,), (1396544250,), (1396544268,), (1396544271,), (1396544275,), (1396544280,), (1396544284,), (1396544314,), (1396544316,), (1396544317,), (1396544319,), (1396544323,), (1396544383,), (1396544386,), (1396544389,), (1396544393,), (1396544397,), (1396544401,), (1396544430,), (1396544431,), (1396544432,), (1396544434,), (1396544453,), (1396544455,), (1396544457,), (1396544460,), (1396544464,), (1396544466,), (1396544482,), (1396544483,), (1396544484,), (1396544486,), (1396544488,), (1396544504,), (1396544507,), (1396544510,), (1396544514,), (1396544541,), (1396544552,), (1396544556,), (1396544560,), (1396544563,), (1396544566,), (1396544590,), (1396544593,), (1396544595,), (1396544597,), (1396544600,), (1396544604,), (1396545260,), (1396544978,), (1396545053,), (1396545126,), (1396545191,), (1396546286,), (1396546385,), (1396546478,), (1396546544,), (1396546613,), (1396547077,), (1396547101,), (1396547134,), (1396547169,), (1396547204,), (1396547659,), (1396547721,), (1396547802,), (1396547868,), (1396547931,), (1396548321,), (1396548330,), (1396548361,), (1396548396,), (1396548402,), (1396548473,), (1396548491,), (1396548494,), (1396548496,), (1396548546,), (1396548548,), (1396548550,), (1396548553,), (1396548557,), (1396548560,), (1396548748,), (1396548754,), (1396548759,), (1396548762,), (1396548766,), (1396548768,), (1396548786,), (1396548787,), (1396548788,), (1396548790,), (1396548793,), (1396548797,), (1396548826,), (1396548829,), (1396548832,), (1396548835,), (1396548859,), (1396548860,), (1396549325,), (1396551958,), (1396551962,), (1396552216,), (1396552223,), (1396552358,), (1396552361,), (1396552363,), (1396552389,), (1396552391,), (1396552428,), (1396552430,), (1396552433,), (1396552437,), (1396552464,), (1396552466,), (1396552470,), (1396552475,), (1396552479,), (1396552508,), (1396552512,), (1396552516,), (1396552520,), (1396552552,), (1396552554,), (1396552556,), (1396552559,), (1396552562,), (1396552604,), (1396552605,), (1396552606,), (1396552631,), (1396552633,), (1396552636,), (1396552640,), (1396552644,), (1396552651,), (1396552667,), (1396552678,), (1396552686,), (1396552708,), (1396552710,), (1396552712,), (1396552715,), (1396552719,), (1396552723,), (1396552739,), (1396552741,), (1396552743,), (1396552746,), (1396552785,), (1396552787,), (1396552789,), (1396552792,), (1396552796,), (1396552801,), (1396552828,), (1396552820,), (1396552823,), (1396552826,), (1396552866,), (1396552867,), (1396552868,), (1396552870,), (1396552895,), (1396552898,), (1396552901,), (1396552905,), (1396552915,), (1396552925,), (1396552941,), (1396552942,), (1396552945,), (1396552947,), (1396552966,), (1396552967,), (1396552969,), (1396552972,), (1396552976,), (1396552979,), (1396553027,), (1396553030,), (1396553033,), (1396553036,), (1396553039,), (1396553091,), (1396553100,), (1396553105,), (1396553108,), (1396553112,), (1396553115,), (1396553186,), (1396553189,), (1396553194,), (1396553199,), (1396553259,), (1396553263,), (1396553301,), (1396553302,), (1396553303,), (1396553305,), (1396553326,), (1396553329,), (1396553333,), (1396553336,), (1396553343,), (1396553354,), (1396553371,), (1396553373,), (1396553374,), (1396553376,), (1396553380,), (1396553405,), (1396553408,), (1396553412,), (1396553416,), (1396553420,), (1396553441,), (1396553442,), (1396553444,), (1396553447,), (1396553451,), (1396553495,), (1396553504,), (1396553508,), (1396553511,), (1396553515,), (1396553517,), (1396553568,), (1396553538,), (1396553539,), (1396553565,), (1396553599,), (1396553604,), (1396553615,), (1396553625,), (1396553648,), (1396553651,), (1396553666,), (1396553668,), (1396553670,), (1396553674,), (1396553678,), (1396553701,), (1396553702,), (1396553706,), (1396553708,), (1396553712,), (1396553715,), (1396553731,), (1396553733,), (1396553735,), (1396553737,), (1396553741,), (1396553779,), (1396553781,), (1396553783,), (1396553786,), (1396553789,), (1396553792,), (1396553833,), (1396553834,), (1396553835,), (1396553837,), (1396553859,), (1396553861,), (1396553864,), (1396553868,), (1396553872,), (1396553888,), (1396553891,), (1396553893,), (1396553897,), (1396553901,), (1396553904,), (1396553942,), (1396553944,), (1396553946,), (1396553949,), (1396553953,), (1396553971,), (1396553973,), (1396553975,), (1396553978,), (1396554019,), (1396554022,), (1396554024,), (1396554027,), (1396554031,), (1396554035,), (1396554055,), (1396554056,), (1396554057,), (1396554086,), (1396554089,), (1396554092,), (1396554096,), (1396554115,), (1396554117,), (1396554119,), (1396554122,), (1396554126,), (1396554159,), (1396554155,), (1396554157,), (1396554183,), (1396554184,), (1396554186,), (1396554202,), (1396554207,), (1396554271,), (1396554274,), (1396554277,), (1396554281,), (1396554285,), (1396554642,), (1396554676,), (1396554706,), (1396554732,), (1396554909,), (1396554912,), (1396554915,), (1396554926,), (1396554969,), (1396554991,), (1396555067,), (1396555068,), (1396555070,), (1396555073,), (1396555115,), (1396555117,), (1396555119,), (1396555122,), (1396555126,), (1396555130,), (1396555147,), (1396555149,), (1396555151,), (1396555191,), (1396555193,), (1396555195,), (1396555198,), (1396555200,), (1396555202,), (1396555220,), (1396555222,), (1396555228,), (1396555234,), (1396555255,), (1396555258,), (1396555261,), (1396555265,), (1396555269,), (1396555273,), (1396555288,), (1396555292,), (1396555294,), (1396555298,), (1396555302,), (1396555306,), (1396555331,), (1396555333,), (1396555335,), (1396555338,), (1396555342,), (1396555359,), (1396555364,), (1396555396,), (1396555432,), (1396555464,), (1396556836,), (1396556426,), (1396556538,), (1396556644,), (1396556737,), (1396557471,), (1396557489,), (1396557506,), (1396557521,), (1396557536,), (1396558110,), (1396558162,), (1396558193,), (1396558258,), (1396558315,), (1396558548,), (1396558550,), (1396558552,), (1396558578,), (1396558666,), (1396558667,), (1396558669,), (1396558672,), (1396558676,), (1396558680,), (1396558712,), (1396558720,), (1396558722,), (1396558724,), (1396558746,), (1396558752,), (1396558755,), (1396558759,), (1396558762,), (1396558765,), (1396558774,), (1396558776,), (1396558778,), (1396558781,), (1396558808,), (1396558810,), (1396558813,), (1396558822,), (1396558830,), (1396558850,), (1396558852,), (1396558854,), (1396558857,), (1396558861,), (1396558865,), (1396558883,), (1396558884,), (1396558886,), (1396558889,), (1396558893,), (1396558925,), (1396558931,), (1396558932,), (1396558934,), (1396558937,), (1396558940,), (1396558955,), (1396558958,), (1396558961,), (1396558964,), (1396559010,), (1396559012,), (1396559206,), (1396559257,), (1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28112025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28987565]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480] map_info['map_portfolio_photo'] : {28987565: [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480, 1396570431, 1396570429, 1396570427, 1396570425, 1396570406, 1396570403, 1396570400, 1396570398, 1396570396, 1396570372, 1396570367, 1396570362, 1396570358, 1396570355, 1396570333, 1396570330, 1396570327, 1396570325, 1396570319, 1396570172, 1396570168, 1396570165, 1396570163, 1396570160, 1396570090, 1396570086, 1396570076, 1396570073, 1396570072, 1396570044, 1396570039, 1396570013, 1396570001, 1396569997, 1396569969, 1396569964, 1396569960, 1396569957, 1396569955, 1396569953, 1396569915, 1396569914, 1396569913, 1396569858, 1396569855]} final : True mtd_id 4302 list_pids : [1396570534, 1396570499, 1396570496, 1396570493, 1396570490, 1396570487, 1396570480] Looping around the photos to save general results len do output : 1 /28987565Didn'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, '4133704') ('4302', '28987565', '1396570534', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570499', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570496', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570493', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570490', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570487', None, None, None, None, None, '4133704') ('4302', None, None, None, None, None, None, None, '4133704') ('4302', '28987565', '1396570480', None, None, None, None, None, '4133704') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '28987565', 'None', None, None, None, None, '4133704'), ('4302', '28987565', '1396570534', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570499', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570496', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570493', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570490', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570487', None, None, None, None, None, '4133704'), ('4302', '28987565', '1396570480', None, None, None, None, None, '4133704')] time used for this insertion : 0.013596773147583008 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9962666034698486 time spend to save output : 0.013740301132202148 total time spend for step 5 : 2.010006904602051 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 (4133704) 2.05user 2.46system 0:12.58elapsed 35%CPU (0avgtext+0avgdata 159892maxresident)k 136inputs+17504outputs (5major+64210minor)pagefaults 0swaps