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 : 1763784 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 (4267259) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4267259) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677291 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4267259'] with mtr_portfolio_ids : ['29677291'] and first list_photo_ids : [] new path : /proc/1763784/ Name: python3 Umask: 0002 State: R (running) Tgid: 1763784 Ngid: 0 Pid: 1763784 PPid: 1763783 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1763784 NSpid: 1763784 NSpgid: 1762255 NSsid: 1762255 VmPeak: 1113360 kB VmSize: 1113360 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104812 kB VmRSS: 104812 kB RssAnon: 66312 kB RssFile: 38500 kB RssShmem: 0 kB VmData: 872088 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1763784', 'Ngid': '0', 'Pid': '1763784', 'PPid': '1763783', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1763784', 'NSpid': '1763784', 'NSpgid': '1762255', 'NSsid': '1762255', 'VmPeak': '1113360 kB', 'VmSize': '1113360 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104812 kB', 'VmRSS': '104812 kB', 'RssAnon': '66312 kB', 'RssFile': '38500 kB', 'RssShmem': '0 kB', 'VmData': '872088 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '1763784', '1113360', '0', '1113360', '872088', '104812', b'', 'marlene', '4267259') 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 (29677291) 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 (4267259 ) ) 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 (29677291) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400792064, 'portfolio_id': 29677291}, {'photo_id': 1400792061, 'portfolio_id': 29677291}, {'photo_id': 1400792058, 'portfolio_id': 29677291}, {'photo_id': 1400792044, 'portfolio_id': 29677291}, {'photo_id': 1400792042, 'portfolio_id': 29677291}, {'photo_id': 1400792039, 'portfolio_id': 29677291}, {'photo_id': 1400792037, 'portfolio_id': 29677291}, {'photo_id': 1400792035, 'portfolio_id': 29677291}, {'photo_id': 1400792032, 'portfolio_id': 29677291}, {'photo_id': 1400791976, 'portfolio_id': 29677291}, {'photo_id': 1400791958, 'portfolio_id': 29677291}, {'photo_id': 1400791946, 'portfolio_id': 29677291}, {'photo_id': 1400791939, 'portfolio_id': 29677291}, {'photo_id': 1400791918, 'portfolio_id': 29677291}, {'photo_id': 1400791650, 'portfolio_id': 29677291}, {'photo_id': 1400791611, 'portfolio_id': 29677291}, {'photo_id': 1400791566, 'portfolio_id': 29677291}, {'photo_id': 1400791281, 'portfolio_id': 29677291}, {'photo_id': 1400791259, 'portfolio_id': 29677291}, {'photo_id': 1400791257, 'portfolio_id': 29677291}, {'photo_id': 1400791246, 'portfolio_id': 29677291}, {'photo_id': 1400791021, 'portfolio_id': 29677291}, {'photo_id': 1400790406, 'portfolio_id': 29677291}, {'photo_id': 1400789884, 'portfolio_id': 29677291}, {'photo_id': 1400789294, 'portfolio_id': 29677291}, {'photo_id': 1400789252, 'portfolio_id': 29677291}, {'photo_id': 1400789215, 'portfolio_id': 29677291}, {'photo_id': 1400789177, 'portfolio_id': 29677291}, {'photo_id': 1400789143, 'portfolio_id': 29677291}, {'photo_id': 1400787926, 'portfolio_id': 29677291}, {'photo_id': 1400787824, 'portfolio_id': 29677291}, {'photo_id': 1400787719, 'portfolio_id': 29677291}, {'photo_id': 1400787072, 'portfolio_id': 29677291}, {'photo_id': 1400787027, 'portfolio_id': 29677291}, {'photo_id': 1400786963, 'portfolio_id': 29677291}, {'photo_id': 1400786890, 'portfolio_id': 29677291}, {'photo_id': 1400786825, 'portfolio_id': 29677291}, {'photo_id': 1400786749, 'portfolio_id': 29677291}, {'photo_id': 1400786544, 'portfolio_id': 29677291}, {'photo_id': 1400786505, 'portfolio_id': 29677291}, {'photo_id': 1400786470, 'portfolio_id': 29677291}, {'photo_id': 1400786434, 'portfolio_id': 29677291}, {'photo_id': 1400786114, 'portfolio_id': 29677291}, {'photo_id': 1400786079, 'portfolio_id': 29677291}, {'photo_id': 1400786038, 'portfolio_id': 29677291}, {'photo_id': 1400786001, 'portfolio_id': 29677291}, {'photo_id': 1400785994, 'portfolio_id': 29677291}] map_portfolio_id_photo_id: {29677291: [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032, 1400791976, 1400791958, 1400791946, 1400791939, 1400791918, 1400791650, 1400791611, 1400791566, 1400791281, 1400791259, 1400791257, 1400791246, 1400791021, 1400790406, 1400789884, 1400789294, 1400789252, 1400789215, 1400789177, 1400789143, 1400787926, 1400787824, 1400787719, 1400787072, 1400787027, 1400786963, 1400786890, 1400786825, 1400786749, 1400786544, 1400786505, 1400786470, 1400786434, 1400786114, 1400786079, 1400786038, 1400786001, 1400785994]} ##### 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.018143177032470703 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Dec 24 06:14: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29677291) 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 : 29677291 get user id for portfolio 29677291 get sub ptf for main ptf 29677291, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_brun', 'kraft', 'plastique', 'papier', 'cartonnette', 'metal', 'environnement', 'mal_croppe', 'Carton_gris', 'flou', 'autre_refus'] 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`=29677291 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','kraft','plastique','papier','cartonnette','metal','environnement','mal_croppe','Carton_gris','flou','autre_refus')) 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`=29677291 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','kraft','plastique','papier','cartonnette','metal','environnement','mal_croppe','Carton_gris','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29677291, 'sub_port_id': 29677295, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270523, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'cartonnette': {'main_port_id': 29677291, 'sub_port_id': 29677296, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270524, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'Carton_brun': {'main_port_id': 29677291, 'sub_port_id': 29677297, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270525, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'environnement': {'main_port_id': 29677291, 'sub_port_id': 29677298, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270526, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'kraft': {'main_port_id': 29677291, 'sub_port_id': 29677299, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270527, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'autre_refus': {'main_port_id': 29677291, 'sub_port_id': 29677300, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270528, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'plastique': {'main_port_id': 29677291, 'sub_port_id': 29677301, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270529, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'papier': {'main_port_id': 29677291, 'sub_port_id': 29677302, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270530, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'metal': {'main_port_id': 29677291, 'sub_port_id': 29677303, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270531, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'mal_croppe': {'main_port_id': 29677291, 'sub_port_id': 29677304, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270532, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 29677291, 'sub_port_id': 29677305, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270533, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}, 'flou': {'main_port_id': 29677291, 'sub_port_id': 29677306, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270534, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677295 , 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=29677291 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 (29677295) result : ((1400791211,), (1400791214,), (1400791607,), (1400791609,), (1400791612,), (1400792094,), (1400792095,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677296 , 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=29677291 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 (29677296) result : ((1400789017,), (1400789020,), (1400791227,), (1400791229,), (1400791307,), (1400791627,), (1400791629,), (1400791631,), (1400791633,), (1400792076,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677297 , 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=29677291 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 (29677297) result : ((1400789038,), (1400791309,), (1400791645,), (1400792078,), (1400792079,), (1400792096,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677298 , 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=29677291 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 (29677298) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677299 , 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=29677291 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 (29677299) result : ((1400791240,), (1400791242,), (1400792080,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677300 , 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=29677291 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 (29677300) result : ((1400791594,), (1400791596,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677301 , 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=29677291 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 (29677301) result : ((1400789056,), (1400791659,), (1400791661,), (1400792023,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677302 , 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=29677291 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 (29677302) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677303 , 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=29677291 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 (29677303) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677304 , 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=29677291 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 (29677304) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677305 , 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=29677291 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 (29677305) result : ((1400788990,), (1400788993,), (1400788996,), (1400791189,), (1400791191,), (1400791193,), (1400791195,), (1400791575,), (1400791577,), (1400791579,), (1400791581,), (1400791583,), (1400792022,), (1400792074,), (1400792092,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29677306 , 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=29677291 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 (29677306) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29677291) result : ((1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29677291 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','kraft','plastique','papier','cartonnette','metal','environnement','mal_croppe','Carton_gris','flou','autre_refus')) 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`=29677291 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','kraft','plastique','papier','cartonnette','metal','environnement','mal_croppe','Carton_gris','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29677291, 'sub_port_id': 29677307, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270535, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'cartonnette': {'main_port_id': 29677291, 'sub_port_id': 29677308, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270536, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'Carton_brun': {'main_port_id': 29677291, 'sub_port_id': 29677309, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270537, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'environnement': {'main_port_id': 29677291, 'sub_port_id': 29677310, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270538, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'kraft': {'main_port_id': 29677291, 'sub_port_id': 29677311, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270539, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'autre_refus': {'main_port_id': 29677291, 'sub_port_id': 29677312, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270540, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'plastique': {'main_port_id': 29677291, 'sub_port_id': 29677313, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270541, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'papier': {'main_port_id': 29677291, 'sub_port_id': 29677314, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270542, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'metal': {'main_port_id': 29677291, 'sub_port_id': 29677315, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270543, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'mal_croppe': {'main_port_id': 29677291, 'sub_port_id': 29677316, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270544, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29677291, 'sub_port_id': 29677317, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270545, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 2, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}, 'flou': {'main_port_id': 29677291, 'sub_port_id': 29677318, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20270546, 'last_updated_at': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 6, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 6, 2, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677307,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677295 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677308,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677296 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677309,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677297 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677310,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677298 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677311,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677299 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677312,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677300 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677313,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677301 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677302 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29677318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29677306 lien utilise dans velours : https://marlene.fotonower.com/velours/29677307,29677308,29677309,29677310,29677311,29677312,29677313,29677314,29677315,29677316,29677317,29677318?tags=Carton_gris,cartonnette,Carton_brun,environnement,kraft,autre_refus,plastique,papier,metal,mal_croppe,Teint_Dans_La_Masse,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29677291]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032] map_info['map_portfolio_photo'] : {29677291: [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032, 1400791976, 1400791958, 1400791946, 1400791939, 1400791918, 1400791650, 1400791611, 1400791566, 1400791281, 1400791259, 1400791257, 1400791246, 1400791021, 1400790406, 1400789884, 1400789294, 1400789252, 1400789215, 1400789177, 1400789143, 1400787926, 1400787824, 1400787719, 1400787072, 1400787027, 1400786963, 1400786890, 1400786825, 1400786749, 1400786544, 1400786505, 1400786470, 1400786434, 1400786114, 1400786079, 1400786038, 1400786001, 1400785994]} final : False mtd_id 4302 list_pids : [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032] Looping around the photos to save general results len do output : 1 /29677291. 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, '4267259') ('4302', '29677291', '1400792064', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792061', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792058', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792044', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792042', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792039', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792037', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792035', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792032', None, None, None, None, None, '4267259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '29677291', "{'Carton_gris': 29677295, 'cartonnette': 29677296, 'Carton_brun': 29677297, 'environnement': 29677298, 'kraft': 29677299, 'autre_refus': 29677300, 'plastique': 29677301, 'papier': 29677302, 'metal': 29677303, 'mal_croppe': 29677304, 'Teint_Dans_La_Masse': 29677305, 'flou': 29677306}", None, None, None, None, '4267259'), ('4302', '29677291', '1400792064', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792061', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792058', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792044', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792042', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792039', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792037', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792035', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792032', None, None, None, None, None, '4267259')] time used for this insertion : 0.014837503433227539 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8284623622894287 time spend to save output : 0.015083789825439453 total time spend for step 1 : 1.8435461521148682 step2:final Wed Dec 24 06:15:01 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 (29677291) 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 29677291 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400786114,1400786079,1400786038,1400786001,1400785994,1400786544,1400786505,1400786470,1400786434,1400787072,1400787027,1400786963,1400786890,1400786825,1400786749,1400787926,1400789294,1400787824,1400789252,1400787719,1400789215,1400789177,1400789143,1400789884,1400790406,1400791021,1400791281,1400791259,1400791257,1400791246,1400791650,1400791611,1400791566,1400791976,1400791958,1400791946,1400791939,1400791918,1400792044,1400792042,1400792039,1400792037,1400792035,1400792032,1400792064,1400792061,1400792058); 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([29677291]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} new output for save of step final : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032] map_info['map_portfolio_photo'] : {29677291: [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032, 1400791976, 1400791958, 1400791946, 1400791939, 1400791918, 1400791650, 1400791611, 1400791566, 1400791281, 1400791259, 1400791257, 1400791246, 1400791021, 1400790406, 1400789884, 1400789294, 1400789252, 1400789215, 1400789177, 1400789143, 1400787926, 1400787824, 1400787719, 1400787072, 1400787027, 1400786963, 1400786890, 1400786825, 1400786749, 1400786544, 1400786505, 1400786470, 1400786434, 1400786114, 1400786079, 1400786038, 1400786001, 1400785994]} final : False mtd_id 4302 list_pids : [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032] Looping around the photos to save general results len do output : 9 /1400792064.Didn't retrieve data . /1400792061.Didn't retrieve data . /1400792058.Didn't retrieve data . /1400792044.Didn't retrieve data . /1400792042.Didn't retrieve data . /1400792039.Didn't retrieve data . /1400792037.Didn't retrieve data . /1400792035.Didn't retrieve data . /1400792032.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, '4267259') ('4302', '29677291', '1400792064', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792061', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792058', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792044', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792042', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792039', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792037', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792035', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792032', None, None, None, None, None, '4267259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '29677291', '1400792064', '0.03880642034366174', None, None, None, None, '4267259'), ('4302', '29677291', '1400792061', '0.03880642034366174', None, None, None, None, '4267259'), ('4302', '29677291', '1400792058', '0.03880642034366174', None, None, None, None, '4267259'), ('4302', '29677291', '1400792044', '0.03880642034366174', None, None, None, None, '4267259'), ('4302', '29677291', '1400792042', '0.03880642034366174', None, None, None, None, '4267259'), ('4302', '29677291', '1400792039', '0.03880642034366174', None, None, None, None, '4267259'), ('4302', '29677291', '1400792037', '0.03880642034366174', None, None, None, None, '4267259'), ('4302', '29677291', '1400792035', '0.03880642034366174', None, None, None, None, '4267259'), ('4302', '29677291', '1400792032', '0.03880642034366174', None, None, None, None, '4267259')] time used for this insertion : 0.015735149383544922 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0810551643371582 time spend to save output : 0.016184329986572266 total time spend for step 2 : 0.09723949432373047 step3:velours_tree Wed Dec 24 06:15:01 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 : {29677291: [{'Carton_gris': 29677295, 'cartonnette': 29677296, 'Carton_brun': 29677297, 'environnement': 29677298, 'kraft': 29677299, 'autre_refus': 29677300, 'plastique': 29677301, 'papier': 29677302, 'metal': 29677303, 'mal_croppe': 29677304, 'Teint_Dans_La_Masse': 29677305, 'flou': 29677306}]} input_args_next_step : {29677291: ()} output_args : {29677291: [{'Carton_gris': 29677295, 'cartonnette': 29677296, 'Carton_brun': 29677297, 'environnement': 29677298, 'kraft': 29677299, 'autre_refus': 29677300, 'plastique': 29677301, 'papier': 29677302, 'metal': 29677303, 'mal_croppe': 29677304, 'Teint_Dans_La_Masse': 29677305, 'flou': 29677306}]} args : 29677291 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 : ({'Carton_gris': 29677295, 'cartonnette': 29677296, 'Carton_brun': 29677297, 'environnement': 29677298, 'kraft': 29677299, 'autre_refus': 29677300, 'plastique': 29677301, 'papier': 29677302, 'metal': 29677303, 'mal_croppe': 29677304, 'Teint_Dans_La_Masse': 29677305, 'flou': 29677306},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29677291) 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([29677291]) 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.26973533630371094 time spend to save output : 5.888938903808594e-05 total time spend for step 3 : 0.269794225692749 step4:send_mail_cod Wed Dec 24 06:15:02 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 : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} input_args_next_step : {1400792064: ()} output_args : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} args : 1400792064 depend.output_id : 0 input_args_next_step : {1400792064: ('0.03880642034366174',), 1400792061: ()} output_args : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} args : 1400792061 depend.output_id : 0 input_args_next_step : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ()} output_args : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} args : 1400792058 depend.output_id : 0 input_args_next_step : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ()} output_args : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} args : 1400792044 depend.output_id : 0 input_args_next_step : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ()} output_args : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} args : 1400792042 depend.output_id : 0 input_args_next_step : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ()} output_args : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} args : 1400792039 depend.output_id : 0 input_args_next_step : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ()} output_args : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} args : 1400792037 depend.output_id : 0 input_args_next_step : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ()} output_args : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} args : 1400792035 depend.output_id : 0 input_args_next_step : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ()} output_args : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',)} args : 1400792032 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 : {29677291: [{'Carton_gris': 29677295, 'cartonnette': 29677296, 'Carton_brun': 29677297, 'environnement': 29677298, 'kraft': 29677299, 'autre_refus': 29677300, 'plastique': 29677301, 'papier': 29677302, 'metal': 29677303, 'mal_croppe': 29677304, 'Teint_Dans_La_Masse': 29677305, 'flou': 29677306}]} input_args_next_step : {1400792064: ('0.03880642034366174',), 1400792061: ('0.03880642034366174',), 1400792058: ('0.03880642034366174',), 1400792044: ('0.03880642034366174',), 1400792042: ('0.03880642034366174',), 1400792039: ('0.03880642034366174',), 1400792037: ('0.03880642034366174',), 1400792035: ('0.03880642034366174',), 1400792032: ('0.03880642034366174',), 29677291: ()} output_args : {29677291: [{'Carton_gris': 29677295, 'cartonnette': 29677296, 'Carton_brun': 29677297, 'environnement': 29677298, 'kraft': 29677299, 'autre_refus': 29677300, 'plastique': 29677301, 'papier': 29677302, 'metal': 29677303, 'mal_croppe': 29677304, 'Teint_Dans_La_Masse': 29677305, 'flou': 29677306}]} args : 29677291 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 :10, first value : ('0.03880642034366174',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29677291) 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 (1400792064,1400792061,1400792058,1400792044,1400792042,1400792039,1400792037,1400792035,1400792032) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400792032 begin to download photo : 1400792037 begin to download photo : 1400792042 begin to download photo : 1400792058 begin to download photo : 1400792064 download finish for photo 1400792037 begin to download photo : 1400792039 download finish for photo 1400792042 begin to download photo : 1400792044 download finish for photo 1400792064 download finish for photo 1400792032 begin to download photo : 1400792035 download finish for photo 1400792058 begin to download photo : 1400792061 download finish for photo 1400792044 download finish for photo 1400792039 download finish for photo 1400792035 download finish for photo 1400792061 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P29677291_24-12-2025_06_15_02.pdf 29677296 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=29677296 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400789017: '1766552667_83932_1400786079_53edda8d0cf8a4aba8827a55019fea5e_rle_crop_4079787378_0.png', 1400789020: '1766552667_83932_1400786038_1e2c84deccd1c3eb8803e6ae060285ef_rle_crop_4079787398_0.png', 1400791227: '1766552907_97477_1400789215_b0fa91444850b27add1a08ae84fb2241_rle_crop_4079792712_0.png', 1400791229: '1766552907_97477_1400787719_ecbbca2f0e4ef719c89dde0f46e0f117_rle_crop_4079792742_0.png', 1400791307: '1766552947_100201_1400789143_9ba748acd547b2f2d7dd2440f3a8c005_rle_crop_4079792777_0.png', 1400791627: '1766552967_101261_1400789294_9963a4d6218ee6e7ba8e877869853f8d_rle_crop_4079792971_0.png', 1400791629: '1766552967_101261_1400787926_006270450f92b150d85b2d872324e24c_rle_crop_4079792983_0.png', 1400791631: '1766552967_101261_1400787027_4011779797f7174dc349e6dde59b5f52_rle_crop_4079792997_0.png', 1400791633: '1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793043_0.png', 1400792076: '1766553187_113738_1400791566_91c655caa962ff381565bce23fe41abd_rle_crop_4079793321_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/e13650c6305e3454206e7b61b9f36567_24937056.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/5486136b60c099132462a0e464e569c3_62893181.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/687ec849aac2789d41a6e6961a3d3f39_44873711.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/687ec849aac2789d41a6e6961a3d3f39_9441496.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/406160f0716f1a8abd71e05cee2733b3_16338096.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/50a58de7cdbf976367363218d82a107d_9572613.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/50a58de7cdbf976367363218d82a107d_49852578.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/13eaa22ca208f80d7f0790a2abc026fd_97441465.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/18d20ecdba503c6b26bd80afd4cd457d_43205799.png change filename to text .imagette296772961766553302/ imagette296772961766553302/1766552907_97477_1400789215_b0fa91444850b27add1a08ae84fb2241_rle_crop_4079792712_0.png.png imagette296772961766553302/1766552667_83932_1400786038_1e2c84deccd1c3eb8803e6ae060285ef_rle_crop_4079787398_0.png.png imagette296772961766553302/1766552907_97477_1400787719_ecbbca2f0e4ef719c89dde0f46e0f117_rle_crop_4079792742_0.png.png imagette296772961766553302/1766552967_101261_1400787027_4011779797f7174dc349e6dde59b5f52_rle_crop_4079792997_0.png.png imagette296772961766553302/1766553187_113738_1400791566_91c655caa962ff381565bce23fe41abd_rle_crop_4079793321_0.png.png imagette296772961766553302/1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793043_0.png.png imagette296772961766553302/1766552967_101261_1400787926_006270450f92b150d85b2d872324e24c_rle_crop_4079792983_0.png.png imagette296772961766553302/1766552947_100201_1400789143_9ba748acd547b2f2d7dd2440f3a8c005_rle_crop_4079792777_0.png.png imagette296772961766553302/1766552667_83932_1400786079_53edda8d0cf8a4aba8827a55019fea5e_rle_crop_4079787378_0.png.png imagette296772961766553302/1766552967_101261_1400789294_9963a4d6218ee6e7ba8e877869853f8d_rle_crop_4079792971_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/4a73c8477df6df54012fa580af3e57c8_25922640.png imagette296772961766553302 29677299 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=29677299 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400791240: '1766552907_97477_1400789252_497031524236a16d230cbbb6e3f810e9_rle_crop_4079792703_0.png', 1400791242: '1766552907_97477_1400787824_9d91f2f094b5bcbf763874e6598ee8d5_rle_crop_4079792733_0.png', 1400792080: '1766553187_113738_1400791611_bff8f25d45d36a2067a358d66255e4a4_rle_crop_4079793296_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/92baec36febdd4694b5bad8af891b726_36069234.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/92baec36febdd4694b5bad8af891b726_2794590.png change filename to text .imagette296772991766553303/ imagette296772991766553303/1766552907_97477_1400789252_497031524236a16d230cbbb6e3f810e9_rle_crop_4079792703_0.png.png imagette296772991766553303/1766552907_97477_1400787824_9d91f2f094b5bcbf763874e6598ee8d5_rle_crop_4079792733_0.png.png imagette296772991766553303/1766553187_113738_1400791611_bff8f25d45d36a2067a358d66255e4a4_rle_crop_4079793296_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/6be88193d1ef99520909aa21fda04ef5_45723610.png imagette296772991766553303 29677300 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=29677300 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400791594: '1766552967_101261_1400786963_11abbdcf3c65c4d8411a2eba89ace8ab_rle_crop_4079793007_0.png', 1400791596: '1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793046_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/4ad202dd53f630c5ad5c809163013536_38865850.png change filename to text .imagette296773001766553303/ imagette296773001766553303/1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793046_0.png.png imagette296773001766553303/1766552967_101261_1400786963_11abbdcf3c65c4d8411a2eba89ace8ab_rle_crop_4079793007_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/80ee96f8f630fbc58aa9d4bf8097e6d3_13385740.png imagette296773001766553303 29677301 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=29677301 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400789056: '1766552667_83932_1400786079_53edda8d0cf8a4aba8827a55019fea5e_rle_crop_4079787383_0.png', 1400791659: '1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793041_0.png', 1400791661: '1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793042_0.png', 1400792023: '1766553085_108510_1400786434_36ea37eec3322c1b6ed3e5399a35c98c_rle_crop_4079793197_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/37a5c7d26f491b25b1fdfa6497342c99_84304961.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/cd8efc630a09814e94d979d59053d05a_86622667.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/fb33655ff60e3895d4b1a6e067a2780d_4499841.png change filename to text .imagette296773011766553303/ imagette296773011766553303/1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793042_0.png.png imagette296773011766553303/1766553085_108510_1400786434_36ea37eec3322c1b6ed3e5399a35c98c_rle_crop_4079793197_0.png.png imagette296773011766553303/1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793041_0.png.png imagette296773011766553303/1766552667_83932_1400786079_53edda8d0cf8a4aba8827a55019fea5e_rle_crop_4079787383_0.png.png imagette296773031766553304/ imagette296773041766553304/ imagette296773061766553304/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/a9d62ddf23b16d765c0b79e38615638a_78058657.png imagette296773011766553303 29677303 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=29677303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296773031766553304 29677304 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=29677304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296773041766553304 29677306 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=29677306 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296773061766553304 29677295 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=29677295 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400791211: '1766552907_97477_1400789252_497031524236a16d230cbbb6e3f810e9_rle_crop_4079792701_0.png', 1400791214: '1766552907_97477_1400787824_9d91f2f094b5bcbf763874e6598ee8d5_rle_crop_4079792731_0.png', 1400791607: '1766552967_101261_1400787027_4011779797f7174dc349e6dde59b5f52_rle_crop_4079792998_0.png', 1400791609: '1766552967_101261_1400786963_11abbdcf3c65c4d8411a2eba89ace8ab_rle_crop_4079793009_0.png', 1400791612: '1766552967_101261_1400786890_ffc05da8c92c2937f3b0580672e1e045_rle_crop_4079793021_0.png', 1400792094: '1766553206_114173_1400791246_8a3da8e9e28f94383f47d281104e9baf_rle_crop_4079793456_0.png', 1400792095: '1766553206_114173_1400791246_8a3da8e9e28f94383f47d281104e9baf_rle_crop_4079793460_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/ac0467fd219e74f22642d99a6dafc0f5_64476942.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/ac0467fd219e74f22642d99a6dafc0f5_35873723.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/bdf904a5b1d51a8d96826c531f557fa5_62136886.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/0c31d9a7533b81490b2f6c3f6b325b00_82688682.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/9c9f6c7034836b41db244c5397b5dbb8_40156443.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/6657b8261b97c5866a523f6fc6c35a19_4680146.png change filename to text .imagette296772951766553304/ imagette296772951766553304/1766552967_101261_1400786890_ffc05da8c92c2937f3b0580672e1e045_rle_crop_4079793021_0.png.png imagette296772951766553304/1766553206_114173_1400791246_8a3da8e9e28f94383f47d281104e9baf_rle_crop_4079793456_0.png.png imagette296772951766553304/1766552967_101261_1400787027_4011779797f7174dc349e6dde59b5f52_rle_crop_4079792998_0.png.png imagette296772951766553304/1766552967_101261_1400786963_11abbdcf3c65c4d8411a2eba89ace8ab_rle_crop_4079793009_0.png.png imagette296772951766553304/1766553206_114173_1400791246_8a3da8e9e28f94383f47d281104e9baf_rle_crop_4079793460_0.png.png imagette296772951766553304/1766552907_97477_1400787824_9d91f2f094b5bcbf763874e6598ee8d5_rle_crop_4079792731_0.png.png imagette296772951766553304/1766552907_97477_1400789252_497031524236a16d230cbbb6e3f810e9_rle_crop_4079792701_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/c6500dc1edd2ff52daaf1ed696dfeaa3_9954817.png imagette296772951766553304 29677297 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=29677297 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400789038: '1766552667_83932_1400786079_53edda8d0cf8a4aba8827a55019fea5e_rle_crop_4079787385_0.png', 1400791309: '1766552947_100201_1400789884_3754fe2c11a236df9f1826687c59ad5d_rle_crop_4079792772_0.png', 1400791645: '1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793051_0.png', 1400792078: '1766553187_113738_1400791611_bff8f25d45d36a2067a358d66255e4a4_rle_crop_4079793299_0.png', 1400792079: '1766553187_113738_1400791566_91c655caa962ff381565bce23fe41abd_rle_crop_4079793327_0.png', 1400792096: '1766553206_114173_1400791257_ffc3d6bf86589ef7f1bbd36c946e01d4_rle_crop_4079793449_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/0cc63ebb77b146ac072c0dcba82bc6fe_16622588.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2dd6d4e628fb64a4ad28fe601a58f6fa_41099393.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/e2f57e3addd4cd388e7839cedfab1073_2905228.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/9c70faaa7a0b39f14cee95b7e1edd443_34262844.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2d3871a8b537ac31e6832f98d5443fde_64744733.png change filename to text .imagette296772971766553304/ imagette296772971766553304/1766553187_113738_1400791566_91c655caa962ff381565bce23fe41abd_rle_crop_4079793327_0.png.png imagette296772971766553304/1766553206_114173_1400791257_ffc3d6bf86589ef7f1bbd36c946e01d4_rle_crop_4079793449_0.png.png imagette296772971766553304/1766552667_83932_1400786079_53edda8d0cf8a4aba8827a55019fea5e_rle_crop_4079787385_0.png.png imagette296772971766553304/1766552947_100201_1400789884_3754fe2c11a236df9f1826687c59ad5d_rle_crop_4079792772_0.png.png imagette296772971766553304/1766553187_113738_1400791611_bff8f25d45d36a2067a358d66255e4a4_rle_crop_4079793299_0.png.png imagette296772971766553304/1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793051_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/97141ed3e6d9da8722ef5e35eb9f491e_76078186.png imagette296772971766553304 29677305 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=29677305 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400788990: '1766552667_83932_1400786114_1b54acc2e94d982ad14e911daa282838_rle_crop_4079787370_0.png', 1400788993: '1766552667_83932_1400786079_53edda8d0cf8a4aba8827a55019fea5e_rle_crop_4079787389_0.png', 1400788996: '1766552667_83932_1400785994_61601600ad78e07f9e1240f555fc2521_rle_crop_4079787419_0.png', 1400791189: '1766552907_97477_1400789252_497031524236a16d230cbbb6e3f810e9_rle_crop_4079792704_0.png', 1400791191: '1766552907_97477_1400789215_b0fa91444850b27add1a08ae84fb2241_rle_crop_4079792711_0.png', 1400791193: '1766552907_97477_1400787824_9d91f2f094b5bcbf763874e6598ee8d5_rle_crop_4079792734_0.png', 1400791195: '1766552907_97477_1400787719_ecbbca2f0e4ef719c89dde0f46e0f117_rle_crop_4079792741_0.png', 1400791575: '1766552967_101261_1400789294_9963a4d6218ee6e7ba8e877869853f8d_rle_crop_4079792978_0.png', 1400791577: '1766552967_101261_1400787926_006270450f92b150d85b2d872324e24c_rle_crop_4079792990_0.png', 1400791579: '1766552967_101261_1400786963_11abbdcf3c65c4d8411a2eba89ace8ab_rle_crop_4079793012_0.png', 1400791581: '1766552967_101261_1400786825_acbf981c964370b54c2389e052f33e04_rle_crop_4079793037_0.png', 1400791583: '1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793052_0.png', 1400792022: '1766553085_108510_1400786434_36ea37eec3322c1b6ed3e5399a35c98c_rle_crop_4079793201_0.png', 1400792074: '1766553187_113738_1400791566_91c655caa962ff381565bce23fe41abd_rle_crop_4079793328_0.png', 1400792092: '1766553206_114173_1400791246_8a3da8e9e28f94383f47d281104e9baf_rle_crop_4079793458_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/ac40319facaf0fb62b82c6e641d02a9c_57978371.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b70fa1e51765568f012379dc8adc2cd2_57205680.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/50462dd542acd08f07e2f95c8f217848_99408897.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/cea300830eaf79ae0841cc6388359c2b_50815372.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/3fc4c16f396b05ddbedc2ea61d3ae23e_38709737.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/cea300830eaf79ae0841cc6388359c2b_96579191.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/3fc4c16f396b05ddbedc2ea61d3ae23e_51169913.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b868b7ae1f804a8517f8f8dc26312ef3_43899812.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b868b7ae1f804a8517f8f8dc26312ef3_31103855.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/f8cff5bff3e22a6542b0ff06f7ef8c80_87417208.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/07d6ae39e43e8afa61c2815866fba52d_16336939.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/7573c66d9386113ef2f556ac16f3c5bf_87464686.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/def0545b71cbca4fd632b6324cfce297_85935310.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/3647831a9bfb4c4ebc45b99fab780dfe_37172099.png change filename to text .imagette296773051766553304/ imagette296773051766553304/1766552667_83932_1400786079_53edda8d0cf8a4aba8827a55019fea5e_rle_crop_4079787389_0.png.png imagette296773051766553304/1766552967_101261_1400786963_11abbdcf3c65c4d8411a2eba89ace8ab_rle_crop_4079793012_0.png.png imagette296773051766553304/1766552967_101261_1400787926_006270450f92b150d85b2d872324e24c_rle_crop_4079792990_0.png.png imagette296773051766553304/1766552967_101261_1400786825_acbf981c964370b54c2389e052f33e04_rle_crop_4079793037_0.png.png imagette296773051766553304/1766552907_97477_1400787824_9d91f2f094b5bcbf763874e6598ee8d5_rle_crop_4079792734_0.png.png imagette296773051766553304/1766552667_83932_1400786114_1b54acc2e94d982ad14e911daa282838_rle_crop_4079787370_0.png.png imagette296773051766553304/1766552667_83932_1400785994_61601600ad78e07f9e1240f555fc2521_rle_crop_4079787419_0.png.png imagette296773051766553304/1766552967_101261_1400789294_9963a4d6218ee6e7ba8e877869853f8d_rle_crop_4079792978_0.png.png imagette296773051766553304/1766552907_97477_1400787719_ecbbca2f0e4ef719c89dde0f46e0f117_rle_crop_4079792741_0.png.png imagette296773051766553304/1766553206_114173_1400791246_8a3da8e9e28f94383f47d281104e9baf_rle_crop_4079793458_0.png.png imagette296773051766553304/1766552967_101261_1400786749_d20426eb44d77bf4fb39ff9b34ca33f0_rle_crop_4079793052_0.png.png imagette296773051766553304/1766552907_97477_1400789252_497031524236a16d230cbbb6e3f810e9_rle_crop_4079792704_0.png.png imagette296773051766553304/1766553187_113738_1400791566_91c655caa962ff381565bce23fe41abd_rle_crop_4079793328_0.png.png imagette296773051766553304/1766553085_108510_1400786434_36ea37eec3322c1b6ed3e5399a35c98c_rle_crop_4079793201_0.png.png imagette296773051766553304/1766552907_97477_1400789215_b0fa91444850b27add1a08ae84fb2241_rle_crop_4079792711_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/3660ba01fa37b84e4a9340af2342d03b_90811466.png imagette296773051766553304 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29677291 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29677307,29677308,29677309,29677310,29677311,29677312,29677313,29677314,29677315,29677316,29677317,29677318?tags=Carton_gris,cartonnette,Carton_brun,environnement,kraft,autre_refus,plastique,papier,metal,mal_croppe,Teint_Dans_La_Masse,flou your option no_mail is active, we will not send the real mail to your client args[1400792064] : ('0.03880642034366174',) no score found for photo 1400792064 We are sending mail with results at report@fotonower.com args[1400792061] : ('0.03880642034366174',) no score found for photo 1400792061 We are sending mail with results at report@fotonower.com args[1400792058] : ('0.03880642034366174',) no score found for photo 1400792058 We are sending mail with results at report@fotonower.com args[1400792044] : ('0.03880642034366174',) no score found for photo 1400792044 We are sending mail with results at report@fotonower.com args[1400792042] : ('0.03880642034366174',) no score found for photo 1400792042 We are sending mail with results at report@fotonower.com args[1400792039] : ('0.03880642034366174',) no score found for photo 1400792039 We are sending mail with results at report@fotonower.com args[1400792037] : ('0.03880642034366174',) no score found for photo 1400792037 We are sending mail with results at report@fotonower.com args[1400792035] : ('0.03880642034366174',) no score found for photo 1400792035 We are sending mail with results at report@fotonower.com args[1400792032] : ('0.03880642034366174',) no score found for photo 1400792032 We are sending mail with results at report@fotonower.com refus_total : 0.03880642034366174 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=29677291 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_P29677291_24-12-2025_06_15_02.pdf results_Auto_P29677291_24-12-2025_06_15_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677291_24-12-2025_06_15_02.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','29677291','results_Auto_P29677291_24-12-2025_06_15_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677291_24-12-2025_06_15_02.pdf','pdf','','0.19','0.03880642034366174') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29677291]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032] map_info['map_portfolio_photo'] : {29677291: [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032, 1400791976, 1400791958, 1400791946, 1400791939, 1400791918, 1400791650, 1400791611, 1400791566, 1400791281, 1400791259, 1400791257, 1400791246, 1400791021, 1400790406, 1400789884, 1400789294, 1400789252, 1400789215, 1400789177, 1400789143, 1400787926, 1400787824, 1400787719, 1400787072, 1400787027, 1400786963, 1400786890, 1400786825, 1400786749, 1400786544, 1400786505, 1400786470, 1400786434, 1400786114, 1400786079, 1400786038, 1400786001, 1400785994]} final : False mtd_id 4302 list_pids : [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032] 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, '4267259') ('4302', '29677291', '1400792064', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792061', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792058', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792044', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792042', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792039', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792037', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792035', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792032', None, None, None, None, None, '4267259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '29677291', '1400792064', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792061', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792058', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792044', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792042', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792039', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792037', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792035', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792032', None, None, None, None, None, '4267259')] time used for this insertion : 0.016021251678466797 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.007562875747681 time spend to save output : 0.01623082160949707 total time spend for step 4 : 5.023793697357178 step5:split_time_score Wed Dec 24 06:15:07 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 : ['29677291'] 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 : [('29677291',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29677291) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400792064: {'path': 'temp/1766553302_1763784_1400792064_b20c9981193083d3648845494af4eeef.jpg', 'extension': 'jpg'}, 1400792042: {'path': 'temp/1766553302_1763784_1400792042_d2271b8aa94a48603c7b65edbaa07174.jpg', 'extension': 'jpg'}, 1400792044: {'path': 'temp/1766553302_1763784_1400792044_8d9a4df3e093a647047cb1d820f289c8.jpg', 'extension': 'jpg'}, 1400792037: {'path': 'temp/1766553302_1763784_1400792037_4ce63938c94525f9357721d99187dd7c.jpg', 'extension': 'jpg'}, 1400792039: {'path': 'temp/1766553302_1763784_1400792039_0e813972e9f646c7d1263fe2d701f8da.jpg', 'extension': 'jpg'}, 1400792032: {'path': 'temp/1766553302_1763784_1400792032_9dc2ad8c3dce83c237a0a75754e37a71.jpg', 'extension': 'jpg'}, 1400792035: {'path': 'temp/1766553302_1763784_1400792035_52085b602e5bcc32d45730a878ceeabd.jpg', 'extension': 'jpg'}, 1400792058: {'path': 'temp/1766553302_1763784_1400792058_843b3e41a6421f89b57ecab0b85f6e35.jpg', 'extension': 'jpg'}, 1400792061: {'path': 'temp/1766553302_1763784_1400792061_446f6caeceb743931bb7b80ba108aa31.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 = 29677291; (('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 = 29677291 group by h (('06', 47),) 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=29677291 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 (29677291) 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 (29677291) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24122025 29677291 Nombre de photos uploadées : 47 / 23040 (0%) 24122025 29677291 Nombre de photos taguées (types de déchets): 0 / 47 (0%) 24122025 29677291 Nombre de photos taguées (volume) : 0 / 47 (0%) [{'photo_id': 1400786114, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/1b54acc2e94d982ad14e911daa282838.jpg', 'username': None, 'uploaded_at': 1766552473, 'text': 'image_24122025_06_00_04_010146m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400786079, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/53edda8d0cf8a4aba8827a55019fea5e.jpg', 'username': None, 'uploaded_at': 1766552473, 'text': 'image_24122025_06_00_13_009132m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400786038, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/1e2c84deccd1c3eb8803e6ae060285ef.jpg', 'username': None, 'uploaded_at': 1766552473, 'text': 'image_24122025_06_00_24_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1400786001, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/d81bae92060dd0a66ed7ee80d2484ec4.jpg', 'username': None, 'uploaded_at': 1766552473, 'text': 'image_24122025_06_00_34_010139m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 3.814697265625e-06 ??????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015802383422851562 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29677291, '2025-12-24' ) 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-12-24' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2781885,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.23522448539733887 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= 2781885 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29668057, 'dashboard_result_id': 18684757, '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_P29668057_24-12-2025_00_19_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29668522, 'dashboard_result_id': 18684758, '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_P29668522_24-12-2025_00_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29668997, 'dashboard_result_id': 18684759, '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_P29668997_24-12-2025_00_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29669483, 'dashboard_result_id': 18684760, '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_P29669483_24-12-2025_01_03_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29670567, 'dashboard_result_id': 18684761, '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_P29670567_24-12-2025_01_47_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29670856, 'dashboard_result_id': 18684762, '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_P29670856_24-12-2025_02_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29671273, 'dashboard_result_id': 18684763, '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_P29671273_24-12-2025_02_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29671897, 'dashboard_result_id': 18684764, '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_P29671897_24-12-2025_02_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29672417, 'dashboard_result_id': 18684765, '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_P29672417_24-12-2025_02_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29672816, 'dashboard_result_id': 18684766, '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_P29672816_24-12-2025_04_30_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29673237, 'dashboard_result_id': 18684767, '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_P29673237_24-12-2025_03_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29673713, 'dashboard_result_id': 18684768, '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_P29673713_24-12-2025_03_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673732, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29674114, 'dashboard_result_id': 18684769, '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_P29674114_24-12-2025_03_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674150, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29674573, 'dashboard_result_id': 18684770, '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_P29674573_24-12-2025_04_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674609, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29674924, 'dashboard_result_id': 18684771, '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_P29674924_24-12-2025_04_13_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674946, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29676059, 'dashboard_result_id': 18684772, '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_P29676059_24-12-2025_05_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676075, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29676249, 'dashboard_result_id': 18684773, '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_P29676249_24-12-2025_05_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676265, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29676605, 'dashboard_result_id': 18684774, '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_P29676605_24-12-2025_05_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676620, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29676944, 'dashboard_result_id': 18684775, '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_P29676944_24-12-2025_06_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676961, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2789981, 'mtr_portfolio_id': 29677291, 'dashboard_result_id': 18684776, '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_P29677291_24-12-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29677295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29677296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29677297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29677298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29677299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29677300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29677301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29677302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29677303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29677304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29677305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29677306, '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 = 29668057 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': 4265770, 'mtr_portfolio_id': 29668057, 'created_at': datetime.datetime(2025, 12, 24, 0, 19, 31), 'result': '0.06135353829280031', 'result_long': None, 'result_double': None}] Qualite : 0.06135353829280031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668057 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668057_24-12-2025_00_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668057 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_P29668057_24-12-2025_00_19_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, 'pht': 3726}}" where mtr_portfolio_id = 29668057 and dashboard_run_id = 2789981 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`=29668057 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684757, 0.06135353829280031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668057_24-12-2025_00_19_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, '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 = 29668522 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': 4265831, 'mtr_portfolio_id': 29668522, 'created_at': datetime.datetime(2025, 12, 24, 0, 33, 3), 'result': '0.05424920509000451', 'result_long': None, 'result_double': None}] Qualite : 0.05424920509000451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668522_24-12-2025_00_33_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668522 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_P29668522_24-12-2025_00_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, 'pht': 3726}}" where mtr_portfolio_id = 29668522 and dashboard_run_id = 2789981 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`=29668522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684758, 0.05424920509000451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668522_24-12-2025_00_33_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, '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 = 29668997 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': 4265902, 'mtr_portfolio_id': 29668997, 'created_at': datetime.datetime(2025, 12, 24, 0, 49, 2), 'result': '0.028189047341204393', 'result_long': None, 'result_double': None}] Qualite : 0.028189047341204393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668997_24-12-2025_00_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668997 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_P29668997_24-12-2025_00_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, 'pht': 3726}}" where mtr_portfolio_id = 29668997 and dashboard_run_id = 2789981 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`=29668997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684759, 0.028189047341204393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668997_24-12-2025_00_49_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, '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 = 29669483 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': 4265972, 'mtr_portfolio_id': 29669483, 'created_at': datetime.datetime(2025, 12, 24, 1, 3, 2), 'result': '0.039287696512471944', 'result_long': None, 'result_double': None}] Qualite : 0.039287696512471944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29669483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29669483_24-12-2025_01_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29669483 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_P29669483_24-12-2025_01_03_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, 'pht': 3726}}" where mtr_portfolio_id = 29669483 and dashboard_run_id = 2789981 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`=29669483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684760, 0.039287696512471944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29669483_24-12-2025_01_03_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, '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 = 29670567 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': 4266119, 'mtr_portfolio_id': 29670567, 'created_at': datetime.datetime(2025, 12, 24, 1, 47, 3), 'result': '0.037633975953310125', 'result_long': None, 'result_double': None}] Qualite : 0.037633975953310125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29670567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670567_24-12-2025_01_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29670567 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_P29670567_24-12-2025_01_47_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, 'pht': 3726}}" where mtr_portfolio_id = 29670567 and dashboard_run_id = 2789981 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`=29670567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684761, 0.037633975953310125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670567_24-12-2025_01_47_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, '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 = 29670856 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': 4266155, 'mtr_portfolio_id': 29670856, 'created_at': datetime.datetime(2025, 12, 24, 2, 4, 31), 'result': '0.07641640149739097', 'result_long': None, 'result_double': None}] Qualite : 0.07641640149739097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29670856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670856_24-12-2025_02_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29670856 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_P29670856_24-12-2025_02_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, 'pht': 3726}}" where mtr_portfolio_id = 29670856 and dashboard_run_id = 2789981 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`=29670856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684762, 0.07641640149739097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670856_24-12-2025_02_04_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, '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 = 29671273 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': 4266240, 'mtr_portfolio_id': 29671273, 'created_at': datetime.datetime(2025, 12, 24, 2, 19, 29), 'result': '0.041436645449697156', 'result_long': None, 'result_double': None}] Qualite : 0.041436645449697156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29671273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671273_24-12-2025_02_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29671273 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_P29671273_24-12-2025_02_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, 'pht': 3726}}" where mtr_portfolio_id = 29671273 and dashboard_run_id = 2789981 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`=29671273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684763, 0.041436645449697156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671273_24-12-2025_02_19_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, '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 = 29671897 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': 4266310, 'mtr_portfolio_id': 29671897, 'created_at': datetime.datetime(2025, 12, 24, 2, 32, 59), 'result': '0.03722838001781973', 'result_long': None, 'result_double': None}] Qualite : 0.03722838001781973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29671897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671897_24-12-2025_02_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29671897 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_P29671897_24-12-2025_02_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, 'pht': 3726}}" where mtr_portfolio_id = 29671897 and dashboard_run_id = 2789981 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`=29671897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684764, 0.03722838001781973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671897_24-12-2025_02_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, '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 = 29672417 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': 4266373, 'mtr_portfolio_id': 29672417, 'created_at': datetime.datetime(2025, 12, 24, 2, 48, 58), 'result': '0.053284267866979956', 'result_long': None, 'result_double': None}] Qualite : 0.053284267866979956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29672417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672417_24-12-2025_02_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29672417 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_P29672417_24-12-2025_02_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, 'pht': 3726}}" where mtr_portfolio_id = 29672417 and dashboard_run_id = 2789981 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`=29672417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684765, 0.053284267866979956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672417_24-12-2025_02_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, '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 = 29672816 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': 4266429, 'mtr_portfolio_id': 29672816, 'created_at': datetime.datetime(2025, 12, 24, 4, 30, 59), 'result': '0.044191773702888', 'result_long': None, 'result_double': None}] Qualite : 0.044191773702888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29672816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672816_24-12-2025_04_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29672816 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_P29672816_24-12-2025_04_30_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, 'pht': 3726}}" where mtr_portfolio_id = 29672816 and dashboard_run_id = 2789981 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`=29672816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684766, 0.044191773702888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672816_24-12-2025_04_30_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, '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 = 29673237 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': 4266482, 'mtr_portfolio_id': 29673237, 'created_at': datetime.datetime(2025, 12, 24, 3, 17), 'result': '0.0466483171573243', 'result_long': None, 'result_double': None}] Qualite : 0.0466483171573243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29673237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_03_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29673237 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_P29673237_24-12-2025_03_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, 'pht': 3726}}" where mtr_portfolio_id = 29673237 and dashboard_run_id = 2789981 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`=29673237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684767, 0.0466483171573243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_03_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, '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 = 29673713 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': 4266529, 'mtr_portfolio_id': 29673713, 'created_at': datetime.datetime(2025, 12, 24, 3, 32, 56), 'result': '0.04981389740956126', 'result_long': None, 'result_double': None}] Qualite : 0.04981389740956126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29673713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673713_24-12-2025_03_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29673713 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_P29673713_24-12-2025_03_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673732, 'pht': 3726}}" where mtr_portfolio_id = 29673713 and dashboard_run_id = 2789981 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`=29673713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684768, 0.04981389740956126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673713_24-12-2025_03_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673732, '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 = 29674114 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': 4266607, 'mtr_portfolio_id': 29674114, 'created_at': datetime.datetime(2025, 12, 24, 3, 48, 59), 'result': '0.06671008552183694', 'result_long': None, 'result_double': None}] Qualite : 0.06671008552183694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29674114 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674114_24-12-2025_03_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29674114 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_P29674114_24-12-2025_03_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674150, 'pht': 3726}}" where mtr_portfolio_id = 29674114 and dashboard_run_id = 2789981 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`=29674114 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684769, 0.06671008552183694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674114_24-12-2025_03_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674150, '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 = 29674573 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': 4266673, 'mtr_portfolio_id': 29674573, 'created_at': datetime.datetime(2025, 12, 24, 4, 2, 58), 'result': '0.0390869813593363', 'result_long': None, 'result_double': None}] Qualite : 0.0390869813593363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29674573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674573_24-12-2025_04_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29674573 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_P29674573_24-12-2025_04_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674609, 'pht': 3726}}" where mtr_portfolio_id = 29674573 and dashboard_run_id = 2789981 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`=29674573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684770, 0.0390869813593363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674573_24-12-2025_04_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674609, '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 = 29674924 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': 4266755, 'mtr_portfolio_id': 29674924, 'created_at': datetime.datetime(2025, 12, 24, 4, 12, 59), 'result': '0.03132340191340667', 'result_long': None, 'result_double': None}] Qualite : 0.03132340191340667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29674924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674924_24-12-2025_04_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29674924 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_P29674924_24-12-2025_04_13_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674946, 'pht': 3726}}" where mtr_portfolio_id = 29674924 and dashboard_run_id = 2789981 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`=29674924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684771, 0.03132340191340667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674924_24-12-2025_04_13_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674946, '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 = 29676059 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': 4266940, 'mtr_portfolio_id': 29676059, 'created_at': datetime.datetime(2025, 12, 24, 5, 18, 57), 'result': '0.0476516084926183', 'result_long': None, 'result_double': None}] Qualite : 0.0476516084926183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29676059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676059_24-12-2025_05_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29676059 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_P29676059_24-12-2025_05_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676075, 'pht': 3726}}" where mtr_portfolio_id = 29676059 and dashboard_run_id = 2789981 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`=29676059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684772, 0.0476516084926183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676059_24-12-2025_05_18_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676075, '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 = 29676249 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': 4266964, 'mtr_portfolio_id': 29676249, 'created_at': datetime.datetime(2025, 12, 24, 5, 32, 59), 'result': '0.05687437871857602', 'result_long': None, 'result_double': None}] Qualite : 0.05687437871857602 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29676249 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676249_24-12-2025_05_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29676249 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_P29676249_24-12-2025_05_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676265, 'pht': 3726}}" where mtr_portfolio_id = 29676249 and dashboard_run_id = 2789978 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`=29676249 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684773, 0.05687437871857602, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676249_24-12-2025_05_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676265, '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 = 29676605 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': 4267007, 'mtr_portfolio_id': 29676605, 'created_at': datetime.datetime(2025, 12, 24, 5, 46, 59), 'result': '0.055085492698470476', 'result_long': None, 'result_double': None}] Qualite : 0.055085492698470476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29676605 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676605_24-12-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29676605 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_P29676605_24-12-2025_05_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676620, 'pht': 3726}}" where mtr_portfolio_id = 29676605 and dashboard_run_id = 2789978 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`=29676605 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684774, 0.055085492698470476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676605_24-12-2025_05_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676620, '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 = 29676944 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': 4267177, 'mtr_portfolio_id': 29676944, 'created_at': datetime.datetime(2025, 12, 24, 6, 3, 31), 'result': '0.05273914721058831', 'result_long': None, 'result_double': None}] Qualite : 0.05273914721058831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29676944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676944_24-12-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29676944 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_P29676944_24-12-2025_06_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676961, 'pht': 3726}}" where mtr_portfolio_id = 29676944 and dashboard_run_id = 2789978 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`=29676944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684775, 0.05273914721058831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676944_24-12-2025_06_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676961, '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 = 29677291 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': 4267259, 'mtr_portfolio_id': 29677291, 'created_at': datetime.datetime(2025, 12, 24, 6, 15, 1), 'result': '0.03880642034366174', 'result_long': None, 'result_double': None}] Qualite : 0.03880642034366174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29677291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677291_24-12-2025_06_15_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29677291 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_P29677291_24-12-2025_06_15_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29677295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29677296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29677297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29677298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29677299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29677300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29677301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29677302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29677303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29677304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29677305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29677306, 'pht': 3726}}" where mtr_portfolio_id = 29677291 and dashboard_run_id = 2789978 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`=29677291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18684776, 0.03880642034366174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677291_24-12-2025_06_15_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29677295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29677296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29677297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29677298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29677299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29677300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29677301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29677302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29677303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29677304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29677305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29677306, '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 (29668057,29668522,29668997,29669483,29670567,29670856,29671273,29671897,29672417,29672816,29673237,29673713,29674114,29674573,29674924,29676059,29676249,29676605,29676944,29677291) result : ((1400757182,), (1400757200,), (1400757201,), (1400757219,), (1400757222,), (1400757225,), (1400757229,), (1400757233,), (1400757235,), (1400757291,), (1400757316,), (1400757349,), (1400757377,), (1400757746,), (1400757819,), (1400757890,), (1400757967,), (1400758048,), (1400758117,), (1400758458,), (1400758524,), (1400758596,), (1400758705,), (1400758733,), (1400758760,), (1400758785,), (1400759140,), (1400759145,), (1400759284,), (1400759286,), (1400759288,), (1400759291,), (1400759295,), (1400759299,), (1400759375,), (1400759403,), (1400759434,), (1400759459,), (1400759715,), (1400759753,), (1400759789,), (1400759925,), (1400759927,), (1400759938,), (1400759965,), (1400760110,), (1400760118,), (1400760120,), (1400760144,), (1400760148,), (1400760152,), (1400760155,), (1400760368,), (1400760397,), (1400760424,), (1400760451,), (1400760481,), (1400760511,), (1400760514,), (1400760517,), (1400760521,), (1400760525,), (1400760530,), (1400760537,), (1400760539,), (1400760555,), (1400760546,), (1400760549,), (1400760552,), (1400760570,), (1400760573,), (1400760578,), (1400760581,), (1400760587,), (1400760590,), (1400760617,), (1400760620,), (1400760622,), (1400760668,), (1400760698,), (1400760726,), (1400760758,), (1400760868,), (1400760871,), (1400760873,), (1400760876,), (1400760902,), (1400761049,), (1400761051,), (1400761053,), (1400761055,), (1400761057,), (1400761059,), (1400761079,), (1400761085,), (1400761088,), (1400761091,), (1400761101,), (1400761103,), (1400761105,), (1400761107,), (1400761110,), (1400761116,), (1400761119,), (1400761121,), (1400761136,), (1400761138,), (1400761141,), (1400761143,), (1400761147,), (1400761150,), (1400761161,), (1400761164,), (1400761168,), (1400761172,), (1400761178,), (1400761181,), (1400761197,), (1400761201,), (1400761204,), (1400761213,), (1400761218,), (1400761228,), (1400761254,), (1400761281,), (1400761316,), (1400761624,), (1400761628,), (1400761633,), (1400761676,), (1400761703,), (1400761715,), (1400761917,), (1400761949,), (1400761978,), (1400761984,), (1400761987,), (1400762060,), (1400762070,), (1400762540,), (1400762554,), (1400762557,), (1400762466,), (1400762498,), (1400762529,), (1400762534,), (1400762538,), (1400762570,), (1400762581,), (1400762583,), (1400762585,), (1400762587,), (1400762597,), (1400762598,), (1400762601,), (1400762605,), (1400762621,), (1400762623,), (1400762625,), (1400762654,), (1400762675,), (1400762703,), (1400762731,), (1400762761,), (1400762788,), (1400762795,), (1400762797,), (1400762799,), (1400762812,), (1400762815,), (1400762818,), (1400762820,), (1400762822,), (1400762824,), (1400762835,), (1400762838,), (1400762840,), (1400762842,), (1400762864,), (1400762866,), (1400762869,), (1400762876,), (1400762881,), (1400762957,), (1400762961,), (1400762965,), (1400762969,), (1400762973,), (1400762975,), (1400762988,), (1400762997,), (1400763003,), (1400763005,), (1400763021,), (1400763023,), (1400763025,), (1400763027,), (1400763030,), (1400763033,), (1400763051,), (1400763054,), (1400763057,), (1400763059,), (1400763062,), (1400763085,), (1400763088,), (1400763090,), (1400763092,), (1400763095,), (1400763098,), (1400763113,), (1400763120,), (1400763125,), (1400763147,), (1400763152,), (1400763156,), (1400763160,), (1400763163,), (1400763165,), (1400763198,), (1400763201,), (1400763204,), (1400763222,), (1400763239,), (1400763246,), (1400763248,), (1400763250,), (1400763253,), (1400763281,), (1400763190,), (1400763192,), (1400763195,), (1400763263,), (1400763266,), (1400763268,), (1400763276,), (1400763292,), (1400763341,), (1400763403,), (1400763450,), (1400763453,), (1400763474,), (1400763522,), (1400763528,), (1400763617,), (1400763620,), (1400763622,), (1400763626,), (1400763628,), (1400763631,), (1400763649,), (1400763653,), (1400763657,), (1400763663,), (1400763668,), (1400763670,), (1400763687,), (1400763692,), (1400763697,), (1400763728,), (1400763755,), (1400763758,), (1400763784,), (1400763790,), (1400763794,), (1400763798,), (1400763802,), (1400763804,), (1400763807,), (1400763822,), (1400763845,), (1400763848,), (1400763851,), (1400763870,), (1400763880,), (1400763890,), (1400763918,), (1400763922,), (1400763925,), (1400763930,), (1400763934,), (1400763949,), (1400765913,), (1400765916,), (1400765918,), (1400765937,), (1400765940,), (1400765944,), (1400765948,), (1400765972,), (1400765976,), (1400765995,), (1400765999,), (1400766004,), (1400766009,), (1400766026,), (1400766030,), (1400766034,), (1400766038,), (1400766054,), (1400766058,), (1400766061,), (1400766087,), (1400766089,), (1400766091,), (1400766094,), (1400766098,), (1400766102,), (1400766112,), (1400766115,), (1400766118,), (1400766121,), (1400766150,), (1400766154,), (1400766155,), (1400766158,), (1400766160,), (1400766175,), (1400766177,), (1400766178,), (1400766201,), (1400766210,), (1400766213,), (1400766216,), (1400766218,), (1400766220,), (1400766238,), (1400766241,), (1400766244,), (1400766248,), (1400766252,), (1400766256,), (1400766272,), (1400766274,), (1400766276,), (1400766295,), (1400766298,), (1400766301,), (1400766357,), (1400766340,), (1400766347,), (1400766355,), (1400766373,), (1400766375,), (1400766377,), (1400766381,), (1400766402,), (1400766412,), (1400766415,), (1400766441,), (1400766445,), (1400766449,), (1400766453,), (1400766477,), (1400766479,), (1400766481,), (1400766500,), (1400766504,), (1400766509,), (1400766515,), (1400766519,), (1400766521,), (1400766544,), (1400766548,), (1400766551,), (1400766567,), (1400766569,), (1400766571,), (1400766574,), (1400766601,), (1400766604,), (1400766607,), (1400766610,), (1400766632,), (1400766636,), (1400766640,), (1400766644,), (1400766648,), (1400766651,), (1400766654,), (1400766670,), (1400766673,), (1400766676,), (1400766678,), (1400766681,), (1400766684,), (1400766692,), (1400766695,), (1400766698,), (1400766702,), (1400766738,), (1400766741,), (1400766744,), (1400766748,), (1400766752,), (1400766756,), (1400766923,), (1400766958,), (1400766989,), (1400767018,), (1400767143,), (1400767124,), (1400767136,), (1400767140,), (1400767157,), (1400767184,), (1400767211,), (1400767240,), (1400767268,), (1400767486,), (1400768100,), (1400768152,), (1400768180,), (1400768206,), (1400768228,), (1400768428,), (1400768456,), (1400768482,), (1400768529,), (1400768558,), (1400768594,), (1400768660,), (1400768669,), (1400768679,), (1400768706,), (1400768782,), (1400768830,), (1400768898,), (1400768964,), (1400769266,), (1400769304,), (1400769344,), (1400769385,), (1400769568,), (1400769571,), (1400769574,), (1400769617,), (1400769668,), (1400769709,), (1400769846,), (1400769867,), (1400769871,), (1400769875,), (1400769879,), (1400769892,), (1400769896,), (1400769905,), (1400769915,), (1400769930,), (1400769941,), (1400769948,), (1400769960,), (1400769963,), (1400769966,), (1400769973,), (1400769974,), (1400769979,), (1400769993,), (1400769997,), (1400770000,), (1400770001,), (1400770002,), (1400770004,), (1400770007,), (1400770016,), (1400770019,), (1400770041,), (1400770050,), (1400770055,), (1400770058,), (1400770062,), (1400770066,), (1400770082,), (1400770092,), (1400770095,), (1400770097,), (1400770100,), (1400770104,), (1400770141,), (1400770121,), (1400770128,), (1400770134,), (1400770137,), (1400770155,), (1400770159,), (1400770161,), (1400770165,), (1400770168,), (1400770187,), (1400770190,), (1400770192,), (1400770197,), (1400770207,), (1400770216,), (1400770229,), (1400770237,), (1400770241,), (1400770246,), (1400770250,), (1400770266,), (1400770269,), (1400770272,), (1400770275,), (1400770279,), (1400770283,), (1400770300,), (1400770302,), (1400770304,), (1400770307,), (1400770310,), (1400770312,), (1400770319,), (1400770320,), (1400770321,), (1400770324,), (1400770343,), (1400770347,), (1400770351,), (1400770353,), (1400770366,), (1400770369,), (1400770372,), (1400770375,), (1400770378,), (1400770381,), (1400770407,), (1400770409,), (1400770411,), (1400770431,), (1400770433,), (1400770436,), (1400770440,), (1400770444,), (1400770469,), (1400770472,), (1400770474,), (1400770476,), (1400770479,), (1400770500,), (1400770503,), (1400770507,), (1400770512,), (1400770524,), (1400770549,), (1400770553,), (1400770555,), (1400770557,), (1400770559,), (1400770667,), (1400770660,), (1400770661,), (1400770665,), (1400770709,), (1400770734,), (1400770737,), (1400770776,), (1400770805,), (1400770807,), (1400770809,), (1400770812,), (1400770815,), (1400770833,), (1400770837,), (1400770840,), (1400770843,), (1400770846,), (1400770864,), (1400770869,), (1400770877,), (1400770880,), (1400770896,), (1400770900,), (1400770902,), (1400770904,), (1400770906,), (1400770908,), (1400770921,), (1400770932,), (1400770938,), (1400770946,), (1400770952,), (1400770968,), (1400770972,), (1400770975,), (1400770977,), (1400770979,), (1400771002,), (1400771009,), (1400771010,), (1400771011,), (1400771014,), (1400771017,), (1400771032,), (1400771036,), (1400771040,), (1400771045,), (1400771049,), (1400771052,), (1400771056,), (1400771057,), (1400771058,), (1400771064,), (1400771090,), (1400771081,), (1400771083,), (1400771084,), (1400771085,), (1400771087,), (1400771099,), (1400771103,), (1400771105,), (1400771107,), (1400771109,), (1400771137,), (1400771139,), (1400771141,), (1400771144,), (1400771146,), (1400771148,), (1400771166,), (1400771168,), (1400771170,), (1400771173,), (1400771176,), (1400771188,), (1400771200,), (1400771209,), (1400771219,), (1400771239,), (1400771243,), (1400771245,), (1400771247,), (1400771249,), (1400771251,), (1400771279,), (1400771281,), (1400771283,), (1400771286,), (1400771290,), (1400771309,), (1400771315,), (1400771318,), (1400771345,), (1400771351,), (1400771352,), (1400771353,), (1400771375,), (1400771378,), (1400771382,), (1400771386,), (1400771391,), (1400771393,), (1400771402,), (1400771403,), (1400771404,), (1400771424,), (1400771428,), (1400771432,), (1400771434,), (1400771435,), (1400771436,), (1400771450,), (1400771454,), (1400771481,), (1400771489,), (1400771493,), (1400771496,), (1400771499,), (1400771502,), (1400771517,), (1400771523,), (1400771527,), (1400771532,), (1400771536,), (1400771540,), (1400771563,), (1400771566,), (1400771569,), (1400771577,), (1400771582,), (1400771584,), (1400771585,), (1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,), (1400772093,), (1400772095,), (1400772098,), (1400772101,), (1400772105,), (1400772110,), (1400772154,), (1400772140,), (1400772145,), (1400772148,), (1400772151,), (1400772168,), (1400772171,), (1400772174,), (1400772177,), (1400772179,), (1400772180,), (1400772205,), (1400772207,), (1400772209,), (1400772212,), (1400772216,), (1400772238,), (1400772242,), (1400772246,), (1400772250,), (1400772280,), (1400772284,), (1400772288,), (1400772291,), (1400772311,), (1400772314,), (1400772317,), (1400772321,), (1400772324,), (1400772327,), (1400772338,), (1400772340,), (1400772344,), (1400772354,), (1400772357,), (1400772360,), (1400772362,), (1400772363,), (1400772367,), (1400772381,), (1400772385,), (1400772387,), (1400772419,), (1400772425,), (1400772427,), (1400772430,), (1400772434,), (1400772456,), (1400772460,), (1400772465,), (1400772470,), (1400772476,), (1400772510,), (1400772513,), (1400772516,), (1400772519,), (1400772539,), (1400772542,), (1400772545,), (1400772580,), (1400772584,), (1400772586,), (1400772590,), (1400772594,), (1400772613,), (1400772616,), (1400772618,), (1400772620,), (1400772622,), (1400772647,), (1400772650,), (1400772654,), (1400772697,), (1400772700,), (1400772709,), (1400772712,), (1400772685,), (1400772689,), (1400772692,), (1400772695,), (1400772719,), (1400772721,), (1400772723,), (1400772726,), (1400772729,), (1400772758,), (1400772761,), (1400772764,), (1400772768,), (1400772771,), (1400772788,), (1400772790,), (1400772794,), (1400772798,), (1400772820,), (1400772822,), (1400772824,), (1400772826,), (1400772829,), (1400772863,), (1400772866,), (1400772868,), (1400772894,), (1400772941,), (1400772947,), (1400772950,), (1400772968,), (1400772970,), (1400772972,), (1400772996,), (1400773000,), (1400773003,), (1400773007,), (1400773033,), (1400773035,), (1400773036,), (1400773126,), (1400773128,), (1400773151,), (1400773154,), (1400773194,), (1400773195,), (1400773197,), (1400773199,), (1400773208,), (1400773190,), (1400773193,), (1400773217,), (1400773219,), (1400773222,), (1400773226,), (1400773252,), (1400773255,), (1400773258,), (1400773261,), (1400773264,), (1400773268,), (1400773290,), (1400773294,), (1400773297,), (1400773325,), (1400773328,), (1400773330,), (1400773332,), (1400773335,), (1400773352,), (1400773355,), (1400773357,), (1400773360,), (1400773363,), (1400773389,), (1400773390,), (1400773393,), (1400773397,), (1400773417,), (1400773420,), (1400773422,), (1400773425,), (1400773430,), (1400773432,), (1400773455,), (1400773458,), (1400773462,), (1400773466,), (1400773470,), (1400773501,), (1400773503,), (1400773505,), (1400773506,), (1400773507,), (1400773510,), (1400773521,), (1400773524,), (1400773527,), (1400773529,), (1400773531,), (1400773535,), (1400773539,), (1400773543,), (1400773556,), (1400773559,), (1400773564,), (1400773599,), (1400773602,), (1400773605,), (1400773608,), (1400773610,), (1400773699,), (1400773735,), (1400773768,), (1400773802,), (1400773946,), (1400773947,), (1400773979,), (1400773986,), (1400774012,), (1400774020,), (1400774048,), (1400774067,), (1400774413,), (1400774291,), (1400774323,), (1400774359,), (1400774395,), (1400774440,), (1400774539,), (1400774651,), (1400774758,), (1400774804,), (1400775609,), (1400775692,), (1400775803,), (1400776544,), (1400776579,), (1400776613,), (1400776946,), (1400776978,), (1400777011,), (1400778135,), (1400778196,), (1400778250,), (1400778830,), (1400778864,), (1400778906,), (1400779000,), (1400779073,), (1400779536,), (1400780050,), (1400780200,), (1400780300,), (1400780879,), (1400780919,), (1400780984,), (1400781053,), (1400781125,), (1400781528,), (1400781562,), (1400783863,), (1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,), (1400784245,), (1400784248,), (1400784253,), (1400784258,), (1400784264,), (1400784268,), (1400784279,), (1400784281,), (1400784307,), (1400784288,), (1400784291,), (1400784295,), (1400784301,), (1400784304,), (1400784317,), (1400784321,), (1400784354,), (1400784418,), (1400784443,), (1400784446,), (1400784488,), (1400784495,), (1400784500,), (1400784525,), (1400784592,), (1400784598,), (1400784604,), (1400784610,), (1400784617,), (1400784639,), (1400784642,), (1400784644,), (1400784646,), (1400784649,), (1400784652,), (1400784673,), (1400784676,), (1400784679,), (1400784682,), (1400784704,), (1400784705,), (1400784707,), (1400784710,), (1400784714,), (1400784718,), (1400784746,), (1400784751,), (1400784754,), (1400784758,), (1400784782,), (1400784784,), (1400784786,), (1400784788,), (1400784791,), (1400784794,), (1400784823,), (1400784834,), (1400784840,), (1400784843,), (1400784916,), (1400784868,), (1400784899,), (1400784902,), (1400784906,), (1400784909,), (1400784932,), (1400784935,), (1400784937,), (1400784939,), (1400784960,), (1400784963,), (1400784964,), (1400784965,), (1400784967,), (1400784969,), (1400785005,), (1400785007,), (1400785010,), (1400785014,), (1400785034,), (1400785038,), (1400785042,), (1400785046,), (1400785048,), (1400785051,), (1400785059,), (1400785063,), (1400785067,), (1400785075,), (1400785088,), (1400785089,), (1400785091,), (1400785094,), (1400785113,), (1400785114,), (1400785116,), (1400785119,), (1400785123,), (1400785128,), (1400785154,), (1400785158,), (1400785162,), (1400785166,), (1400785223,), (1400785255,), (1400785257,), (1400785260,), (1400785298,), (1400785300,), (1400785301,), (1400785303,), (1400785306,), (1400785309,), (1400785328,), (1400785331,), (1400785335,), (1400785361,), (1400785365,), (1400785368,), (1400785371,), (1400785374,), (1400785388,), (1400785390,), (1400785393,), (1400785396,), (1400785400,), (1400785445,), (1400785435,), (1400785438,), (1400785442,), (1400785467,), (1400785469,), (1400785473,), (1400785477,), (1400785485,), (1400785489,), (1400785508,), (1400785510,), (1400785511,), (1400785513,), (1400785516,), (1400785534,), (1400785547,), (1400785551,), (1400785555,), (1400785558,), (1400785585,), (1400785588,), (1400785590,), (1400785592,), (1400785595,), (1400785618,), (1400785620,), (1400785622,), (1400785624,), (1400785626,), (1400785628,), (1400785645,), (1400785649,), (1400785654,), (1400785656,), (1400785673,), (1400785675,), (1400785678,), (1400785681,), (1400785684,), (1400785704,), (1400785708,), (1400785711,), (1400785714,), (1400785717,), (1400785719,), (1400785758,), (1400785761,), (1400785762,), (1400785763,), (1400785785,), (1400785787,), (1400785790,), (1400785794,), (1400785798,), (1400785801,), (1400785828,), (1400785831,), (1400785840,), (1400785850,), (1400785883,), (1400785887,), (1400785890,), (1400785893,), (1400785897,), (1400785916,), (1400785924,), (1400785927,), (1400785932,), (1400785935,), (1400785955,), (1400785958,), (1400785961,), (1400785971,), (1400785974,), (1400785976,), (1400785978,), (1400785982,), (1400786154,), (1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24122025': {'nb_upload': 47, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29677291]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032] map_info['map_portfolio_photo'] : {29677291: [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032, 1400791976, 1400791958, 1400791946, 1400791939, 1400791918, 1400791650, 1400791611, 1400791566, 1400791281, 1400791259, 1400791257, 1400791246, 1400791021, 1400790406, 1400789884, 1400789294, 1400789252, 1400789215, 1400789177, 1400789143, 1400787926, 1400787824, 1400787719, 1400787072, 1400787027, 1400786963, 1400786890, 1400786825, 1400786749, 1400786544, 1400786505, 1400786470, 1400786434, 1400786114, 1400786079, 1400786038, 1400786001, 1400785994]} final : True mtd_id 4302 list_pids : [1400792064, 1400792061, 1400792058, 1400792044, 1400792042, 1400792039, 1400792037, 1400792035, 1400792032] Looping around the photos to save general results len do output : 1 /29677291Didn'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, '4267259') ('4302', '29677291', '1400792064', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792061', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792058', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792044', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792042', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792039', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792037', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792035', None, None, None, None, None, '4267259') ('4302', None, None, None, None, None, None, None, '4267259') ('4302', '29677291', '1400792032', None, None, None, None, None, '4267259') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '29677291', 'None', None, None, None, None, '4267259'), ('4302', '29677291', '1400792064', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792061', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792058', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792044', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792042', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792039', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792037', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792035', None, None, None, None, None, '4267259'), ('4302', '29677291', '1400792032', None, None, None, None, None, '4267259')] time used for this insertion : 0.015282630920410156 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.133422613143921 time spend to save output : 0.015482664108276367 total time spend for step 5 : 2.1489052772521973 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 (4267259) 2.21user 2.57system 0:13.67elapsed 34%CPU (0avgtext+0avgdata 166908maxresident)k 1072inputs+10824outputs (11major+76113minor)pagefaults 0swaps