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 : 2398988 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 (3650688) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3650688) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430560 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3650688'] with mtr_portfolio_ids : ['26430560'] and first list_photo_ids : [] new path : /proc/2398988/ Name: python3 Umask: 0002 State: R (running) Tgid: 2398988 Ngid: 0 Pid: 2398988 PPid: 2398987 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2398988 NSpid: 2398988 NSpgid: 2397582 NSsid: 2397582 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98460 kB VmRSS: 98460 kB RssAnon: 60168 kB RssFile: 38292 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2398988', 'Ngid': '0', 'Pid': '2398988', 'PPid': '2398987', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2398988', 'NSpid': '2398988', 'NSpgid': '2397582', 'NSsid': '2397582', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98460 kB', 'VmRSS': '98460 kB', 'RssAnon': '60168 kB', 'RssFile': '38292 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '2398988', '1107252', '0', '1107252', '866004', '98460', b'', 'marlene', '3650688') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26430560) 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 (3650688 ) ) 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 (26430560) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1380797512, 'portfolio_id': 26430560}, {'photo_id': 1380797275, 'portfolio_id': 26430560}, {'photo_id': 1380797273, 'portfolio_id': 26430560}, {'photo_id': 1380797271, 'portfolio_id': 26430560}, {'photo_id': 1380797269, 'portfolio_id': 26430560}, {'photo_id': 1380797267, 'portfolio_id': 26430560}, {'photo_id': 1380797215, 'portfolio_id': 26430560}, {'photo_id': 1380797213, 'portfolio_id': 26430560}, {'photo_id': 1380797211, 'portfolio_id': 26430560}, {'photo_id': 1380797137, 'portfolio_id': 26430560}, {'photo_id': 1380797136, 'portfolio_id': 26430560}, {'photo_id': 1380797135, 'portfolio_id': 26430560}, {'photo_id': 1380797134, 'portfolio_id': 26430560}, {'photo_id': 1380797132, 'portfolio_id': 26430560}, {'photo_id': 1380797107, 'portfolio_id': 26430560}, {'photo_id': 1380797106, 'portfolio_id': 26430560}, {'photo_id': 1380797105, 'portfolio_id': 26430560}, {'photo_id': 1380797101, 'portfolio_id': 26430560}, {'photo_id': 1380796924, 'portfolio_id': 26430560}, {'photo_id': 1380796923, 'portfolio_id': 26430560}, {'photo_id': 1380796922, 'portfolio_id': 26430560}, {'photo_id': 1380796921, 'portfolio_id': 26430560}, {'photo_id': 1380796920, 'portfolio_id': 26430560}, {'photo_id': 1380796919, 'portfolio_id': 26430560}, {'photo_id': 1380796852, 'portfolio_id': 26430560}, {'photo_id': 1380796851, 'portfolio_id': 26430560}, {'photo_id': 1380796850, 'portfolio_id': 26430560}, {'photo_id': 1380796849, 'portfolio_id': 26430560}, {'photo_id': 1380796848, 'portfolio_id': 26430560}, {'photo_id': 1380796816, 'portfolio_id': 26430560}, {'photo_id': 1380796815, 'portfolio_id': 26430560}, {'photo_id': 1380796814, 'portfolio_id': 26430560}, {'photo_id': 1380796761, 'portfolio_id': 26430560}, {'photo_id': 1380796759, 'portfolio_id': 26430560}, {'photo_id': 1380796757, 'portfolio_id': 26430560}, {'photo_id': 1380796755, 'portfolio_id': 26430560}, {'photo_id': 1380796753, 'portfolio_id': 26430560}, {'photo_id': 1380796751, 'portfolio_id': 26430560}, {'photo_id': 1380796619, 'portfolio_id': 26430560}, {'photo_id': 1380796561, 'portfolio_id': 26430560}, {'photo_id': 1380796559, 'portfolio_id': 26430560}, {'photo_id': 1380796556, 'portfolio_id': 26430560}, {'photo_id': 1380796554, 'portfolio_id': 26430560}, {'photo_id': 1380796552, 'portfolio_id': 26430560}, {'photo_id': 1380796550, 'portfolio_id': 26430560}, {'photo_id': 1380796413, 'portfolio_id': 26430560}, {'photo_id': 1380796412, 'portfolio_id': 26430560}, {'photo_id': 1380796411, 'portfolio_id': 26430560}, {'photo_id': 1380796233, 'portfolio_id': 26430560}, {'photo_id': 1380796056, 'portfolio_id': 26430560}, {'photo_id': 1380795658, 'portfolio_id': 26430560}, {'photo_id': 1380795640, 'portfolio_id': 26430560}, {'photo_id': 1380795639, 'portfolio_id': 26430560}, {'photo_id': 1380795638, 'portfolio_id': 26430560}] map_portfolio_id_photo_id: {26430560: [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267, 1380797215, 1380797213, 1380797211, 1380797137, 1380797136, 1380797135, 1380797134, 1380797132, 1380797107, 1380797106, 1380797105, 1380797101, 1380796924, 1380796923, 1380796922, 1380796921, 1380796920, 1380796919, 1380796852, 1380796851, 1380796850, 1380796849, 1380796848, 1380796816, 1380796815, 1380796814, 1380796761, 1380796759, 1380796757, 1380796755, 1380796753, 1380796751, 1380796619, 1380796561, 1380796559, 1380796556, 1380796554, 1380796552, 1380796550, 1380796413, 1380796412, 1380796411, 1380796233, 1380796056, 1380795658, 1380795640, 1380795639, 1380795638]} ##### 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.014444589614868164 #### 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 Tue Sep 2 09:46:57 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 (26430560) 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 : 26430560 get user id for portfolio 26430560 get sub ptf for main ptf 26430560, type 3726 and hashtags ['cartonnette', 'Carton_gris', 'metal', 'papier', 'Teint_Dans_La_Masse', 'flou', 'environnement', 'autre_refus', 'plastique', 'Carton_brun', 'mal_croppe', 'kraft'] 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`=26430560 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','metal','papier','Teint_Dans_La_Masse','flou','environnement','autre_refus','plastique','Carton_brun','mal_croppe','kraft')) 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`=26430560 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','metal','papier','Teint_Dans_La_Masse','flou','environnement','autre_refus','plastique','Carton_brun','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26430560, 'sub_port_id': 26430574, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787196, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 26430560, 'sub_port_id': 26430575, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787197, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'autre_refus': {'main_port_id': 26430560, 'sub_port_id': 26430576, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787198, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'metal': {'main_port_id': 26430560, 'sub_port_id': 26430577, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787199, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'Carton_brun': {'main_port_id': 26430560, 'sub_port_id': 26430578, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787200, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'flou': {'main_port_id': 26430560, 'sub_port_id': 26430579, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787201, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'kraft': {'main_port_id': 26430560, 'sub_port_id': 26430580, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787202, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'Carton_gris': {'main_port_id': 26430560, 'sub_port_id': 26430581, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787203, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'cartonnette': {'main_port_id': 26430560, 'sub_port_id': 26430582, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787204, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'papier': {'main_port_id': 26430560, 'sub_port_id': 26430583, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787205, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'environnement': {'main_port_id': 26430560, 'sub_port_id': 26430584, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787206, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}, 'plastique': {'main_port_id': 26430560, 'sub_port_id': 26430585, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787207, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26430574 , 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=26430560 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 (26430574) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430575 , 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=26430560 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 (26430575) result : ((1380795778,), (1380796839,), (1380796840,), (1380796941,), (1380796943,), (1380796999,), (1380797184,), (1380797185,), (1380797478,), (1380797480,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430576 , 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=26430560 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 (26430576) result : ((1380796842,), (1380796944,), (1380797157,), (1380797186,), (1380797187,), (1380797368,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430577 , 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=26430560 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 (26430577) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430578 , 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=26430560 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 (26430578) result : ((1380796680,), (1380796682,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430579 , 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=26430560 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 (26430579) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430580 , 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=26430560 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 (26430580) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430581 , 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=26430560 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 (26430581) result : ((1380795791,), (1380795793,), (1380796946,), (1380796947,), (1380796948,), (1380797188,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430582 , 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=26430560 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 (26430582) result : ((1380795802,), (1380795804,), (1380796843,), (1380796844,), (1380796967,), (1380796969,), (1380796971,), (1380796973,), (1380796975,), (1380797008,), (1380797010,), (1380797158,), (1380797189,), (1380797190,), (1380797191,), (1380797488,), (1380797490,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430583 , 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=26430560 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 (26430583) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430584 , 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=26430560 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 (26430584) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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 26430585 , 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=26430560 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 (26430585) result : ((1380797160,), (1380797192,), (1380797498,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26430560) result : ((1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) 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`=26430560 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','metal','papier','Teint_Dans_La_Masse','flou','environnement','autre_refus','plastique','Carton_brun','mal_croppe','kraft')) 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`=26430560 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','metal','papier','Teint_Dans_La_Masse','flou','environnement','autre_refus','plastique','Carton_brun','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26430560, 'sub_port_id': 26430590, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787208, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 26430560, 'sub_port_id': 26430591, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787209, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'autre_refus': {'main_port_id': 26430560, 'sub_port_id': 26430592, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787210, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'metal': {'main_port_id': 26430560, 'sub_port_id': 26430594, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787211, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'Carton_brun': {'main_port_id': 26430560, 'sub_port_id': 26430595, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787212, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'flou': {'main_port_id': 26430560, 'sub_port_id': 26430596, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787213, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'kraft': {'main_port_id': 26430560, 'sub_port_id': 26430597, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787214, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'Carton_gris': {'main_port_id': 26430560, 'sub_port_id': 26430599, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787215, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'cartonnette': {'main_port_id': 26430560, 'sub_port_id': 26430600, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787216, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'papier': {'main_port_id': 26430560, 'sub_port_id': 26430601, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787217, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'environnement': {'main_port_id': 26430560, 'sub_port_id': 26430602, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787218, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}, 'plastique': {'main_port_id': 26430560, 'sub_port_id': 26430604, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17787219, 'last_updated_at': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 9, 33, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430590,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430591,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430575 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430592,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430576 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430594,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430577 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430595,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430578 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430596,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430579 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430597,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430580 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430599,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430581 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430582 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430583 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430602,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430584 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26430604,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26430585 lien utilise dans velours : https://marlene.fotonower.com/velours/26430590,26430591,26430592,26430594,26430595,26430596,26430597,26430599,26430600,26430601,26430602,26430604?tags=mal_croppe,Teint_Dans_La_Masse,autre_refus,metal,Carton_brun,flou,kraft,Carton_gris,cartonnette,papier,environnement,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26430560]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267] map_info['map_portfolio_photo'] : {26430560: [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267, 1380797215, 1380797213, 1380797211, 1380797137, 1380797136, 1380797135, 1380797134, 1380797132, 1380797107, 1380797106, 1380797105, 1380797101, 1380796924, 1380796923, 1380796922, 1380796921, 1380796920, 1380796919, 1380796852, 1380796851, 1380796850, 1380796849, 1380796848, 1380796816, 1380796815, 1380796814, 1380796761, 1380796759, 1380796757, 1380796755, 1380796753, 1380796751, 1380796619, 1380796561, 1380796559, 1380796556, 1380796554, 1380796552, 1380796550, 1380796413, 1380796412, 1380796411, 1380796233, 1380796056, 1380795658, 1380795640, 1380795639, 1380795638]} final : False mtd_id 4302 list_pids : [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267] Looping around the photos to save general results len do output : 1 /26430560. 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, '3650688') ('4302', '26430560', '1380797512', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797275', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797273', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797271', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797269', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797267', None, None, None, None, None, '3650688') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26430560', "{'mal_croppe': 26430574, 'Teint_Dans_La_Masse': 26430575, 'autre_refus': 26430576, 'metal': 26430577, 'Carton_brun': 26430578, 'flou': 26430579, 'kraft': 26430580, 'Carton_gris': 26430581, 'cartonnette': 26430582, 'papier': 26430583, 'environnement': 26430584, 'plastique': 26430585}", None, None, None, None, '3650688'), ('4302', '26430560', '1380797512', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797275', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797273', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797271', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797269', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797267', None, None, None, None, None, '3650688')] time used for this insertion : 0.01626729965209961 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5813124179840088 time spend to save output : 0.01651597023010254 total time spend for step 1 : 1.5978283882141113 step2:final Tue Sep 2 09:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26430560) 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 26430560 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1380795640,1380795639,1380795638,1380796056,1380795658,1380796233,1380796619,1380796413,1380796561,1380796412,1380796559,1380796411,1380796556,1380796554,1380796552,1380796550,1380796761,1380796759,1380796757,1380796755,1380796753,1380796751,1380796816,1380796815,1380796814,1380796852,1380796851,1380796850,1380796849,1380796848,1380796924,1380796923,1380796922,1380796921,1380796920,1380796919,1380797107,1380797106,1380797105,1380797137,1380797101,1380797136,1380797135,1380797134,1380797132,1380797215,1380797213,1380797211,1380797275,1380797273,1380797271,1380797269,1380797267,1380797512); 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([26430560]) Inside saveOutput : final : False verbose : True original output for save of step final : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ('0.06540951699783291',)} new output for save of step final : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ('0.06540951699783291',)} [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267] map_info['map_portfolio_photo'] : {26430560: [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267, 1380797215, 1380797213, 1380797211, 1380797137, 1380797136, 1380797135, 1380797134, 1380797132, 1380797107, 1380797106, 1380797105, 1380797101, 1380796924, 1380796923, 1380796922, 1380796921, 1380796920, 1380796919, 1380796852, 1380796851, 1380796850, 1380796849, 1380796848, 1380796816, 1380796815, 1380796814, 1380796761, 1380796759, 1380796757, 1380796755, 1380796753, 1380796751, 1380796619, 1380796561, 1380796559, 1380796556, 1380796554, 1380796552, 1380796550, 1380796413, 1380796412, 1380796411, 1380796233, 1380796056, 1380795658, 1380795640, 1380795639, 1380795638]} final : False mtd_id 4302 list_pids : [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267] Looping around the photos to save general results len do output : 6 /1380797512.Didn't retrieve data . /1380797275.Didn't retrieve data . /1380797273.Didn't retrieve data . /1380797271.Didn't retrieve data . /1380797269.Didn't retrieve data . /1380797267.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, '3650688') ('4302', '26430560', '1380797512', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797275', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797273', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797271', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797269', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797267', None, None, None, None, None, '3650688') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26430560', '1380797512', '0.06540951699783291', None, None, None, None, '3650688'), ('4302', '26430560', '1380797275', '0.06540951699783291', None, None, None, None, '3650688'), ('4302', '26430560', '1380797273', '0.06540951699783291', None, None, None, None, '3650688'), ('4302', '26430560', '1380797271', '0.06540951699783291', None, None, None, None, '3650688'), ('4302', '26430560', '1380797269', '0.06540951699783291', None, None, None, None, '3650688'), ('4302', '26430560', '1380797267', '0.06540951699783291', None, None, None, None, '3650688')] time used for this insertion : 0.015864133834838867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07512426376342773 time spend to save output : 0.01624011993408203 total time spend for step 2 : 0.09136438369750977 step3:velours_tree Tue Sep 2 09:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26430560: [{'mal_croppe': 26430574, 'Teint_Dans_La_Masse': 26430575, 'autre_refus': 26430576, 'metal': 26430577, 'Carton_brun': 26430578, 'flou': 26430579, 'kraft': 26430580, 'Carton_gris': 26430581, 'cartonnette': 26430582, 'papier': 26430583, 'environnement': 26430584, 'plastique': 26430585}]} input_args_next_step : {26430560: ()} output_args : {26430560: [{'mal_croppe': 26430574, 'Teint_Dans_La_Masse': 26430575, 'autre_refus': 26430576, 'metal': 26430577, 'Carton_brun': 26430578, 'flou': 26430579, 'kraft': 26430580, 'Carton_gris': 26430581, 'cartonnette': 26430582, 'papier': 26430583, 'environnement': 26430584, 'plastique': 26430585}]} args : 26430560 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 : ({'mal_croppe': 26430574, 'Teint_Dans_La_Masse': 26430575, 'autre_refus': 26430576, 'metal': 26430577, 'Carton_brun': 26430578, 'flou': 26430579, 'kraft': 26430580, 'Carton_gris': 26430581, 'cartonnette': 26430582, 'papier': 26430583, 'environnement': 26430584, 'plastique': 26430585},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26430560) 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([26430560]) 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.35300159454345703 time spend to save output : 5.269050598144531e-05 total time spend for step 3 : 0.3530542850494385 step4:send_mail_cod Tue Sep 2 09:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ('0.06540951699783291',)} input_args_next_step : {1380797512: ()} output_args : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ('0.06540951699783291',)} args : 1380797512 depend.output_id : 0 input_args_next_step : {1380797512: ('0.06540951699783291',), 1380797275: ()} output_args : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ('0.06540951699783291',)} args : 1380797275 depend.output_id : 0 input_args_next_step : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ()} output_args : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ('0.06540951699783291',)} args : 1380797273 depend.output_id : 0 input_args_next_step : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ()} output_args : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ('0.06540951699783291',)} args : 1380797271 depend.output_id : 0 input_args_next_step : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ()} output_args : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ('0.06540951699783291',)} args : 1380797269 depend.output_id : 0 input_args_next_step : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ()} output_args : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ('0.06540951699783291',)} args : 1380797267 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 : {26430560: [{'mal_croppe': 26430574, 'Teint_Dans_La_Masse': 26430575, 'autre_refus': 26430576, 'metal': 26430577, 'Carton_brun': 26430578, 'flou': 26430579, 'kraft': 26430580, 'Carton_gris': 26430581, 'cartonnette': 26430582, 'papier': 26430583, 'environnement': 26430584, 'plastique': 26430585}]} input_args_next_step : {1380797512: ('0.06540951699783291',), 1380797275: ('0.06540951699783291',), 1380797273: ('0.06540951699783291',), 1380797271: ('0.06540951699783291',), 1380797269: ('0.06540951699783291',), 1380797267: ('0.06540951699783291',), 26430560: ()} output_args : {26430560: [{'mal_croppe': 26430574, 'Teint_Dans_La_Masse': 26430575, 'autre_refus': 26430576, 'metal': 26430577, 'Carton_brun': 26430578, 'flou': 26430579, 'kraft': 26430580, 'Carton_gris': 26430581, 'cartonnette': 26430582, 'papier': 26430583, 'environnement': 26430584, 'plastique': 26430585}]} args : 26430560 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 :7, first value : ('0.06540951699783291',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26430560) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1380797512,1380797275,1380797273,1380797271,1380797269,1380797267) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1380797267 begin to download photo : 1380797271 begin to download photo : 1380797275 download finish for photo 1380797267 begin to download photo : 1380797269 download finish for photo 1380797271 begin to download photo : 1380797273 download finish for photo 1380797275 begin to download photo : 1380797512 download finish for photo 1380797273 download finish for photo 1380797269 download finish for photo 1380797512 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette264305741756799219/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P26430560_02-09-2025_09_46_59.pdf 26430574 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430574 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264305741756799219 26430576 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430576 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380796842: '1756798746_2765198_1380796755_a768a20bfc8183f46fcf719363637392_86502990_rle_crop_3940189548_0.png', 1380796944: '1756798864_2770782_1380796849_04eeb17e3f3d4887f79c39861f9cd631_61577016_rle_crop_3940189906_0.png', 1380797157: '1756798985_2777083_1380797101_7fbe48bdfe97a5979819882f76cf7e93_3512735_rle_crop_3940190745_0.png', 1380797186: '1756799006_2777589_1380796922_a3064cd60d6a67cd0f113c5039052c6b_93928783_rle_crop_3940191015_0.png', 1380797187: '1756799006_2777589_1380796920_899e77acca2cd583c2e2f64a2b785522_50198651_rle_crop_3940191036_0.png', 1380797368: '1756799104_2782466_1380797213_16785667f3c78715fdf1b976879ef526_12534977_rle_crop_3940191209_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/244fdc994993df391c179958059b3b2d_78202612.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/cc23117638dfa25ae49a98038daae485_35492868.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/74ef9c9d6c9161a6ea7b31d785b7aa43_51985145.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/8a06809537030afb80d47df0047af495_30830927.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/f7108774c3ca1c4d370609a63f934e55_29608808.png change filename to text .imagette264305761756799219/ imagette264305761756799219/1756798746_2765198_1380796755_a768a20bfc8183f46fcf719363637392_86502990_rle_crop_3940189548_0.png.png imagette264305761756799219/1756798985_2777083_1380797101_7fbe48bdfe97a5979819882f76cf7e93_3512735_rle_crop_3940190745_0.png.png imagette264305761756799219/1756799006_2777589_1380796920_899e77acca2cd583c2e2f64a2b785522_50198651_rle_crop_3940191036_0.png.png imagette264305761756799219/1756798864_2770782_1380796849_04eeb17e3f3d4887f79c39861f9cd631_61577016_rle_crop_3940189906_0.png.png imagette264305761756799219/1756799104_2782466_1380797213_16785667f3c78715fdf1b976879ef526_12534977_rle_crop_3940191209_0.png.png imagette264305761756799219/1756799006_2777589_1380796922_a3064cd60d6a67cd0f113c5039052c6b_93928783_rle_crop_3940191015_0.png.png imagette264305771756799219/ imagette264305791756799219/ imagette264305801756799219/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/6c00dfe6202afe865f908d747138810a_38137883.png imagette264305761756799219 26430577 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430577 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264305771756799219 26430579 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430579 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264305791756799219 26430580 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430580 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264305801756799219 26430582 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430582 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380796975: '1756798864_2770782_1380796848_84909e2424860ed84ec40d31265017a3_33883609_rle_crop_3940189935_0.png', 1380797490: '1756799125_2782905_1380797132_03a8851f7bd7d33fce1cd87d15850441_58973449_rle_crop_3940191447_0.png', 1380797488: '1756799125_2782905_1380797132_03a8851f7bd7d33fce1cd87d15850441_58973449_rle_crop_3940191445_0.png', 1380797191: '1756799006_2777589_1380796922_a3064cd60d6a67cd0f113c5039052c6b_93928783_rle_crop_3940191008_0.png', 1380797190: '1756799006_2777589_1380796922_a3064cd60d6a67cd0f113c5039052c6b_93928783_rle_crop_3940191010_0.png', 1380797189: '1756799006_2777589_1380796923_220d9a42c307d4909161e456b1a9d6f6_69552514_rle_crop_3940191002_0.png', 1380797158: '1756798985_2777083_1380797105_e04c6c45685acc8618a5fb285e5bcab5_22376708_rle_crop_3940190731_0.png', 1380797010: '1756798886_2771993_1380796816_49e7c3973de7ae6c0b3978b5ae782b2b_993523_rle_crop_3940189963_0.png', 1380797008: '1756798886_2771993_1380796816_49e7c3973de7ae6c0b3978b5ae782b2b_993523_rle_crop_3940189962_0.png', 1380795802: '1756798385_2753977_1380795639_982e75aa72d4c0d634a5e321e2178607_54810721_rle_crop_3940185077_0.png', 1380796973: '1756798864_2770782_1380796849_04eeb17e3f3d4887f79c39861f9cd631_61577016_rle_crop_3940189911_0.png', 1380796971: '1756798864_2770782_1380796850_db4338c3c6d15acf098360c35bb6cc77_22827823_rle_crop_3940189894_0.png', 1380796969: '1756798864_2770782_1380796850_db4338c3c6d15acf098360c35bb6cc77_22827823_rle_crop_3940189893_0.png', 1380796967: '1756798864_2770782_1380796851_bc5bf157d5a9ab304c474c6e92d6c463_54673555_rle_crop_3940189879_0.png', 1380796844: '1756798746_2765198_1380796755_a768a20bfc8183f46fcf719363637392_86502990_rle_crop_3940189550_0.png', 1380796843: '1756798746_2765198_1380796757_09c1ae1ddc82c3cf003a7fc69aa3ba93_54521363_rle_crop_3940189539_0.png', 1380795804: '1756798385_2753977_1380795639_982e75aa72d4c0d634a5e321e2178607_54810721_rle_crop_3940185074_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/8aff1034fce918bf3526fe4ffc369874_70779718.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/db6760b589557f21db9ead2131bcc513_15404007.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/11175fd2ec03f2b1f9f6abe16824c490_85023116.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/946f138c9f4b45bc3a95dbf208241681_78654942.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/f1a40c7e13a16001ccf28af757ee920d_94320932.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/10dc7a7f8ed922308405695fb09bec7c_74303951.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/183421acd84a2ed33c57487503a45f4e_99288169.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/e6ad271add393e0048d2aa635efe5c5f_84068491.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/ca146068d0c6b57914ba9ae2423e5601_96342195.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/6da127e05074de649f28c2b27ba83104_71384323.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/2438987e378abdb560e5bedf227bec03_2079694.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/589a2f5b80781d715e0cd625aa25e44d_99393536.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/9a9e4046595be32e792da52b8c542186_19302962.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/2e27a01f6ec70f677e6a9464842e6a4c_15888304.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/0e0be1b129b85ef23dcda3abe65ec1a0_99365420.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/338cf6e551136acd23afc991b7a3b9ee_59785389.png change filename to text .imagette264305821756799219/ imagette264305821756799219/1756798746_2765198_1380796755_a768a20bfc8183f46fcf719363637392_86502990_rle_crop_3940189550_0.png.png imagette264305821756799219/1756799006_2777589_1380796922_a3064cd60d6a67cd0f113c5039052c6b_93928783_rle_crop_3940191010_0.png.png imagette264305821756799219/1756798864_2770782_1380796850_db4338c3c6d15acf098360c35bb6cc77_22827823_rle_crop_3940189893_0.png.png imagette264305821756799219/1756798886_2771993_1380796816_49e7c3973de7ae6c0b3978b5ae782b2b_993523_rle_crop_3940189963_0.png.png imagette264305821756799219/1756799006_2777589_1380796922_a3064cd60d6a67cd0f113c5039052c6b_93928783_rle_crop_3940191008_0.png.png imagette264305821756799219/1756798385_2753977_1380795639_982e75aa72d4c0d634a5e321e2178607_54810721_rle_crop_3940185074_0.png.png imagette264305821756799219/1756798385_2753977_1380795639_982e75aa72d4c0d634a5e321e2178607_54810721_rle_crop_3940185077_0.png.png imagette264305821756799219/1756798864_2770782_1380796851_bc5bf157d5a9ab304c474c6e92d6c463_54673555_rle_crop_3940189879_0.png.png imagette264305821756799219/1756799125_2782905_1380797132_03a8851f7bd7d33fce1cd87d15850441_58973449_rle_crop_3940191447_0.png.png imagette264305821756799219/1756798985_2777083_1380797105_e04c6c45685acc8618a5fb285e5bcab5_22376708_rle_crop_3940190731_0.png.png imagette264305821756799219/1756798864_2770782_1380796848_84909e2424860ed84ec40d31265017a3_33883609_rle_crop_3940189935_0.png.png imagette264305821756799219/1756798864_2770782_1380796850_db4338c3c6d15acf098360c35bb6cc77_22827823_rle_crop_3940189894_0.png.png imagette264305821756799219/1756798886_2771993_1380796816_49e7c3973de7ae6c0b3978b5ae782b2b_993523_rle_crop_3940189962_0.png.png imagette264305821756799219/1756798864_2770782_1380796849_04eeb17e3f3d4887f79c39861f9cd631_61577016_rle_crop_3940189911_0.png.png imagette264305821756799219/1756799125_2782905_1380797132_03a8851f7bd7d33fce1cd87d15850441_58973449_rle_crop_3940191445_0.png.png imagette264305821756799219/1756798746_2765198_1380796757_09c1ae1ddc82c3cf003a7fc69aa3ba93_54521363_rle_crop_3940189539_0.png.png imagette264305821756799219/1756799006_2777589_1380796923_220d9a42c307d4909161e456b1a9d6f6_69552514_rle_crop_3940191002_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/d2705923a4b4f647aef719e552980619_99884713.png imagette264305821756799219 26430585 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380797160: '1756798985_2777083_1380797101_7fbe48bdfe97a5979819882f76cf7e93_3512735_rle_crop_3940190749_0.png', 1380797192: '1756799006_2777589_1380796922_a3064cd60d6a67cd0f113c5039052c6b_93928783_rle_crop_3940191019_0.png', 1380797498: '1756799125_2782905_1380797132_03a8851f7bd7d33fce1cd87d15850441_58973449_rle_crop_3940191444_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/dd948502c2d4907fd8768984d0de598e_32813424.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/728c227f4b8e37ba4b5216d906aa77a7_68528579.png change filename to text .imagette264305851756799220/ imagette264305851756799220/1756799125_2782905_1380797132_03a8851f7bd7d33fce1cd87d15850441_58973449_rle_crop_3940191444_0.png.png imagette264305851756799220/1756798985_2777083_1380797101_7fbe48bdfe97a5979819882f76cf7e93_3512735_rle_crop_3940190749_0.png.png imagette264305851756799220/1756799006_2777589_1380796922_a3064cd60d6a67cd0f113c5039052c6b_93928783_rle_crop_3940191019_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/6ee7344e4885a8bd1e89fb620d60f3f7_11458417.png imagette264305851756799220 26430575 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380795778: '1756798385_2753977_1380795639_982e75aa72d4c0d634a5e321e2178607_54810721_rle_crop_3940185080_0.png', 1380796839: '1756798746_2765198_1380796753_1af91964105ff7db6158d5ab8c7d21dc_22487493_rle_crop_3940189575_0.png', 1380796840: '1756798746_2765198_1380796751_b064e1d66da2ffd2000820f74126bbe4_10912547_rle_crop_3940189584_0.png', 1380796941: '1756798864_2770782_1380796851_bc5bf157d5a9ab304c474c6e92d6c463_54673555_rle_crop_3940189882_0.png', 1380796943: '1756798864_2770782_1380796848_84909e2424860ed84ec40d31265017a3_33883609_rle_crop_3940189934_0.png', 1380796999: '1756798886_2771993_1380796816_49e7c3973de7ae6c0b3978b5ae782b2b_993523_rle_crop_3940189965_0.png', 1380797184: '1756799006_2777589_1380796921_b5e7e469f318ae084bbbc3d51d0b9adf_74331417_rle_crop_3940191027_0.png', 1380797185: '1756799006_2777589_1380796919_8893141e9a5dbf49fc497556e32a1616_60177035_rle_crop_3940191055_0.png', 1380797478: '1756799125_2782905_1380797136_14f9caea93232b295d8a6873f823d0bc_32505876_rle_crop_3940191399_0.png', 1380797480: '1756799125_2782905_1380797134_8e6f862b99435d1c40abc92e2969193f_98052316_rle_crop_3940191433_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/289162e7ea13e29049420f214275a35d_2500975.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/2070ff7a0f791904aa5accf6e4b9a3cd_83107042.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/55197a368dc1b3bb69f6e15be9b73d73_22250204.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/c0e0b9428b0c6354071b85a70e14ca5e_4178357.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/d855aa5dc9311369dd9d73a4dd074b03_16149675.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/3d01ff509403a4c91e02d16fd1e691bb_84712225.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/d3b68b6ba79b6a12e7cde58639081e2c_55092285.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/95e7a69207672193ae7d44719f89f327_63762346.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/b00c50bc3e8ffa70f09690387cef66e4_14834551.png change filename to text .imagette264305751756799220/ imagette264305751756799220/1756799006_2777589_1380796921_b5e7e469f318ae084bbbc3d51d0b9adf_74331417_rle_crop_3940191027_0.png.png imagette264305751756799220/1756799125_2782905_1380797136_14f9caea93232b295d8a6873f823d0bc_32505876_rle_crop_3940191399_0.png.png imagette264305751756799220/1756798864_2770782_1380796848_84909e2424860ed84ec40d31265017a3_33883609_rle_crop_3940189934_0.png.png imagette264305751756799220/1756798746_2765198_1380796751_b064e1d66da2ffd2000820f74126bbe4_10912547_rle_crop_3940189584_0.png.png imagette264305751756799220/1756798746_2765198_1380796753_1af91964105ff7db6158d5ab8c7d21dc_22487493_rle_crop_3940189575_0.png.png imagette264305751756799220/1756798886_2771993_1380796816_49e7c3973de7ae6c0b3978b5ae782b2b_993523_rle_crop_3940189965_0.png.png imagette264305751756799220/1756798864_2770782_1380796851_bc5bf157d5a9ab304c474c6e92d6c463_54673555_rle_crop_3940189882_0.png.png imagette264305751756799220/1756798385_2753977_1380795639_982e75aa72d4c0d634a5e321e2178607_54810721_rle_crop_3940185080_0.png.png imagette264305751756799220/1756799006_2777589_1380796919_8893141e9a5dbf49fc497556e32a1616_60177035_rle_crop_3940191055_0.png.png imagette264305751756799220/1756799125_2782905_1380797134_8e6f862b99435d1c40abc92e2969193f_98052316_rle_crop_3940191433_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/609ca33f363cd9b75248134389233cbd_65722324.png imagette264305751756799220 26430578 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430578 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380796680: '1756798626_2761848_1380796412_0d7873548dea7268b0bc26f819374467_95084858_rle_crop_3940187859_0.png', 1380796682: '1756798626_2761848_1380796411_57bb2c203c7a6c6ff0c0ddc54cd53a1c_5464090_rle_crop_3940187867_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/531326e485d71614453b23e83a955ff9_70553818.png change filename to text .imagette264305781756799221/ imagette264305781756799221/1756798626_2761848_1380796411_57bb2c203c7a6c6ff0c0ddc54cd53a1c_5464090_rle_crop_3940187867_0.png.png imagette264305781756799221/1756798626_2761848_1380796412_0d7873548dea7268b0bc26f819374467_95084858_rle_crop_3940187859_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/cb37b6ffe5419455b8fd1542495d26d9_47896355.png imagette264305781756799221 26430581 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430581 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380795791: '1756798385_2753977_1380795639_982e75aa72d4c0d634a5e321e2178607_54810721_rle_crop_3940185076_0.png', 1380795793: '1756798385_2753977_1380795639_982e75aa72d4c0d634a5e321e2178607_54810721_rle_crop_3940185075_0.png', 1380796946: '1756798864_2770782_1380796850_db4338c3c6d15acf098360c35bb6cc77_22827823_rle_crop_3940189892_0.png', 1380796947: '1756798864_2770782_1380796849_04eeb17e3f3d4887f79c39861f9cd631_61577016_rle_crop_3940189918_0.png', 1380796948: '1756798864_2770782_1380796848_84909e2424860ed84ec40d31265017a3_33883609_rle_crop_3940189936_0.png', 1380797188: '1756799006_2777589_1380796923_220d9a42c307d4909161e456b1a9d6f6_69552514_rle_crop_3940190995_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/59ddc5b6d380dc98ab772221118e5d12_71001569.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/467c9300fce9a91a39af1d2910bbfc20_13487565.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/dce8448389b94b7207f3d7b31e32b0c9_58286810.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/b027be753cf5a22bf7e668a06548cf76_70511024.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/dba4f4f480dacc1490e82425ad69223a_24122441.png change filename to text .imagette264305811756799221/ imagette264305811756799221/1756798864_2770782_1380796848_84909e2424860ed84ec40d31265017a3_33883609_rle_crop_3940189936_0.png.png imagette264305811756799221/1756798385_2753977_1380795639_982e75aa72d4c0d634a5e321e2178607_54810721_rle_crop_3940185075_0.png.png imagette264305811756799221/1756799006_2777589_1380796923_220d9a42c307d4909161e456b1a9d6f6_69552514_rle_crop_3940190995_0.png.png imagette264305811756799221/1756798864_2770782_1380796850_db4338c3c6d15acf098360c35bb6cc77_22827823_rle_crop_3940189892_0.png.png imagette264305811756799221/1756798864_2770782_1380796849_04eeb17e3f3d4887f79c39861f9cd631_61577016_rle_crop_3940189918_0.png.png imagette264305811756799221/1756798385_2753977_1380795639_982e75aa72d4c0d634a5e321e2178607_54810721_rle_crop_3940185076_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/2920ff0e5d8ec25c08da203e0f5e01ac_68589868.png imagette264305811756799221 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26430560 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26430590,26430591,26430592,26430594,26430595,26430596,26430597,26430599,26430600,26430601,26430602,26430604?tags=mal_croppe,Teint_Dans_La_Masse,autre_refus,metal,Carton_brun,flou,kraft,Carton_gris,cartonnette,papier,environnement,plastique your option no_mail is active, we will not send the real mail to your client args[1380797512] : ('0.06540951699783291',) no score found for photo 1380797512 We are sending mail with results at report@fotonower.com args[1380797275] : ('0.06540951699783291',) no score found for photo 1380797275 We are sending mail with results at report@fotonower.com args[1380797273] : ('0.06540951699783291',) no score found for photo 1380797273 We are sending mail with results at report@fotonower.com args[1380797271] : ('0.06540951699783291',) no score found for photo 1380797271 We are sending mail with results at report@fotonower.com args[1380797269] : ('0.06540951699783291',) no score found for photo 1380797269 We are sending mail with results at report@fotonower.com args[1380797267] : ('0.06540951699783291',) no score found for photo 1380797267 We are sending mail with results at report@fotonower.com refus_total : 0.06540951699783291 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430560 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_P26430560_02-09-2025_09_46_59.pdf results_Auto_P26430560_02-09-2025_09_46_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_46_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26430560','results_Auto_P26430560_02-09-2025_09_46_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_46_59.pdf','pdf','','0.18','0.06540951699783291') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26430560]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267] map_info['map_portfolio_photo'] : {26430560: [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267, 1380797215, 1380797213, 1380797211, 1380797137, 1380797136, 1380797135, 1380797134, 1380797132, 1380797107, 1380797106, 1380797105, 1380797101, 1380796924, 1380796923, 1380796922, 1380796921, 1380796920, 1380796919, 1380796852, 1380796851, 1380796850, 1380796849, 1380796848, 1380796816, 1380796815, 1380796814, 1380796761, 1380796759, 1380796757, 1380796755, 1380796753, 1380796751, 1380796619, 1380796561, 1380796559, 1380796556, 1380796554, 1380796552, 1380796550, 1380796413, 1380796412, 1380796411, 1380796233, 1380796056, 1380795658, 1380795640, 1380795639, 1380795638]} final : False mtd_id 4302 list_pids : [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267] 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, '3650688') ('4302', '26430560', '1380797512', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797275', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797273', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797271', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797269', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797267', None, None, None, None, None, '3650688') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '26430560', '1380797512', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797275', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797273', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797271', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797269', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797267', None, None, None, None, None, '3650688')] time used for this insertion : 0.01638340950012207 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.31256365776062 time spend to save output : 0.016599655151367188 total time spend for step 4 : 4.329163312911987 step5:split_time_score Tue Sep 2 09:47:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26430560'] 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 : [('26430560',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26430560) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1380797271: {'path': 'temp/1756799219_2398988_1380797271_f683e4df21c57fc76dfe1fe943195c8d_42788560.jpg', 'extension': 'jpg'}, 1380797273: {'path': 'temp/1756799219_2398988_1380797273_0323b838666bef973f232c1a3ae2ee33_12190726.jpg', 'extension': 'jpg'}, 1380797267: {'path': 'temp/1756799219_2398988_1380797267_2169d612d6e3e528c5f6888c7912182c_22137071.jpg', 'extension': 'jpg'}, 1380797269: {'path': 'temp/1756799219_2398988_1380797269_2033a4167d17701dc9529175706ad816_68675012.jpg', 'extension': 'jpg'}, 1380797275: {'path': 'temp/1756799219_2398988_1380797275_4736fefac1c8464df832f997cf559387_54982691.jpg', 'extension': 'jpg'}, 1380797512: {'path': 'temp/1756799219_2398988_1380797512_f556c13388753aa0c6b41a47fdcfbb52_10737216.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 = 26430560; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26430560 group by h (('09', 54),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26430560 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 (26430560) 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 (26430560) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02092025 26430560 Nombre de photos uploadées : 54 / 23040 (0%) 02092025 26430560 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 02092025 26430560 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1380795640, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/f985ac7903cef3cc719e8f95335cc4c9_5436647.jpg', 'username': None, 'uploaded_at': 1756798332, 'text': 'image_02092025_09_30_34_9142.jpg'}, {'photo_id': 1380795639, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/982e75aa72d4c0d634a5e321e2178607_54810721.jpg', 'username': None, 'uploaded_at': 1756798332, 'text': 'image_02092025_09_31_35_10143.jpg'}, {'photo_id': 1380795638, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/eab54d02c98f266b6276284079c38da2_72651320.jpg', 'username': None, 'uploaded_at': 1756798332, 'text': 'image_02092025_09_31_44_9127.jpg'}, {'photo_id': 1380796056, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/3a86951d035fc96d55e77fd0bca20444_63185443.jpg', 'username': None, 'uploaded_at': 1756798452, 'text': 'image_02092025_09_31_54_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027878284454345703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26430560, '2025-09-02' ) 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-09-02' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2213047,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21094346046447754 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= 2213047 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26419800, 'dashboard_result_id': 14577182, '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_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26420091, 'dashboard_result_id': 14577183, '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_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26420215, 'dashboard_result_id': 14577184, '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_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26420269, 'dashboard_result_id': 14577185, '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_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26420665, 'dashboard_result_id': 14577186, '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_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26420821, 'dashboard_result_id': 14577187, '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_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26421082, 'dashboard_result_id': 14577188, '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_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26421275, 'dashboard_result_id': 14577189, '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_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26421697, 'dashboard_result_id': 14577190, '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_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26421773, 'dashboard_result_id': 14577191, '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_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26421852, 'dashboard_result_id': 14577192, '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_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26422348, 'dashboard_result_id': 14577193, '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_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26422569, 'dashboard_result_id': 14577194, '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_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26422847, 'dashboard_result_id': 14577195, '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_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26423247, 'dashboard_result_id': 14577196, '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_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26423697, 'dashboard_result_id': 14577197, '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_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26425366, 'dashboard_result_id': 14577198, '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_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26425367, 'dashboard_result_id': 14577199, '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_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26425368, 'dashboard_result_id': 14577200, '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_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26426242, 'dashboard_result_id': 14577201, '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_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26426742, 'dashboard_result_id': 14577202, '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_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26426922, 'dashboard_result_id': 14577203, '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_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26427649, 'dashboard_result_id': 14577204, '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_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26427997, 'dashboard_result_id': 14577205, '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_P26427997_02-09-2025_08_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26428044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26428045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26428046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26428047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26428048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26428049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26428050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26428051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26428052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26428053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26428054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26428055, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26429064, 'dashboard_result_id': 14577206, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26429066, 'dashboard_result_id': 14577207, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26429069, 'dashboard_result_id': 14577208, '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_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26429940, 'dashboard_result_id': 14577209, '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_P26429940_02-09-2025_09_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429962, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2222847, 'mtr_portfolio_id': 26430560, 'dashboard_result_id': 14577210, '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_P26430560_02-09-2025_09_45_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, '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 = 26419800 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': 3649621, 'mtr_portfolio_id': 26419800, 'created_at': datetime.datetime(2025, 9, 2, 6, 10, 40), 'result': '0.03686026602506332', 'result_long': None, 'result_double': None}] Qualite : 0.03686026602506332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26419800 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26419800 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_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, 'pht': 3726}}" where mtr_portfolio_id = 26419800 and dashboard_run_id = 2222847 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`=26419800 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577182, 0.03686026602506332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, '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 = 26420091 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': 3649622, 'mtr_portfolio_id': 26420091, 'created_at': datetime.datetime(2025, 9, 2, 6, 11), 'result': '0.0030135671054280005', 'result_long': None, 'result_double': None}] Qualite : 0.0030135671054280005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420091 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_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, 'pht': 3726}}" where mtr_portfolio_id = 26420091 and dashboard_run_id = 2222847 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`=26420091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577183, 0.0030135671054280005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, '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 = 26420215 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': 3649623, 'mtr_portfolio_id': 26420215, 'created_at': datetime.datetime(2025, 9, 2, 6, 11, 30), 'result': '0.021580946659637567', 'result_long': None, 'result_double': None}] Qualite : 0.021580946659637567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420215 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_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, 'pht': 3726}}" where mtr_portfolio_id = 26420215 and dashboard_run_id = 2222847 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`=26420215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577184, 0.021580946659637567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, '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 = 26420269 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': 3649624, 'mtr_portfolio_id': 26420269, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 1), 'result': '0.024971925645642143', 'result_long': None, 'result_double': None}] Qualite : 0.024971925645642143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420269 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_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, 'pht': 3726}}" where mtr_portfolio_id = 26420269 and dashboard_run_id = 2222847 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`=26420269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577185, 0.024971925645642143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, '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 = 26420665 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': 3649625, 'mtr_portfolio_id': 26420665, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 29), 'result': '0.11729822377686816', 'result_long': None, 'result_double': None}] Qualite : 0.11729822377686816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420665 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_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, 'pht': 3726}}" where mtr_portfolio_id = 26420665 and dashboard_run_id = 2222847 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`=26420665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577186, 0.11729822377686816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, '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 = 26420821 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': 3649626, 'mtr_portfolio_id': 26420821, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 58), 'result': '0.017734543541633403', 'result_long': None, 'result_double': None}] Qualite : 0.017734543541633403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420821 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_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, 'pht': 3726}}" where mtr_portfolio_id = 26420821 and dashboard_run_id = 2222847 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`=26420821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577187, 0.017734543541633403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, '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 = 26421082 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': 3649627, 'mtr_portfolio_id': 26421082, 'created_at': datetime.datetime(2025, 9, 2, 6, 13, 30), 'result': '0.047804041156876025', 'result_long': None, 'result_double': None}] Qualite : 0.047804041156876025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421082 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_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, 'pht': 3726}}" where mtr_portfolio_id = 26421082 and dashboard_run_id = 2222847 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`=26421082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577188, 0.047804041156876025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, '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 = 26421275 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': 3649628, 'mtr_portfolio_id': 26421275, 'created_at': datetime.datetime(2025, 9, 2, 6, 13, 59), 'result': '0.02803459362490644', 'result_long': None, 'result_double': None}] Qualite : 0.02803459362490644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421275 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_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, 'pht': 3726}}" where mtr_portfolio_id = 26421275 and dashboard_run_id = 2222847 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`=26421275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577189, 0.02803459362490644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, '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 = 26421697 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': 3649629, 'mtr_portfolio_id': 26421697, 'created_at': datetime.datetime(2025, 9, 2, 6, 14, 28), 'result': '0.032193565636688314', 'result_long': None, 'result_double': None}] Qualite : 0.032193565636688314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421697 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_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, 'pht': 3726}}" where mtr_portfolio_id = 26421697 and dashboard_run_id = 2222847 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`=26421697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577190, 0.032193565636688314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, '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 = 26421773 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': 3649630, 'mtr_portfolio_id': 26421773, 'created_at': datetime.datetime(2025, 9, 2, 6, 15), 'result': '0.041312166364478355', 'result_long': None, 'result_double': None}] Qualite : 0.041312166364478355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421773 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_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, 'pht': 3726}}" where mtr_portfolio_id = 26421773 and dashboard_run_id = 2222847 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`=26421773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577191, 0.041312166364478355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, '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 = 26421852 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': 3649631, 'mtr_portfolio_id': 26421852, 'created_at': datetime.datetime(2025, 9, 2, 6, 15, 28), 'result': '0.011354407159164243', 'result_long': None, 'result_double': None}] Qualite : 0.011354407159164243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421852 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_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, 'pht': 3726}}" where mtr_portfolio_id = 26421852 and dashboard_run_id = 2222847 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`=26421852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577192, 0.011354407159164243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, '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 = 26422348 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': 3649634, 'mtr_portfolio_id': 26422348, 'created_at': datetime.datetime(2025, 9, 2, 6, 15, 40), 'result': '0.06504504754248332', 'result_long': None, 'result_double': None}] Qualite : 0.06504504754248332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422348 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_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, 'pht': 3726}}" where mtr_portfolio_id = 26422348 and dashboard_run_id = 2222847 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`=26422348 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577193, 0.06504504754248332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, '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 = 26422569 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': 3649635, 'mtr_portfolio_id': 26422569, 'created_at': datetime.datetime(2025, 9, 2, 5, 40, 39), 'result': '0.05665505530903546', 'result_long': None, 'result_double': None}] Qualite : 0.05665505530903546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422569 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422569 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_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, 'pht': 3726}}" where mtr_portfolio_id = 26422569 and dashboard_run_id = 2222847 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`=26422569 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577194, 0.05665505530903546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, '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 = 26422847 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': 3649554, 'mtr_portfolio_id': 26422847, 'created_at': datetime.datetime(2025, 9, 2, 5, 49), 'result': '0.050945077666736796', 'result_long': None, 'result_double': None}] Qualite : 0.050945077666736796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422847 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_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, 'pht': 3726}}" where mtr_portfolio_id = 26422847 and dashboard_run_id = 2222847 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`=26422847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577195, 0.050945077666736796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, '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 = 26423247 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': 3649728, 'mtr_portfolio_id': 26423247, 'created_at': datetime.datetime(2025, 9, 2, 6, 3, 28), 'result': '0.04732348082075002', 'result_long': None, 'result_double': None}] Qualite : 0.04732348082075002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26423247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26423247 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_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, 'pht': 3726}}" where mtr_portfolio_id = 26423247 and dashboard_run_id = 2222847 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`=26423247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577196, 0.04732348082075002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, '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 = 26423697 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': 3649799, 'mtr_portfolio_id': 26423697, 'created_at': datetime.datetime(2025, 9, 2, 7, 0, 41), 'result': '0.09345634243956515', 'result_long': None, 'result_double': None}] Qualite : 0.09345634243956515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26423697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26423697 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_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, 'pht': 3726}}" where mtr_portfolio_id = 26423697 and dashboard_run_id = 2222847 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`=26423697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577197, 0.09345634243956515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, '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 = 26425366 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': 3650072, 'mtr_portfolio_id': 26425366, 'created_at': datetime.datetime(2025, 9, 2, 7, 1, 3), 'result': '0.051827515755475985', 'result_long': None, 'result_double': None}] Qualite : 0.051827515755475985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425366 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_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, 'pht': 3726}}" where mtr_portfolio_id = 26425366 and dashboard_run_id = 2222847 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`=26425366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577198, 0.051827515755475985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, '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 = 26425367 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': 3650073, 'mtr_portfolio_id': 26425367, 'created_at': datetime.datetime(2025, 9, 2, 7, 0, 33), 'result': '0.04827498812658768', 'result_long': None, 'result_double': None}] Qualite : 0.04827498812658768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425367 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_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, 'pht': 3726}}" where mtr_portfolio_id = 26425367 and dashboard_run_id = 2222847 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`=26425367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577199, 0.04827498812658768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, '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 = 26425368 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': 3650074, 'mtr_portfolio_id': 26425368, 'created_at': datetime.datetime(2025, 9, 2, 7, 16, 58), 'result': '0.0630449193859071', 'result_long': None, 'result_double': None}] Qualite : 0.0630449193859071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425368 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_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, 'pht': 3726}}" where mtr_portfolio_id = 26425368 and dashboard_run_id = 2222847 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`=26425368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577200, 0.0630449193859071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, '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 = 26426242 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': 3650197, 'mtr_portfolio_id': 26426242, 'created_at': datetime.datetime(2025, 9, 2, 7, 24, 57), 'result': '0.04403825290894583', 'result_long': None, 'result_double': None}] Qualite : 0.04403825290894583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426242 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_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, 'pht': 3726}}" where mtr_portfolio_id = 26426242 and dashboard_run_id = 2222847 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`=26426242 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577201, 0.04403825290894583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, '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 = 26426742 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': 3650241, 'mtr_portfolio_id': 26426742, 'created_at': datetime.datetime(2025, 9, 2, 7, 33), 'result': '0.06966086867563821', 'result_long': None, 'result_double': None}] Qualite : 0.06966086867563821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426742 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_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, 'pht': 3726}}" where mtr_portfolio_id = 26426742 and dashboard_run_id = 2222847 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`=26426742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577202, 0.06966086867563821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, '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 = 26426922 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': 3650264, 'mtr_portfolio_id': 26426922, 'created_at': datetime.datetime(2025, 9, 2, 7, 48, 58), 'result': '0.07815691925885802', 'result_long': None, 'result_double': None}] Qualite : 0.07815691925885802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426922 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_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, 'pht': 3726}}" where mtr_portfolio_id = 26426922 and dashboard_run_id = 2222847 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`=26426922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577203, 0.07815691925885802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, '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 = 26427649 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': 3650333, 'mtr_portfolio_id': 26427649, 'created_at': datetime.datetime(2025, 9, 2, 8, 3, 1), 'result': '0.0064983107930800255', 'result_long': None, 'result_double': None}] Qualite : 0.0064983107930800255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26427649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26427649 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_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, 'pht': 3726}}" where mtr_portfolio_id = 26427649 and dashboard_run_id = 2222847 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`=26427649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577204, 0.0064983107930800255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, '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 = 26427997 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427997 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26427997 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427997 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427997 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26427997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427997_02-09-2025_09_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26427997 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_P26427997_02-09-2025_09_01_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26428044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26428045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26428046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26428047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26428048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26428049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26428050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26428051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26428052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26428053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26428054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26428055, 'pht': 3726}}" where mtr_portfolio_id = 26427997 and dashboard_run_id = 2222847 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 = 26429064 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429064 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26429064 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429064 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429064 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429064_02-09-2025_09_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429064 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_P26429064_02-09-2025_09_01_32.pdf'}" where mtr_portfolio_id = 26429064 and dashboard_run_id = 2222847 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 = 26429066 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429066 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26429066 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429066 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429066 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429066_02-09-2025_09_00_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429066 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_P26429066_02-09-2025_09_00_34.pdf'}" where mtr_portfolio_id = 26429066 and dashboard_run_id = 2222847 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 = 26429069 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': 3650450, 'mtr_portfolio_id': 26429069, 'created_at': datetime.datetime(2025, 9, 2, 9, 32, 57), 'result': '0.08166377855555111', 'result_long': None, 'result_double': None}] Qualite : 0.08166377855555111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429069 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_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, 'pht': 3726}}" where mtr_portfolio_id = 26429069 and dashboard_run_id = 2222847 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`=26429069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577208, 0.08166377855555111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, '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 = 26429940 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': 3650575, 'mtr_portfolio_id': 26429940, 'created_at': datetime.datetime(2025, 9, 2, 9, 16, 58), 'result': '0.03653506384947461', 'result_long': None, 'result_double': None}] Qualite : 0.03653506384947461 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429940_02-09-2025_09_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429940 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_P26429940_02-09-2025_09_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429962, 'pht': 3726}}" where mtr_portfolio_id = 26429940 and dashboard_run_id = 2222843 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`=26429940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577209, 0.03653506384947461, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429940_02-09-2025_09_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429953, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429956, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429957, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429962, '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 = 26430560 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': 3650688, 'mtr_portfolio_id': 26430560, 'created_at': datetime.datetime(2025, 9, 2, 9, 46, 58), 'result': '0.06540951699783291', 'result_long': None, 'result_double': None}] Qualite : 0.06540951699783291 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26430560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26430560 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_P26430560_02-09-2025_09_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, 'pht': 3726}}" where mtr_portfolio_id = 26430560 and dashboard_run_id = 2222843 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`=26430560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14577210, 0.06540951699783291, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, '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 (26419800,26420091,26420215,26420269,26420665,26420821,26421082,26421275,26421697,26421773,26421852,26422348,26422569,26422847,26423247,26423697,26425366,26425367,26425368,26426242,26426742,26426922,26427649,26427997,26429064,26429066,26429069,26429940,26430560) result : ((1380746927,), (1380746929,), (1380747076,), (1380747077,), (1380747078,), (1380747090,), (1380747136,), (1380747157,), (1380747158,), (1380747673,), (1380747675,), (1380747677,), (1380747745,), (1380747808,), (1380748022,), (1380747872,), (1380748234,), (1380748235,), (1380748316,), (1380748660,), (1380748661,), (1380748801,), (1380748822,), (1380748859,), (1380748919,), (1380748922,), (1380748976,), (1380749079,), (1380749223,), (1380749240,), (1380749270,), (1380749336,), (1380749439,), (1380749491,), (1380749492,), (1380750502,), (1380750974,), (1380750975,), (1380751018,), (1380751029,), (1380754439,), (1380754438,), (1380754608,), (1380754609,), (1380754648,), (1380754649,), (1380754650,), (1380754672,), (1380754674,), (1380754675,), (1380754676,), (1380754744,), (1380754745,), (1380754788,), (1380754789,), (1380754811,), (1380754832,), (1380754849,), (1380754871,), (1380754892,), (1380754909,), (1380754959,), (1380754956,), (1380755028,), (1380755060,), (1380755121,), (1380755186,), (1380755282,), (1380755347,), (1380755348,), (1380755349,), (1380755585,), (1380755586,), (1380755587,), (1380756011,), (1380756763,), (1380756970,), (1380756971,), (1380757095,), (1380757478,), (1380757480,), (1380757482,), (1380757690,), (1380757702,), (1380757716,), (1380757728,), (1380757770,), (1380757771,), (1380757772,), (1380757830,), (1380757855,), (1380757876,), (1380757877,), (1380757906,), (1380757957,), (1380757979,), (1380757992,), (1380758050,), (1380758101,), (1380758102,), (1380758103,), (1380758233,), (1380761735,), (1380761817,), (1380761818,), (1380761819,), (1380761902,), (1380761964,), (1380761985,), (1380762007,), (1380762099,), (1380762149,), (1380762258,), (1380762259,), (1380762275,), (1380762316,), (1380762355,), (1380762416,), (1380762417,), (1380762472,), (1380762590,), (1380762650,), (1380762651,), (1380762792,), (1380762847,), (1380762848,), (1380762849,), (1380763516,), (1380763636,), (1380763697,), (1380769131,), (1380769132,), (1380769133,), (1380769203,), (1380769204,), (1380769205,), (1380769244,), (1380769245,), (1380769313,), (1380769314,), (1380769343,), (1380769344,), (1380769345,), (1380769372,), (1380769373,), (1380769405,), (1380769406,), (1380769407,), (1380769408,), (1380769409,), (1380769436,), (1380769471,), (1380769486,), (1380769502,), (1380769522,), (1380769523,), (1380769524,), (1380769525,), (1380769550,), (1380769552,), (1380769553,), (1380769554,), (1380769614,), (1380769615,), (1380769616,), (1380769617,), (1380769618,), (1380769644,), (1380769645,), (1380769646,), (1380769647,), (1380769648,), (1380769649,), (1380769700,), (1380769701,), (1380769702,), (1380769703,), (1380769730,), (1380769731,), (1380769732,), (1380769758,), (1380769759,), (1380769760,), (1380769761,), (1380769784,), (1380769785,), (1380769786,), (1380769787,), (1380769807,), (1380769808,), (1380769809,), (1380769810,), (1380769811,), (1380769812,), (1380769816,), (1380769828,), (1380769829,), (1380769830,), (1380769831,), (1380769855,), (1380769856,), (1380769857,), (1380769858,), (1380769859,), (1380769860,), (1380769883,), (1380769884,), (1380769885,), (1380769886,), (1380769887,), (1380769888,), (1380769916,), (1380769912,), (1380769913,), (1380769914,), (1380769915,), (1380769934,), (1380769935,), (1380769936,), (1380769937,), (1380769938,), (1380769939,), (1380769979,), (1380769980,), (1380769981,), (1380769982,), (1380770014,), (1380770015,), (1380770016,), (1380770017,), (1380770018,), (1380770019,), (1380770052,), (1380770053,), (1380770054,), (1380770055,), (1380770056,), (1380770057,), (1380770083,), (1380770085,), (1380770086,), (1380770087,), (1380770088,), (1380770089,), (1380770113,), (1380770114,), (1380770115,), (1380770116,), (1380770117,), (1380770149,), (1380770151,), (1380770152,), (1380770153,), (1380770154,), (1380770155,), (1380770182,), (1380770183,), (1380770184,), (1380770185,), (1380770218,), (1380770219,), (1380770220,), (1380770221,), (1380770223,), (1380770225,), (1380770246,), (1380770247,), (1380770248,), (1380770249,), (1380770320,), (1380770321,), (1380770322,), (1380770323,), (1380770324,), (1380770325,), (1380770351,), (1380770352,), (1380770353,), (1380770354,), (1380770386,), (1380770424,), (1380770382,), (1380770383,), (1380770384,), (1380770385,), (1380770407,), (1380770408,), (1380770409,), (1380770410,), (1380770412,), (1380770413,), (1380770420,), (1380770421,), (1380770422,), (1380770423,), (1380770444,), (1380770445,), (1380770446,), (1380770447,), (1380770476,), (1380770477,), (1380770478,), (1380770479,), (1380770480,), (1380770481,), (1380770506,), (1380770507,), (1380770508,), (1380770509,), (1380770510,), (1380770511,), (1380770555,), (1380770556,), (1380770557,), (1380770558,), (1380770587,), (1380770588,), (1380770589,), (1380770590,), (1380770592,), (1380770629,), (1380770630,), (1380770631,), (1380770653,), (1380770661,), (1380770662,), (1380770664,), (1380770665,), (1380770666,), (1380770688,), (1380770689,), (1380770690,), (1380770691,), (1380770692,), (1380770693,), (1380770712,), (1380770713,), (1380770714,), (1380770744,), (1380770746,), (1380770748,), (1380770749,), (1380770750,), (1380770751,), (1380770755,), (1380770756,), (1380770757,), (1380771045,), (1380771047,), (1380771049,), (1380771051,), (1380771053,), (1380771569,), (1380771571,), (1380771575,), (1380771578,), (1380771581,), (1380771641,), (1380771643,), (1380771646,), (1380771648,), (1380771650,), (1380772008,), (1380772002,), (1380772004,), (1380772006,), (1380772369,), (1380772371,), (1380772373,), (1380772375,), (1380772377,), (1380772755,), (1380772757,), (1380772759,), (1380772761,), (1380772938,), (1380772940,), (1380772942,), (1380772944,), (1380773103,), (1380773104,), (1380773105,), (1380773106,), (1380773107,), (1380773138,), (1380773139,), (1380773140,), (1380773141,), (1380773142,), (1380773143,), (1380773176,), (1380773177,), (1380773178,), (1380773179,), (1380773180,), (1380773181,), (1380773186,), (1380773187,), (1380773215,), (1380773249,), (1380773291,), (1380773392,), (1380773414,), (1380773415,), (1380773416,), (1380773417,), (1380773418,), (1380773454,), (1380773479,), (1380773450,), (1380773451,), (1380773452,), (1380773453,), (1380773468,), (1380773469,), (1380773470,), (1380773471,), (1380773472,), (1380773473,), (1380773477,), (1380773513,), (1380773514,), (1380773515,), (1380773517,), (1380773519,), (1380773547,), (1380773548,), (1380773549,), (1380773550,), (1380773551,), (1380773588,), (1380773589,), (1380773590,), (1380773591,), (1380773592,), (1380773618,), (1380773619,), (1380773656,), (1380773657,), (1380773658,), (1380773659,), (1380773660,), (1380773682,), (1380773683,), (1380773684,), (1380773685,), (1380773686,), (1380773687,), (1380773785,), (1380773786,), (1380773787,), (1380773788,), (1380773818,), (1380773819,), (1380773820,), (1380773821,), (1380773846,), (1380773847,), (1380773894,), (1380773895,), (1380773896,), (1380773897,), (1380773898,), (1380773935,), (1380773936,), (1380773937,), (1380773938,), (1380773939,), (1380773955,), (1380773956,), (1380773957,), (1380773958,), (1380773959,), (1380773995,), (1380773996,), (1380773997,), (1380773998,), (1380774020,), (1380774014,), (1380774018,), (1380774019,), (1380774056,), (1380774057,), (1380774058,), (1380774059,), (1380774060,), (1380774079,), (1380774080,), (1380774119,), (1380774121,), (1380774123,), (1380774124,), (1380774160,), (1380774161,), (1380774162,), (1380774163,), (1380774200,), (1380774201,), (1380774202,), (1380774203,), (1380774217,), (1380774219,), (1380774220,), (1380774221,), (1380774222,), (1380774223,), (1380774226,), (1380774227,), (1380774253,), (1380774254,), (1380774255,), (1380774256,), (1380774283,), (1380774284,), (1380774311,), (1380774312,), (1380774313,), (1380774314,), (1380774315,), (1380774336,), (1380774337,), (1380774338,), (1380774339,), (1380774340,), (1380774341,), (1380774383,), (1380774384,), (1380774385,), (1380774386,), (1380774387,), (1380774405,), (1380774406,), (1380774407,), (1380774408,), (1380774447,), (1380774448,), (1380774449,), (1380774450,), (1380774451,), (1380774475,), (1380774476,), (1380774478,), (1380774480,), (1380774541,), (1380774567,), (1380774537,), (1380774538,), (1380774539,), (1380774540,), (1380774556,), (1380774557,), (1380774558,), (1380774559,), (1380774560,), (1380774561,), (1380774565,), (1380774585,), (1380774586,), (1380774587,), (1380774588,), (1380774589,), (1380774609,), (1380774612,), (1380774613,), (1380774614,), (1380774615,), (1380774616,), (1380774648,), (1380774649,), (1380774650,), (1380774669,), (1380774670,), (1380774671,), (1380774672,), (1380774700,), (1380774701,), (1380774702,), (1380774703,), (1380774704,), (1380774719,), (1380774720,), (1380774721,), (1380774722,), (1380774749,), (1380774750,), (1380774751,), (1380774752,), (1380774753,), (1380774781,), (1380774782,), (1380774783,), (1380774784,), (1380774785,), (1380774786,), (1380774823,), (1380774824,), (1380774825,), (1380774847,), (1380774848,), (1380774849,), (1380774850,), (1380774851,), (1380774852,), (1380774875,), (1380774879,), (1380774880,), (1380774881,), (1380774882,), (1380775553,), (1380775557,), (1380775561,), (1380775565,), (1380775569,), (1380775712,), (1380775716,), (1380776439,), (1380776431,), (1380776433,), (1380776435,), (1380776437,), (1380776936,), (1380776938,), (1380776940,), (1380776942,), (1380776944,), (1380777177,), (1380777178,), (1380777179,), (1380777180,), (1380777181,), (1380777212,), (1380777213,), (1380777214,), (1380777215,), (1380777238,), (1380777239,), (1380777241,), (1380777242,), (1380777281,), (1380777282,), (1380777283,), (1380777297,), (1380777298,), (1380777299,), (1380777300,), (1380777301,), (1380777303,), (1380777312,), (1380777343,), (1380777344,), (1380777345,), (1380777346,), (1380777347,), (1380777374,), (1380777375,), (1380777376,), (1380777377,), (1380777430,), (1380777431,), (1380778686,), (1380778732,), (1380778733,), (1380778734,), (1380778735,), (1380778838,), (1380778839,), (1380778840,), (1380778841,), (1380779077,), (1380779080,), (1380779083,), (1380779086,), (1380779090,), (1380779093,), (1380779160,), (1380779162,), (1380779261,), (1380779262,), (1380779263,), (1380779264,), (1380779301,), (1380779302,), (1380779303,), (1380779304,), (1380779305,), (1380779306,), (1380779338,), (1380779339,), (1380779340,), (1380779342,), (1380779343,), (1380779372,), (1380779370,), (1380779371,), (1380779466,), (1380779467,), (1380779468,), (1380779469,), (1380779470,), (1380779471,), (1380779491,), (1380779492,), (1380779493,), (1380779494,), (1380779540,), (1380779541,), (1380779542,), (1380779619,), (1380779620,), (1380779622,), (1380779723,), (1380779725,), (1380779726,), (1380779727,), (1380779899,), (1380779900,), (1380779901,), (1380779902,), (1380779903,), (1380779904,), (1380779908,), (1380779910,), (1380779930,), (1380779931,), (1380779932,), (1380779933,), (1380779934,), (1380779935,), (1380780002,), (1380780003,), (1380780004,), (1380780005,), (1380780006,), (1380780007,), (1380780030,), (1380780031,), (1380780032,), (1380780086,), (1380780089,), (1380780091,), (1380780092,), (1380780254,), (1380780256,), (1380780258,), (1380780260,), (1380780394,), (1380780395,), (1380780396,), (1380780397,), (1380780398,), (1380780425,), (1380780426,), (1380780484,), (1380780486,), (1380780549,), (1380780712,), (1380780708,), (1380780709,), (1380780711,), (1380781186,), (1380781235,), (1380781330,), (1380781359,), (1380781360,), (1380781361,), (1380781387,), (1380781389,), (1380781390,), (1380781391,), (1380781422,), (1380781423,), (1380781424,), (1380781938,), (1380781940,), (1380782059,), (1380782060,), (1380782061,), (1380782057,), (1380782058,), (1380782093,), (1380782095,), (1380782096,), (1380782115,), (1380782116,), (1380782149,), (1380782151,), (1380782152,), (1380782176,), (1380782214,), (1380782215,), (1380782216,), (1380782217,), (1380782218,), (1380782234,), (1380782235,), (1380782236,), (1380782237,), (1380782238,), (1380782239,), (1380782243,), (1380782275,), (1380782276,), (1380782277,), (1380782278,), (1380782298,), (1380782299,), (1380782300,), (1380782327,), (1380782328,), (1380782344,), (1380782346,), (1380782347,), (1380782563,), (1380782565,), (1380782567,), (1380782569,), (1380782916,), (1380782918,), (1380783225,), (1380783226,), (1380783228,), (1380783230,), (1380783232,), (1380783234,), (1380783523,), (1380783527,), (1380783530,), (1380783533,), (1380783536,), (1380783539,), (1380783963,), (1380784309,), (1380783962,), (1380784126,), (1380784130,), (1380784134,), (1380784138,), (1380784144,), (1380784148,), (1380784305,), (1380784456,), (1380784457,), (1380784458,), (1380784459,), (1380784461,), (1380784887,), (1380784889,), (1380784891,), (1380784893,), (1380785264,), (1380785383,), (1380785386,), (1380785874,), (1380785877,), (1380785880,), (1380785883,), (1380785886,), (1380785889,), (1380786078,), (1380786079,), (1380786080,), (1380786081,), (1380786082,), (1380786519,), (1380786521,), (1380786523,), (1380786680,), (1380786681,), (1380786682,), (1380786735,), (1380786736,), (1380786737,), (1380786785,), (1380786786,), (1380786787,), (1380786788,), (1380786878,), (1380786879,), (1380786881,), (1380786882,), (1380786883,), (1380786884,), (1380786889,), (1380786890,), (1380786911,), (1380786913,), (1380786915,), (1380786917,), (1380787050,), (1380787051,), (1380787052,), (1380787207,), (1380787208,), (1380787209,), (1380787210,), (1380787211,), (1380787353,), (1380787351,), (1380787352,), (1380787432,), (1380787433,), (1380787434,), (1380787557,), (1380787559,), (1380787561,), (1380787563,), (1380787565,), (1380787567,), (1380787990,), (1380787992,), (1380787994,), (1380787996,), (1380788336,), (1380788337,), (1380788338,), (1380788339,), (1380788409,), (1380788410,), (1380788460,), (1380788461,), (1380788462,), (1380788463,), (1380788464,), (1380788532,), (1380788533,), (1380788534,), (1380788589,), (1380788590,), (1380788591,), (1380788804,), (1380788840,), (1380788841,), (1380788959,), (1380789017,), (1380789018,), (1380789117,), (1380789119,), (1380789120,), (1380789121,), (1380789122,), (1380789223,), (1380789344,), (1380789221,), (1380789222,), (1380789338,), (1380789339,), (1380789340,), (1380789341,), (1380789342,), (1380789414,), (1380789416,), (1380789417,), (1380789418,), (1380789538,), (1380789599,), (1380789600,), (1380789601,), (1380789675,), (1380789679,), (1380789717,), (1380789718,), (1380789817,), (1380789818,), (1380789854,), (1380789855,), (1380789945,), (1380789946,), (1380789980,), (1380789981,), (1380790038,), (1380790039,), (1380790040,), (1380790041,), (1380790042,), (1380790140,), (1380790142,), (1380790144,), (1380795572,), (1380793905,), (1380794133,), (1380794621,), (1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02092025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26430560]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267] map_info['map_portfolio_photo'] : {26430560: [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267, 1380797215, 1380797213, 1380797211, 1380797137, 1380797136, 1380797135, 1380797134, 1380797132, 1380797107, 1380797106, 1380797105, 1380797101, 1380796924, 1380796923, 1380796922, 1380796921, 1380796920, 1380796919, 1380796852, 1380796851, 1380796850, 1380796849, 1380796848, 1380796816, 1380796815, 1380796814, 1380796761, 1380796759, 1380796757, 1380796755, 1380796753, 1380796751, 1380796619, 1380796561, 1380796559, 1380796556, 1380796554, 1380796552, 1380796550, 1380796413, 1380796412, 1380796411, 1380796233, 1380796056, 1380795658, 1380795640, 1380795639, 1380795638]} final : True mtd_id 4302 list_pids : [1380797512, 1380797275, 1380797273, 1380797271, 1380797269, 1380797267] Looping around the photos to save general results len do output : 1 /26430560Didn'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, '3650688') ('4302', '26430560', '1380797512', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797275', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797273', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797271', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797269', None, None, None, None, None, '3650688') ('4302', None, None, None, None, None, None, None, '3650688') ('4302', '26430560', '1380797267', None, None, None, None, None, '3650688') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26430560', 'None', None, None, None, None, '3650688'), ('4302', '26430560', '1380797512', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797275', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797273', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797271', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797269', None, None, None, None, None, '3650688'), ('4302', '26430560', '1380797267', None, None, None, None, None, '3650688')] time used for this insertion : 0.014141559600830078 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8678290843963623 time spend to save output : 0.014389514923095703 total time spend for step 5 : 1.882218599319458 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 (3650688) 2.10user 2.35system 0:10.04elapsed 44%CPU (0avgtext+0avgdata 158640maxresident)k 4784inputs+9088outputs (35major+64039minor)pagefaults 0swaps