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 : 4016104 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 (3995501) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3995501) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142804 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3995501'] with mtr_portfolio_ids : ['28142804'] and first list_photo_ids : [] new path : /proc/4016104/ Name: python3 Umask: 0002 State: R (running) Tgid: 4016104 Ngid: 0 Pid: 4016104 PPid: 4016103 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4016104 NSpid: 4016104 NSpgid: 4012891 NSsid: 4012891 VmPeak: 1106908 kB VmSize: 1106888 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98556 kB VmRSS: 98556 kB RssAnon: 59900 kB RssFile: 38656 kB RssShmem: 0 kB VmData: 865640 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: 44 nonvoluntary_ctxt_switches: 219 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4016104', 'Ngid': '0', 'Pid': '4016104', 'PPid': '4016103', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4016104', 'NSpid': '4016104', 'NSpgid': '4012891', 'NSsid': '4012891', 'VmPeak': '1106908 kB', 'VmSize': '1106888 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98556 kB', 'VmRSS': '98556 kB', 'RssAnon': '59900 kB', 'RssFile': '38656 kB', 'RssShmem': '0 kB', 'VmData': '865640 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': '44', 'nonvoluntary_ctxt_switches': '219'} ('datou_batch_current', '4016104', '1106908', '0', '1106888', '865640', '98556', b'', 'marlene', '3995501') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28142804) 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 (3995501 ) ) 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 (28142804) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1392331018, 'portfolio_id': 28142804}, {'photo_id': 1392330935, 'portfolio_id': 28142804}, {'photo_id': 1392330873, 'portfolio_id': 28142804}, {'photo_id': 1392330833, 'portfolio_id': 28142804}, {'photo_id': 1392330345, 'portfolio_id': 28142804}, {'photo_id': 1392330339, 'portfolio_id': 28142804}, {'photo_id': 1392330336, 'portfolio_id': 28142804}, {'photo_id': 1392330277, 'portfolio_id': 28142804}, {'photo_id': 1392330250, 'portfolio_id': 28142804}, {'photo_id': 1392330218, 'portfolio_id': 28142804}, {'photo_id': 1392329838, 'portfolio_id': 28142804}, {'photo_id': 1392329756, 'portfolio_id': 28142804}, {'photo_id': 1392329692, 'portfolio_id': 28142804}, {'photo_id': 1392329647, 'portfolio_id': 28142804}, {'photo_id': 1392329491, 'portfolio_id': 28142804}, {'photo_id': 1392328799, 'portfolio_id': 28142804}, {'photo_id': 1392328759, 'portfolio_id': 28142804}, {'photo_id': 1392328694, 'portfolio_id': 28142804}, {'photo_id': 1392328488, 'portfolio_id': 28142804}, {'photo_id': 1392328475, 'portfolio_id': 28142804}, {'photo_id': 1392328466, 'portfolio_id': 28142804}, {'photo_id': 1392328459, 'portfolio_id': 28142804}, {'photo_id': 1392328456, 'portfolio_id': 28142804}, {'photo_id': 1392328435, 'portfolio_id': 28142804}, {'photo_id': 1392328429, 'portfolio_id': 28142804}, {'photo_id': 1392328422, 'portfolio_id': 28142804}, {'photo_id': 1392328412, 'portfolio_id': 28142804}, {'photo_id': 1392328373, 'portfolio_id': 28142804}, {'photo_id': 1392328370, 'portfolio_id': 28142804}, {'photo_id': 1392328361, 'portfolio_id': 28142804}, {'photo_id': 1392328359, 'portfolio_id': 28142804}, {'photo_id': 1392328351, 'portfolio_id': 28142804}, {'photo_id': 1392328323, 'portfolio_id': 28142804}, {'photo_id': 1392328321, 'portfolio_id': 28142804}, {'photo_id': 1392328318, 'portfolio_id': 28142804}, {'photo_id': 1392328280, 'portfolio_id': 28142804}, {'photo_id': 1392328278, 'portfolio_id': 28142804}, {'photo_id': 1392328275, 'portfolio_id': 28142804}, {'photo_id': 1392328042, 'portfolio_id': 28142804}, {'photo_id': 1392328041, 'portfolio_id': 28142804}, {'photo_id': 1392328039, 'portfolio_id': 28142804}, {'photo_id': 1392327775, 'portfolio_id': 28142804}, {'photo_id': 1392327750, 'portfolio_id': 28142804}, {'photo_id': 1392327739, 'portfolio_id': 28142804}, {'photo_id': 1392327717, 'portfolio_id': 28142804}, {'photo_id': 1392327685, 'portfolio_id': 28142804}, {'photo_id': 1392327679, 'portfolio_id': 28142804}, {'photo_id': 1392327677, 'portfolio_id': 28142804}, {'photo_id': 1392327674, 'portfolio_id': 28142804}, {'photo_id': 1392327672, 'portfolio_id': 28142804}, {'photo_id': 1392327555, 'portfolio_id': 28142804}, {'photo_id': 1392327554, 'portfolio_id': 28142804}, {'photo_id': 1392327552, 'portfolio_id': 28142804}] map_portfolio_id_photo_id: {28142804: [1392331018, 1392330935, 1392330873, 1392330833, 1392330345, 1392330339, 1392330336, 1392330277, 1392330250, 1392330218, 1392329838, 1392329756, 1392329692, 1392329647, 1392329491, 1392328799, 1392328759, 1392328694, 1392328488, 1392328475, 1392328466, 1392328459, 1392328456, 1392328435, 1392328429, 1392328422, 1392328412, 1392328373, 1392328370, 1392328361, 1392328359, 1392328351, 1392328323, 1392328321, 1392328318, 1392328280, 1392328278, 1392328275, 1392328042, 1392328041, 1392328039, 1392327775, 1392327750, 1392327739, 1392327717, 1392327685, 1392327679, 1392327677, 1392327674, 1392327672, 1392327555, 1392327554, 1392327552]} ##### 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.015908002853393555 #### 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 Nov 4 08:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28142804) 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 : 28142804 get user id for portfolio 28142804 get sub ptf for main ptf 28142804, type 3726 and hashtags ['cartonnette', 'kraft', 'mal_croppe', 'flou', 'Carton_brun', 'metal', 'Carton_gris', 'papier', 'Teint_Dans_La_Masse', 'plastique', 'environnement', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28142804 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','mal_croppe','flou','Carton_brun','metal','Carton_gris','papier','Teint_Dans_La_Masse','plastique','environnement','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28142804 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','mal_croppe','flou','Carton_brun','metal','Carton_gris','papier','Teint_Dans_La_Masse','plastique','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28142804, 'sub_port_id': 28142823, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027225, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'autre_refus': {'main_port_id': 28142804, 'sub_port_id': 28142824, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027226, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'kraft': {'main_port_id': 28142804, 'sub_port_id': 28142825, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027227, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'Carton_brun': {'main_port_id': 28142804, 'sub_port_id': 28142826, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027228, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'environnement': {'main_port_id': 28142804, 'sub_port_id': 28142827, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027229, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'plastique': {'main_port_id': 28142804, 'sub_port_id': 28142828, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027230, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'papier': {'main_port_id': 28142804, 'sub_port_id': 28142829, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027231, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'flou': {'main_port_id': 28142804, 'sub_port_id': 28142830, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027232, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'metal': {'main_port_id': 28142804, 'sub_port_id': 28142832, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027233, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'mal_croppe': {'main_port_id': 28142804, 'sub_port_id': 28142833, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027234, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'Carton_gris': {'main_port_id': 28142804, 'sub_port_id': 28142834, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027235, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}, 'cartonnette': {'main_port_id': 28142804, 'sub_port_id': 28142835, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027236, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28142823 , 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=28142804 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 (28142823) result : ((1392328408,), (1392328890,), (1392328892,), (1392328894,), (1392328896,), (1392329579,), (1392331480,), (1392331481,), (1392331643,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142824 , 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=28142804 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 (28142824) result : ((1392331483,), (1392331485,), (1392331644,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142825 , 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=28142804 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 (28142825) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142826 , 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=28142804 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 (28142826) result : ((1392328934,), (1392328936,), (1392330108,), (1392330110,), (1392331493,), (1392331494,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142827 , 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=28142804 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 (28142827) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142828 , 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=28142804 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 (28142828) result : ((1392328953,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142829 , 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=28142804 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 (28142829) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142830 , 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=28142804 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 (28142830) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142832 , 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=28142804 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 (28142832) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142833 , 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=28142804 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 (28142833) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142834 , 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=28142804 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 (28142834) result : ((1392328410,), (1392328906,), (1392330304,), (1392331486,), (1392331487,), (1392331488,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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 28142835 , 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=28142804 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 (28142835) result : ((1392328411,), (1392328917,), (1392330096,), (1392330098,), (1392330305,), (1392331490,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28142804) result : ((1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) 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`=28142804 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','mal_croppe','flou','Carton_brun','metal','Carton_gris','papier','Teint_Dans_La_Masse','plastique','environnement','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28142804 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','kraft','mal_croppe','flou','Carton_brun','metal','Carton_gris','papier','Teint_Dans_La_Masse','plastique','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28142804, 'sub_port_id': 28142838, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027237, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'autre_refus': {'main_port_id': 28142804, 'sub_port_id': 28142839, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027238, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'kraft': {'main_port_id': 28142804, 'sub_port_id': 28142840, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027239, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'Carton_brun': {'main_port_id': 28142804, 'sub_port_id': 28142841, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027240, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'environnement': {'main_port_id': 28142804, 'sub_port_id': 28142842, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027241, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'plastique': {'main_port_id': 28142804, 'sub_port_id': 28142843, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027242, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'papier': {'main_port_id': 28142804, 'sub_port_id': 28142844, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027243, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'flou': {'main_port_id': 28142804, 'sub_port_id': 28142845, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027244, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'metal': {'main_port_id': 28142804, 'sub_port_id': 28142846, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027245, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'mal_croppe': {'main_port_id': 28142804, 'sub_port_id': 28142847, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027246, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'Carton_gris': {'main_port_id': 28142804, 'sub_port_id': 28142848, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027247, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}, 'cartonnette': {'main_port_id': 28142804, 'sub_port_id': 28142849, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19027248, 'last_updated_at': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 4, 8, 29, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 4, 8, 19, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142838,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142823 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142839,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142824 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142840,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142825 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142841,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142826 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142842,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142827 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142843,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142828 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142829 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142845,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142830 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142832 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142833 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28142849,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28142835 lien utilise dans velours : https://marlene.fotonower.com/velours/28142838,28142839,28142840,28142841,28142842,28142843,28142844,28142845,28142846,28142847,28142848,28142849?tags=Teint_Dans_La_Masse,autre_refus,kraft,Carton_brun,environnement,plastique,papier,flou,metal,mal_croppe,Carton_gris,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28142804]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1392331018, 1392330935, 1392330873, 1392330833] map_info['map_portfolio_photo'] : {28142804: [1392331018, 1392330935, 1392330873, 1392330833, 1392330345, 1392330339, 1392330336, 1392330277, 1392330250, 1392330218, 1392329838, 1392329756, 1392329692, 1392329647, 1392329491, 1392328799, 1392328759, 1392328694, 1392328488, 1392328475, 1392328466, 1392328459, 1392328456, 1392328435, 1392328429, 1392328422, 1392328412, 1392328373, 1392328370, 1392328361, 1392328359, 1392328351, 1392328323, 1392328321, 1392328318, 1392328280, 1392328278, 1392328275, 1392328042, 1392328041, 1392328039, 1392327775, 1392327750, 1392327739, 1392327717, 1392327685, 1392327679, 1392327677, 1392327674, 1392327672, 1392327555, 1392327554, 1392327552]} final : False mtd_id 4302 list_pids : [1392331018, 1392330935, 1392330873, 1392330833] Looping around the photos to save general results len do output : 1 /28142804. 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, '3995501') ('4302', '28142804', '1392331018', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330935', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330873', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330833', None, None, None, None, None, '3995501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '28142804', "{'Teint_Dans_La_Masse': 28142823, 'autre_refus': 28142824, 'kraft': 28142825, 'Carton_brun': 28142826, 'environnement': 28142827, 'plastique': 28142828, 'papier': 28142829, 'flou': 28142830, 'metal': 28142832, 'mal_croppe': 28142833, 'Carton_gris': 28142834, 'cartonnette': 28142835}", None, None, None, None, '3995501'), ('4302', '28142804', '1392331018', None, None, None, None, None, '3995501'), ('4302', '28142804', '1392330935', None, None, None, None, None, '3995501'), ('4302', '28142804', '1392330873', None, None, None, None, None, '3995501'), ('4302', '28142804', '1392330833', None, None, None, None, None, '3995501')] time used for this insertion : 0.012862920761108398 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5496232509613037 time spend to save output : 0.01953721046447754 total time spend for step 1 : 1.5691604614257812 step2:final Tue Nov 4 08:31:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28142804) 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 28142804 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1392327555,1392327554,1392327552,1392327685,1392327679,1392327677,1392327674,1392327672,1392327775,1392327750,1392327739,1392327717,1392328042,1392328041,1392328039,1392328280,1392328278,1392328275,1392328323,1392328321,1392328318,1392328373,1392328370,1392328361,1392328359,1392328351,1392328435,1392328429,1392328422,1392328412,1392328488,1392328475,1392328466,1392328459,1392328456,1392328799,1392328759,1392328694,1392329838,1392329756,1392329692,1392329491,1392329647,1392330277,1392330250,1392330218,1392330345,1392330339,1392330336,1392331018,1392330935,1392330873,1392330833); 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([28142804]) Inside saveOutput : final : False verbose : True original output for save of step final : {1392331018: ('0.040697461820614136',), 1392330935: ('0.040697461820614136',), 1392330873: ('0.040697461820614136',), 1392330833: ('0.040697461820614136',)} new output for save of step final : {1392331018: ('0.040697461820614136',), 1392330935: ('0.040697461820614136',), 1392330873: ('0.040697461820614136',), 1392330833: ('0.040697461820614136',)} [1392331018, 1392330935, 1392330873, 1392330833] map_info['map_portfolio_photo'] : {28142804: [1392331018, 1392330935, 1392330873, 1392330833, 1392330345, 1392330339, 1392330336, 1392330277, 1392330250, 1392330218, 1392329838, 1392329756, 1392329692, 1392329647, 1392329491, 1392328799, 1392328759, 1392328694, 1392328488, 1392328475, 1392328466, 1392328459, 1392328456, 1392328435, 1392328429, 1392328422, 1392328412, 1392328373, 1392328370, 1392328361, 1392328359, 1392328351, 1392328323, 1392328321, 1392328318, 1392328280, 1392328278, 1392328275, 1392328042, 1392328041, 1392328039, 1392327775, 1392327750, 1392327739, 1392327717, 1392327685, 1392327679, 1392327677, 1392327674, 1392327672, 1392327555, 1392327554, 1392327552]} final : False mtd_id 4302 list_pids : [1392331018, 1392330935, 1392330873, 1392330833] Looping around the photos to save general results len do output : 4 /1392331018.Didn't retrieve data . /1392330935.Didn't retrieve data . /1392330873.Didn't retrieve data . /1392330833.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, '3995501') ('4302', '28142804', '1392331018', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330935', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330873', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330833', None, None, None, None, None, '3995501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28142804', '1392331018', '0.040697461820614136', None, None, None, None, '3995501'), ('4302', '28142804', '1392330935', '0.040697461820614136', None, None, None, None, '3995501'), ('4302', '28142804', '1392330873', '0.040697461820614136', None, None, None, None, '3995501'), ('4302', '28142804', '1392330833', '0.040697461820614136', None, None, None, None, '3995501')] time used for this insertion : 0.012634754180908203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0663154125213623 time spend to save output : 0.012970447540283203 total time spend for step 2 : 0.07928586006164551 step3:velours_tree Tue Nov 4 08:31:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28142804: [{'Teint_Dans_La_Masse': 28142823, 'autre_refus': 28142824, 'kraft': 28142825, 'Carton_brun': 28142826, 'environnement': 28142827, 'plastique': 28142828, 'papier': 28142829, 'flou': 28142830, 'metal': 28142832, 'mal_croppe': 28142833, 'Carton_gris': 28142834, 'cartonnette': 28142835}]} input_args_next_step : {28142804: ()} output_args : {28142804: [{'Teint_Dans_La_Masse': 28142823, 'autre_refus': 28142824, 'kraft': 28142825, 'Carton_brun': 28142826, 'environnement': 28142827, 'plastique': 28142828, 'papier': 28142829, 'flou': 28142830, 'metal': 28142832, 'mal_croppe': 28142833, 'Carton_gris': 28142834, 'cartonnette': 28142835}]} args : 28142804 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 : ({'Teint_Dans_La_Masse': 28142823, 'autre_refus': 28142824, 'kraft': 28142825, 'Carton_brun': 28142826, 'environnement': 28142827, 'plastique': 28142828, 'papier': 28142829, 'flou': 28142830, 'metal': 28142832, 'mal_croppe': 28142833, 'Carton_gris': 28142834, 'cartonnette': 28142835},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28142804) 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([28142804]) 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.3460566997528076 time spend to save output : 7.414817810058594e-05 total time spend for step 3 : 0.3461308479309082 step4:send_mail_cod Tue Nov 4 08:31:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1392331018: ('0.040697461820614136',), 1392330935: ('0.040697461820614136',), 1392330873: ('0.040697461820614136',), 1392330833: ('0.040697461820614136',)} input_args_next_step : {1392331018: ()} output_args : {1392331018: ('0.040697461820614136',), 1392330935: ('0.040697461820614136',), 1392330873: ('0.040697461820614136',), 1392330833: ('0.040697461820614136',)} args : 1392331018 depend.output_id : 0 input_args_next_step : {1392331018: ('0.040697461820614136',), 1392330935: ()} output_args : {1392331018: ('0.040697461820614136',), 1392330935: ('0.040697461820614136',), 1392330873: ('0.040697461820614136',), 1392330833: ('0.040697461820614136',)} args : 1392330935 depend.output_id : 0 input_args_next_step : {1392331018: ('0.040697461820614136',), 1392330935: ('0.040697461820614136',), 1392330873: ()} output_args : {1392331018: ('0.040697461820614136',), 1392330935: ('0.040697461820614136',), 1392330873: ('0.040697461820614136',), 1392330833: ('0.040697461820614136',)} args : 1392330873 depend.output_id : 0 input_args_next_step : {1392331018: ('0.040697461820614136',), 1392330935: ('0.040697461820614136',), 1392330873: ('0.040697461820614136',), 1392330833: ()} output_args : {1392331018: ('0.040697461820614136',), 1392330935: ('0.040697461820614136',), 1392330873: ('0.040697461820614136',), 1392330833: ('0.040697461820614136',)} args : 1392330833 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 : {28142804: [{'Teint_Dans_La_Masse': 28142823, 'autre_refus': 28142824, 'kraft': 28142825, 'Carton_brun': 28142826, 'environnement': 28142827, 'plastique': 28142828, 'papier': 28142829, 'flou': 28142830, 'metal': 28142832, 'mal_croppe': 28142833, 'Carton_gris': 28142834, 'cartonnette': 28142835}]} input_args_next_step : {1392331018: ('0.040697461820614136',), 1392330935: ('0.040697461820614136',), 1392330873: ('0.040697461820614136',), 1392330833: ('0.040697461820614136',), 28142804: ()} output_args : {28142804: [{'Teint_Dans_La_Masse': 28142823, 'autre_refus': 28142824, 'kraft': 28142825, 'Carton_brun': 28142826, 'environnement': 28142827, 'plastique': 28142828, 'papier': 28142829, 'flou': 28142830, 'metal': 28142832, 'mal_croppe': 28142833, 'Carton_gris': 28142834, 'cartonnette': 28142835}]} args : 28142804 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 :5, first value : ('0.040697461820614136',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28142804) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1392331018,1392330935,1392330873,1392330833) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1392330833 begin to download photo : 1392330873 begin to download photo : 1392330935 begin to download photo : 1392331018 download finish for photo 1392330873 download finish for photo 1392330833 download finish for photo 1392331018 download finish for photo 1392330935 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P28142804_04-11-2025_08_31_02.pdf 28142824 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142824 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392331483: '1762241346_407621_1392328456_1da238d222135be65ce61ebbcacb6c57_rle_crop_4018766261_0.png', 1392331485: '1762241346_407621_1392328456_1da238d222135be65ce61ebbcacb6c57_rle_crop_4018766259_0.png', 1392331644: '1762241425_408495_1392328759_675c9a1a8ca93e6e708deb6ca3a7386e_rle_crop_4018766333_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/7f6dc0b31f9d3f2d7f46eb9d101c3be9_23653920.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/3bdcdcbb28e9309c1617415cb6ee19ab_57381010.png change filename to text .imagette281428241762241462/ imagette281428241762241462/1762241346_407621_1392328456_1da238d222135be65ce61ebbcacb6c57_rle_crop_4018766261_0.png.png imagette281428241762241462/1762241346_407621_1392328456_1da238d222135be65ce61ebbcacb6c57_rle_crop_4018766259_0.png.png imagette281428241762241462/1762241425_408495_1392328759_675c9a1a8ca93e6e708deb6ca3a7386e_rle_crop_4018766333_0.png.png imagette281428251762241462/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/f0631d18185fc8f1b16f23bf78ff0451_96308621.png imagette281428241762241462 28142825 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142825 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281428251762241462 28142828 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142828 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392328953: '1762240987_399303_1392327679_5dde1d6df7604858aca8d4f82b6d9856_rle_crop_4018759076_0.png'} change filename to text .imagette281428281762241462/ imagette281428281762241462/1762240987_399303_1392327679_5dde1d6df7604858aca8d4f82b6d9856_rle_crop_4018759076_0.png.png imagette281428301762241462/ imagette281428321762241462/ imagette281428331762241462/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/2ab64df652b77aa199715a4ff7abfc90_31288519.png imagette281428281762241462 28142830 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142830 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281428301762241462 28142832 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142832 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281428321762241462 28142833 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142833 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette281428331762241462 28142835 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392328411: '1762240867_396592_1392327552_f58f60bb27c9cc42fe018ef787487ac1_rle_crop_4018756875_0.png', 1392328917: '1762240987_399303_1392327775_9b353e94ed922904c35480b8a655041d_rle_crop_4018759061_0.png', 1392330096: '1762241106_400763_1392328041_9ee65fc18311ace0178117f012b6e3e6_rle_crop_4018763243_0.png', 1392330098: '1762241106_400763_1392328041_9ee65fc18311ace0178117f012b6e3e6_rle_crop_4018763248_0.png', 1392330305: '1762241224_405117_1392327685_99aeb37fcf4c98fabbef7c3f161679fe_rle_crop_4018765469_0.png', 1392331490: '1762241346_407621_1392328475_69e5bd6c9d50721997b0ea2524995f95_rle_crop_4018766226_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/e6f859b679e0082783419aae53721d32_23916646.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/f4ddd18693db64d56577304b4ab22565_65881271.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/7dd5019375d0d2d0df607d69ba566eef_76985174.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/9275095d174b4271e8db70358482473c_1201584.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/187d146efcbe6038cafb5f5d28c5d097_70268266.png change filename to text .imagette281428351762241462/ imagette281428351762241462/1762241224_405117_1392327685_99aeb37fcf4c98fabbef7c3f161679fe_rle_crop_4018765469_0.png.png imagette281428351762241462/1762240867_396592_1392327552_f58f60bb27c9cc42fe018ef787487ac1_rle_crop_4018756875_0.png.png imagette281428351762241462/1762241106_400763_1392328041_9ee65fc18311ace0178117f012b6e3e6_rle_crop_4018763248_0.png.png imagette281428351762241462/1762240987_399303_1392327775_9b353e94ed922904c35480b8a655041d_rle_crop_4018759061_0.png.png imagette281428351762241462/1762241346_407621_1392328475_69e5bd6c9d50721997b0ea2524995f95_rle_crop_4018766226_0.png.png imagette281428351762241462/1762241106_400763_1392328041_9ee65fc18311ace0178117f012b6e3e6_rle_crop_4018763243_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/81197c2fdbd0cc5b161eb3ecfa46b00a_50506135.png imagette281428351762241462 28142823 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142823 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392328408: '1762240867_396592_1392327552_f58f60bb27c9cc42fe018ef787487ac1_rle_crop_4018756874_0.png', 1392328890: '1762240987_399303_1392327775_9b353e94ed922904c35480b8a655041d_rle_crop_4018759070_0.png', 1392328892: '1762240987_399303_1392327775_9b353e94ed922904c35480b8a655041d_rle_crop_4018759067_0.png', 1392328894: '1762240987_399303_1392327672_d36249c2ee2801896a0b46d5a699d70e_rle_crop_4018759120_0.png', 1392328896: '1762240987_399303_1392327672_d36249c2ee2801896a0b46d5a699d70e_rle_crop_4018759119_0.png', 1392329579: '1762241065_399964_1392328275_297b4f2a0683c4c8424147b6cd7ecaa6_rle_crop_4018759342_0.png', 1392331480: '1762241346_407621_1392328475_69e5bd6c9d50721997b0ea2524995f95_rle_crop_4018766216_0.png', 1392331481: '1762241346_407621_1392328456_1da238d222135be65ce61ebbcacb6c57_rle_crop_4018766262_0.png', 1392331643: '1762241425_408495_1392328694_32466e5978a25a045fe6980532b6efdc_rle_crop_4018766345_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/f01e16b1558384b028e9eebe5eb0cefd_95573481.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/e7880f17df9147bc07ebb65490e1e51b_35104337.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/10717dde7dd2247a7ed7e5d05fb8e9cb_89136008.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/5de53b38e7b09d43dd354c52e7729aec_41499093.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/ee9a7f498577dc5b8e8b642c4271bc62_99143455.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/edbcb023f6005e78f464a3024dafc255_50640996.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/c4f049f373fbc4b9c7f7dc147875667d_90436631.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/50a03db995a89eb31281895959c8254a_64580115.png change filename to text .imagette281428231762241463/ imagette281428231762241463/1762240867_396592_1392327552_f58f60bb27c9cc42fe018ef787487ac1_rle_crop_4018756874_0.png.png imagette281428231762241463/1762240987_399303_1392327672_d36249c2ee2801896a0b46d5a699d70e_rle_crop_4018759119_0.png.png imagette281428231762241463/1762241346_407621_1392328456_1da238d222135be65ce61ebbcacb6c57_rle_crop_4018766262_0.png.png imagette281428231762241463/1762240987_399303_1392327672_d36249c2ee2801896a0b46d5a699d70e_rle_crop_4018759120_0.png.png imagette281428231762241463/1762240987_399303_1392327775_9b353e94ed922904c35480b8a655041d_rle_crop_4018759070_0.png.png imagette281428231762241463/1762241346_407621_1392328475_69e5bd6c9d50721997b0ea2524995f95_rle_crop_4018766216_0.png.png imagette281428231762241463/1762241065_399964_1392328275_297b4f2a0683c4c8424147b6cd7ecaa6_rle_crop_4018759342_0.png.png imagette281428231762241463/1762240987_399303_1392327775_9b353e94ed922904c35480b8a655041d_rle_crop_4018759067_0.png.png imagette281428231762241463/1762241425_408495_1392328694_32466e5978a25a045fe6980532b6efdc_rle_crop_4018766345_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/91e2133734dd15ef144f55b91d02614f_97063897.png imagette281428231762241463 28142826 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142826 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392328934: '1762240987_399303_1392327775_9b353e94ed922904c35480b8a655041d_rle_crop_4018759066_0.png', 1392328936: '1762240987_399303_1392327672_d36249c2ee2801896a0b46d5a699d70e_rle_crop_4018759118_0.png', 1392330108: '1762241106_400763_1392328039_d28690277a1fd33263935e61daae0c5c_rle_crop_4018763265_0.png', 1392330110: '1762241106_400763_1392328039_d28690277a1fd33263935e61daae0c5c_rle_crop_4018763264_0.png', 1392331493: '1762241346_407621_1392328475_69e5bd6c9d50721997b0ea2524995f95_rle_crop_4018766224_0.png', 1392331494: '1762241346_407621_1392328459_9ed7b8046e44ade5c392786a50ab5f7d_rle_crop_4018766245_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/ec55d09f669acbd5c70abafa0075e5e3_96562395.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/e5c12e7fbc3344884d0b0432bb6856e1_44653305.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/569b110c87aead890f5476aea344e63e_96341500.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/e464f411efdb840268303bd087fc10bf_1477269.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/44a17eee2f7d0a3f9c1c95b5f3f905cd_38561527.png change filename to text .imagette281428261762241463/ imagette281428261762241463/1762241106_400763_1392328039_d28690277a1fd33263935e61daae0c5c_rle_crop_4018763265_0.png.png imagette281428261762241463/1762241346_407621_1392328475_69e5bd6c9d50721997b0ea2524995f95_rle_crop_4018766224_0.png.png imagette281428261762241463/1762240987_399303_1392327775_9b353e94ed922904c35480b8a655041d_rle_crop_4018759066_0.png.png imagette281428261762241463/1762241106_400763_1392328039_d28690277a1fd33263935e61daae0c5c_rle_crop_4018763264_0.png.png imagette281428261762241463/1762241346_407621_1392328459_9ed7b8046e44ade5c392786a50ab5f7d_rle_crop_4018766245_0.png.png imagette281428261762241463/1762240987_399303_1392327672_d36249c2ee2801896a0b46d5a699d70e_rle_crop_4018759118_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/fe491c34ffe9064a929e84543dfd7d30_85580556.png imagette281428261762241463 28142834 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392328410: '1762240867_396592_1392327552_f58f60bb27c9cc42fe018ef787487ac1_rle_crop_4018756877_0.png', 1392328906: '1762240987_399303_1392327674_d330b64cf15b6a647481d0d04361db3d_rle_crop_4018759102_0.png', 1392330304: '1762241224_405117_1392327685_99aeb37fcf4c98fabbef7c3f161679fe_rle_crop_4018765468_0.png', 1392331486: '1762241346_407621_1392328466_24e624ed621b59d1cda8ae58368dce97_rle_crop_4018766232_0.png', 1392331487: '1762241346_407621_1392328459_9ed7b8046e44ade5c392786a50ab5f7d_rle_crop_4018766248_0.png', 1392331488: '1762241346_407621_1392328456_1da238d222135be65ce61ebbcacb6c57_rle_crop_4018766260_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/d9f8dd61dc183660a544d9c9539cc8bd_36999010.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/3db85a19e383a65529f82840bd476a4c_95588405.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/d83e0c59ef5d80b25e6b86c62068e88e_37255694.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/c1fe7b293995904b7849d584381f7f53_74517721.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/12f0b8de53bc1e4eab8b0aeb390a1893_85591758.png change filename to text .imagette281428341762241464/ imagette281428341762241464/1762241346_407621_1392328459_9ed7b8046e44ade5c392786a50ab5f7d_rle_crop_4018766248_0.png.png imagette281428341762241464/1762241346_407621_1392328466_24e624ed621b59d1cda8ae58368dce97_rle_crop_4018766232_0.png.png imagette281428341762241464/1762241224_405117_1392327685_99aeb37fcf4c98fabbef7c3f161679fe_rle_crop_4018765468_0.png.png imagette281428341762241464/1762240987_399303_1392327674_d330b64cf15b6a647481d0d04361db3d_rle_crop_4018759102_0.png.png imagette281428341762241464/1762241346_407621_1392328456_1da238d222135be65ce61ebbcacb6c57_rle_crop_4018766260_0.png.png imagette281428341762241464/1762240867_396592_1392327552_f58f60bb27c9cc42fe018ef787487ac1_rle_crop_4018756877_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/36ecbd1b50d9f56731df49aa6dc1451a_71802316.png imagette281428341762241464 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28142804 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28142838,28142839,28142840,28142841,28142842,28142843,28142844,28142845,28142846,28142847,28142848,28142849?tags=Teint_Dans_La_Masse,autre_refus,kraft,Carton_brun,environnement,plastique,papier,flou,metal,mal_croppe,Carton_gris,cartonnette your option no_mail is active, we will not send the real mail to your client args[1392331018] : ('0.040697461820614136',) no score found for photo 1392331018 We are sending mail with results at report@fotonower.com args[1392330935] : ('0.040697461820614136',) no score found for photo 1392330935 We are sending mail with results at report@fotonower.com args[1392330873] : ('0.040697461820614136',) no score found for photo 1392330873 We are sending mail with results at report@fotonower.com args[1392330833] : ('0.040697461820614136',) no score found for photo 1392330833 We are sending mail with results at report@fotonower.com refus_total : 0.040697461820614136 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142804 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_P28142804_04-11-2025_08_31_02.pdf results_Auto_P28142804_04-11-2025_08_31_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28142804_04-11-2025_08_31_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28142804','results_Auto_P28142804_04-11-2025_08_31_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28142804_04-11-2025_08_31_02.pdf','pdf','','0.14','0.040697461820614136') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28142804]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1392331018, 1392330935, 1392330873, 1392330833] map_info['map_portfolio_photo'] : {28142804: [1392331018, 1392330935, 1392330873, 1392330833, 1392330345, 1392330339, 1392330336, 1392330277, 1392330250, 1392330218, 1392329838, 1392329756, 1392329692, 1392329647, 1392329491, 1392328799, 1392328759, 1392328694, 1392328488, 1392328475, 1392328466, 1392328459, 1392328456, 1392328435, 1392328429, 1392328422, 1392328412, 1392328373, 1392328370, 1392328361, 1392328359, 1392328351, 1392328323, 1392328321, 1392328318, 1392328280, 1392328278, 1392328275, 1392328042, 1392328041, 1392328039, 1392327775, 1392327750, 1392327739, 1392327717, 1392327685, 1392327679, 1392327677, 1392327674, 1392327672, 1392327555, 1392327554, 1392327552]} final : False mtd_id 4302 list_pids : [1392331018, 1392330935, 1392330873, 1392330833] 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, '3995501') ('4302', '28142804', '1392331018', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330935', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330873', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330833', None, None, None, None, None, '3995501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '28142804', '1392331018', None, None, None, None, None, '3995501'), ('4302', '28142804', '1392330935', None, None, None, None, None, '3995501'), ('4302', '28142804', '1392330873', None, None, None, None, None, '3995501'), ('4302', '28142804', '1392330833', None, None, None, None, None, '3995501')] time used for this insertion : 0.01323699951171875 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.476717710494995 time spend to save output : 0.013492822647094727 total time spend for step 4 : 3.49021053314209 step5:split_time_score Tue Nov 4 08:31:05 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 : ['28142804'] 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 : [('28142804',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28142804) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1392330873: {'path': 'temp/1762241462_4016104_1392330873_6df0a98613ab4ae6492c8204227eb84c.jpg', 'extension': 'jpg'}, 1392330833: {'path': 'temp/1762241462_4016104_1392330833_a4451a2d31a23b6fba74a38a93bedda9.jpg', 'extension': 'jpg'}, 1392331018: {'path': 'temp/1762241462_4016104_1392331018_10244d7a541e97525cf4be8ab28a7830.jpg', 'extension': 'jpg'}, 1392330935: {'path': 'temp/1762241462_4016104_1392330935_17bd94fb92d0ef948581b9dc01d57bf6.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 = 28142804; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28142804 group by h (('08', 53),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28142804 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 (28142804) 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 (28142804) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04112025 28142804 Nombre de photos uploadées : 53 / 23040 (0%) 04112025 28142804 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 04112025 28142804 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1392327555, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/9f4319ca2ac34282dfb42f01a1d6bb24.jpg', 'username': None, 'uploaded_at': 1762240568, 'text': 'image_04112025_08_15_13_10136.jpg'}, {'photo_id': 1392327554, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/0a95153f1380bb1c83797accf4e5310a.jpg', 'username': None, 'uploaded_at': 1762240568, 'text': 'image_04112025_08_15_24_10140.jpg'}, {'photo_id': 1392327552, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/f58f60bb27c9cc42fe018ef787487ac1.jpg', 'username': None, 'uploaded_at': 1762240568, 'text': 'image_04112025_08_15_34_10142.jpg'}, {'photo_id': 1392327685, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/4/99aeb37fcf4c98fabbef7c3f161679fe.jpg', 'username': None, 'uploaded_at': 1762240627, 'text': 'image_04112025_08_15_44_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0033414363861083984 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28142804, '2025-11-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-04' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2503266,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.22065162658691406 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= 2503266 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28123472, 'dashboard_result_id': 16757041, '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_P28123472_04-11-2025_06_08_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28123474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28123475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28123476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28123477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28123478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28123479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28123480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28123481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28123482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28123483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28123484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28123485, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28123890, 'dashboard_result_id': 16757042, '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_P28123890_04-11-2025_06_09_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28123899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28123900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28123901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28123902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28123903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28123904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28123905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28123906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28123907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28123908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28123909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28123910, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28124264, 'dashboard_result_id': 16757043, '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_P28124264_04-11-2025_06_10_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28124316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28124317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28124318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28124319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28124320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28124321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28124322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28124323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28124324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28124325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28124326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28124327, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28124852, 'dashboard_result_id': 16757044, '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_P28124852_04-11-2025_06_10_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28124856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28124857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28124858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28124859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28124860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28124861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28124862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28124863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28124864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28124865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28124866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28124867, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28126317, 'dashboard_result_id': 16757045, '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_P28126317_04-11-2025_06_11_16.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28126322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28126323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28126324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28126325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28126326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28126327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28126328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28126329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28126330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28126331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28126332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28126333, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28126933, 'dashboard_result_id': 16757046, '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_P28126933_04-11-2025_06_11_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28126991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28126992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28126993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28126994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28126995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28126996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28126997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28126998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28126999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28127000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28127001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28127002, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28127390, 'dashboard_result_id': 16757047, '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_P28127390_04-11-2025_06_12_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28127415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28127416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28127417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28127418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28127419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28127420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28127421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28127422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28127423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28127424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28127425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28127426, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28128065, 'dashboard_result_id': 16757048, '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_P28128065_04-11-2025_06_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28128069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28128070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28128071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28128072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28128073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28128074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28128075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28128076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28128077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28128078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28128079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28128080, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28128502, 'dashboard_result_id': 16757049, '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_P28128502_04-11-2025_06_13_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28128543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28128544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28128545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28128546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28128547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28128548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28128549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28128550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28128551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28128552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28128553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28128554, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28129163, 'dashboard_result_id': 16757050, '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_P28129163_04-11-2025_06_13_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28129164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129170, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28129174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129175, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28129705, 'dashboard_result_id': 16757051, '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_P28129705_04-11-2025_06_14_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28129749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28129753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129760, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28130392, 'dashboard_result_id': 16757052, '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_P28130392_04-11-2025_06_15_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28130417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28130418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28130419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28130420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28130421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28130422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28130423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28130424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28130425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28130426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28130427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28130428, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28131240, 'dashboard_result_id': 16757053, '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_P28131240_04-11-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28131244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28131245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28131246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28131247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28131248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28131249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28131250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28131251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28131252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28131253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28131254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28131255, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28131780, 'dashboard_result_id': 16757054, '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_P28131780_04-11-2025_06_16_18.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28131806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28131807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28131808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28131809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28131810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28131812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28131813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28131814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28131815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28131816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28131817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28131818, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28132440, 'dashboard_result_id': 16757055, '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_P28132440_04-11-2025_06_16_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28132469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28132470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28132471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28132472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28132473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28132474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28132475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28132476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28132477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28132478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28132479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28132480, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28134742, 'dashboard_result_id': 16757056, '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_P28134742_04-11-2025_06_17_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28134745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28134746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28134747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28134748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28134749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28134750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28134751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28134752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28134753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28134754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28134755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28134756, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28135066, 'dashboard_result_id': 16757057, '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_P28135066_04-11-2025_06_17_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28135092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28135093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28135094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28135095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28135096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28135097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28135098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28135099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28135100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28135101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28135102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28135103, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28135267, 'dashboard_result_id': 16757058, '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_P28135267_04-11-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28135303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28135304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28135305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28135306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28135307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28135308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28135309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28135310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28135311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28135312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28135313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28135314, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28135833, 'dashboard_result_id': 16757059, '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_P28135833_04-11-2025_06_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28135838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28135839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28135840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28135841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28135842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28135843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28135844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28135845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28135846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28135847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28135848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28135849, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28136289, 'dashboard_result_id': 16757060, '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_P28136289_04-11-2025_06_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28136293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28136294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28136295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28136296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28136297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28136298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28136299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28136300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28136301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28136302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28136303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28136304, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28136968, 'dashboard_result_id': 16757061, '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_P28136968_04-11-2025_06_34_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28136990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28136991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28136992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28136993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28136994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28136995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28136996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28136997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28136998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28136999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28137000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28137001, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28137588, 'dashboard_result_id': 16757062, '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_P28137588_04-11-2025_06_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28137637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28137638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28137639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28137640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28137641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28137642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28137643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28137644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28137646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28137648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28137651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28137653, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28138146, 'dashboard_result_id': 16757063, '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_P28138146_04-11-2025_07_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28138187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28138188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28138189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28138190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28138191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28138192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28138193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28138194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28138195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28138196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28138197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28138198, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28138799, 'dashboard_result_id': 16757064, '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_P28138799_04-11-2025_07_19_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28138819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28138820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28138821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28138822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28138823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28138824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28138825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28138826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28138827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28138828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28138829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28138830, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28139733, 'dashboard_result_id': 16757065, '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_P28139733_04-11-2025_07_35_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28139756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28139757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28139758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28139759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28139760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28139761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28139762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28139763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28139764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28139765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28139766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28139767, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28140546, 'dashboard_result_id': 16757066, '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_P28140546_04-11-2025_07_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28140570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28140571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28140572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28140573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28140574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28140575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28140576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28140577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28140578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28140579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28140580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28140581, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28141396, 'dashboard_result_id': 16757067, '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_P28141396_04-11-2025_08_06_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28141443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28141444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28141445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28141446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28141447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28141448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28141449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28141450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28141451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28141452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28141453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28141454, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28142167, 'dashboard_result_id': 16757068, '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_P28142167_04-11-2025_08_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28142189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28142190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28142191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28142192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28142193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28142194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28142195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28142196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28142197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28142198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28142199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28142200, 'pht': 3726}}"}, {'dashboat_entry_day': 2503266, 'dashboard_run_id': 2513377, 'mtr_portfolio_id': 28142804, 'dashboard_result_id': 16757069, '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_P28142804_04-11-2025_08_29_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28142823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28142824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28142825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28142826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28142827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28142828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28142829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28142830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28142832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28142833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28142834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28142835, '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 = 28123472 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': 3993965, 'mtr_portfolio_id': 28123472, 'created_at': datetime.datetime(2025, 11, 4, 6, 8, 30), 'result': '0.04630939593376634', 'result_long': None, 'result_double': None}] Qualite : 0.04630939593376634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28123472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28123472_04-11-2025_06_08_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28123472 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_P28123472_04-11-2025_06_08_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28123474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28123475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28123476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28123477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28123478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28123479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28123480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28123481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28123482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28123483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28123484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28123485, 'pht': 3726}}" where mtr_portfolio_id = 28123472 and dashboard_run_id = 2513377 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`=28123472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757041, 0.04630939593376634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28123472_04-11-2025_06_08_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28123474, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28123475, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28123476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28123477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28123478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28123479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28123480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28123481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28123482, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28123483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28123484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28123485, '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 = 28123890 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': 3993966, 'mtr_portfolio_id': 28123890, 'created_at': datetime.datetime(2025, 11, 4, 6, 9, 28), 'result': '0.04991267424432694', 'result_long': None, 'result_double': None}] Qualite : 0.04991267424432694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28123890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28123890_04-11-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28123890 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_P28123890_04-11-2025_06_09_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28123899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28123900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28123901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28123902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28123903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28123904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28123905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28123906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28123907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28123908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28123909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28123910, 'pht': 3726}}" where mtr_portfolio_id = 28123890 and dashboard_run_id = 2513377 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`=28123890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757042, 0.04991267424432694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28123890_04-11-2025_06_09_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28123899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28123900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28123901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28123902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28123903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28123904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28123905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28123906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28123907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28123908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28123909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28123910, '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 = 28124264 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': 3993967, 'mtr_portfolio_id': 28124264, 'created_at': datetime.datetime(2025, 11, 4, 6, 9, 58), 'result': '0.06543906943027794', 'result_long': None, 'result_double': None}] Qualite : 0.06543906943027794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28124264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28124264_04-11-2025_06_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28124264 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_P28124264_04-11-2025_06_10_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28124316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28124317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28124318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28124319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28124320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28124321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28124322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28124323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28124324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28124325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28124326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28124327, 'pht': 3726}}" where mtr_portfolio_id = 28124264 and dashboard_run_id = 2513377 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`=28124264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757043, 0.06543906943027794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28124264_04-11-2025_06_10_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28124316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28124317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28124318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28124319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28124320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28124321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28124322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28124323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28124324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28124325, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28124326, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28124327, '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 = 28124852 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': 3993968, 'mtr_portfolio_id': 28124852, 'created_at': datetime.datetime(2025, 11, 4, 6, 10, 28), 'result': '0.05533266878109363', 'result_long': None, 'result_double': None}] Qualite : 0.05533266878109363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28124852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28124852_04-11-2025_06_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28124852 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_P28124852_04-11-2025_06_10_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28124856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28124857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28124858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28124859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28124860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28124861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28124862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28124863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28124864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28124865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28124866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28124867, 'pht': 3726}}" where mtr_portfolio_id = 28124852 and dashboard_run_id = 2513377 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`=28124852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757044, 0.05533266878109363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28124852_04-11-2025_06_10_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28124856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28124857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28124858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28124859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28124860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28124861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28124862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28124863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28124864, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28124865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28124866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28124867, '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 = 28126317 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': 3993969, 'mtr_portfolio_id': 28126317, 'created_at': datetime.datetime(2025, 11, 4, 6, 11, 12), 'result': '0.07732689597303057', 'result_long': None, 'result_double': None}] Qualite : 0.07732689597303057 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28126317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28126317_04-11-2025_06_11_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28126317 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_P28126317_04-11-2025_06_11_16.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28126322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28126323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28126324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28126325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28126326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28126327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28126328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28126329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28126330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28126331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28126332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28126333, 'pht': 3726}}" where mtr_portfolio_id = 28126317 and dashboard_run_id = 2513377 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`=28126317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757045, 0.07732689597303057, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28126317_04-11-2025_06_11_16.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28126322, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28126323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28126324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28126325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28126326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28126327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28126328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28126329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28126330, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28126331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28126332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28126333, '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 = 28126933 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': 3993970, 'mtr_portfolio_id': 28126933, 'created_at': datetime.datetime(2025, 11, 4, 6, 11, 31), 'result': '0.045604452158560634', 'result_long': None, 'result_double': None}] Qualite : 0.045604452158560634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28126933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28126933_04-11-2025_06_11_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28126933 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_P28126933_04-11-2025_06_11_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28126991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28126992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28126993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28126994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28126995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28126996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28126997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28126998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28126999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28127000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28127001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28127002, 'pht': 3726}}" where mtr_portfolio_id = 28126933 and dashboard_run_id = 2513377 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`=28126933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757046, 0.045604452158560634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28126933_04-11-2025_06_11_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28126991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28126992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28126993, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28126994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28126995, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28126996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28126997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28126998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28126999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28127000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28127001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28127002, '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 = 28127390 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': 3993971, 'mtr_portfolio_id': 28127390, 'created_at': datetime.datetime(2025, 11, 4, 6, 11, 59), 'result': '0.0348205584061535', 'result_long': None, 'result_double': None}] Qualite : 0.0348205584061535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28127390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28127390_04-11-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28127390 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_P28127390_04-11-2025_06_12_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28127415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28127416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28127417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28127418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28127419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28127420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28127421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28127422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28127423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28127424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28127425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28127426, 'pht': 3726}}" where mtr_portfolio_id = 28127390 and dashboard_run_id = 2513377 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`=28127390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757047, 0.0348205584061535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28127390_04-11-2025_06_12_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28127415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28127416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28127417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28127418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28127419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28127420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28127421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28127422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28127423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28127424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28127425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28127426, '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 = 28128065 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': 3993972, 'mtr_portfolio_id': 28128065, 'created_at': datetime.datetime(2025, 11, 4, 6, 12, 57), 'result': '0.035043307602960115', 'result_long': None, 'result_double': None}] Qualite : 0.035043307602960115 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28128065 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28128065_04-11-2025_06_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28128065 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_P28128065_04-11-2025_06_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28128069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28128070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28128071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28128072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28128073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28128074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28128075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28128076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28128077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28128078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28128079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28128080, 'pht': 3726}}" where mtr_portfolio_id = 28128065 and dashboard_run_id = 2513377 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`=28128065 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757048, 0.035043307602960115, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28128065_04-11-2025_06_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28128069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28128070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28128071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28128072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28128073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28128074, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28128075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28128076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28128077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28128078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28128079, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28128080, '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 = 28128502 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': 3993973, 'mtr_portfolio_id': 28128502, 'created_at': datetime.datetime(2025, 11, 4, 6, 13, 28), 'result': '0.05837924168419694', 'result_long': None, 'result_double': None}] Qualite : 0.05837924168419694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28128502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28128502_04-11-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28128502 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_P28128502_04-11-2025_06_13_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28128543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28128544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28128545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28128546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28128547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28128548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28128549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28128550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28128551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28128552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28128553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28128554, 'pht': 3726}}" where mtr_portfolio_id = 28128502 and dashboard_run_id = 2513377 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`=28128502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757049, 0.05837924168419694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28128502_04-11-2025_06_13_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28128543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28128544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28128545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28128546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28128547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28128548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28128549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28128550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28128551, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28128552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28128553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28128554, '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 = 28129163 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': 3993974, 'mtr_portfolio_id': 28129163, 'created_at': datetime.datetime(2025, 11, 4, 6, 13, 57), 'result': '0.024820580435470162', 'result_long': None, 'result_double': None}] Qualite : 0.024820580435470162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28129163 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28129163_04-11-2025_06_13_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28129163 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_P28129163_04-11-2025_06_13_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28129164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129170, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28129174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129175, 'pht': 3726}}" where mtr_portfolio_id = 28129163 and dashboard_run_id = 2513377 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`=28129163 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757050, 0.024820580435470162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28129163_04-11-2025_06_13_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28129164, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129166, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129170, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28129174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129175, '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 = 28129705 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': 3993975, 'mtr_portfolio_id': 28129705, 'created_at': datetime.datetime(2025, 11, 4, 6, 14, 27), 'result': '0.06260130543876621', 'result_long': None, 'result_double': None}] Qualite : 0.06260130543876621 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28129705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28129705_04-11-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28129705 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_P28129705_04-11-2025_06_14_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28129749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28129753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129760, 'pht': 3726}}" where mtr_portfolio_id = 28129705 and dashboard_run_id = 2513377 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`=28129705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757051, 0.06260130543876621, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28129705_04-11-2025_06_14_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28129749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28129750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28129751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28129752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28129753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28129754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28129755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28129756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28129757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28129758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28129759, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28129760, '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 = 28130392 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': 3993976, 'mtr_portfolio_id': 28130392, 'created_at': datetime.datetime(2025, 11, 4, 6, 15, 28), 'result': '0.051931014819516515', 'result_long': None, 'result_double': None}] Qualite : 0.051931014819516515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28130392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28130392_04-11-2025_06_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28130392 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_P28130392_04-11-2025_06_15_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28130417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28130418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28130419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28130420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28130421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28130422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28130423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28130424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28130425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28130426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28130427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28130428, 'pht': 3726}}" where mtr_portfolio_id = 28130392 and dashboard_run_id = 2513377 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`=28130392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757052, 0.051931014819516515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28130392_04-11-2025_06_15_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28130417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28130418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28130419, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28130420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28130421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28130422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28130423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28130424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28130425, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28130426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28130427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28130428, '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 = 28131240 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': 3993977, 'mtr_portfolio_id': 28131240, 'created_at': datetime.datetime(2025, 11, 4, 6, 16), 'result': '0.06549621652839901', 'result_long': None, 'result_double': None}] Qualite : 0.06549621652839901 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28131240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28131240_04-11-2025_06_16_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28131240 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_P28131240_04-11-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28131244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28131245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28131246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28131247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28131248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28131249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28131250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28131251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28131252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28131253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28131254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28131255, 'pht': 3726}}" where mtr_portfolio_id = 28131240 and dashboard_run_id = 2513377 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`=28131240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757053, 0.06549621652839901, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28131240_04-11-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28131244, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28131245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28131246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28131247, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28131248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28131249, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28131250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28131251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28131252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28131253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28131254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28131255, '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 = 28131780 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': 3993978, 'mtr_portfolio_id': 28131780, 'created_at': datetime.datetime(2025, 11, 4, 6, 16, 13), 'result': '0.054334198056012036', 'result_long': None, 'result_double': None}] Qualite : 0.054334198056012036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28131780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28131780_04-11-2025_06_16_18.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28131780 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_P28131780_04-11-2025_06_16_18.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28131806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28131807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28131808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28131809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28131810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28131812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28131813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28131814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28131815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28131816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28131817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28131818, 'pht': 3726}}" where mtr_portfolio_id = 28131780 and dashboard_run_id = 2513377 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`=28131780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757054, 0.054334198056012036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28131780_04-11-2025_06_16_18.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28131806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28131807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28131808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28131809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28131810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28131812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28131813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28131814, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28131815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28131816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28131817, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28131818, '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 = 28132440 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': 3993979, 'mtr_portfolio_id': 28132440, 'created_at': datetime.datetime(2025, 11, 4, 6, 16, 28), 'result': '0.04736351933688976', 'result_long': None, 'result_double': None}] Qualite : 0.04736351933688976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28132440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28132440_04-11-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28132440 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_P28132440_04-11-2025_06_16_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28132469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28132470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28132471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28132472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28132473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28132474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28132475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28132476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28132477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28132478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28132479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28132480, 'pht': 3726}}" where mtr_portfolio_id = 28132440 and dashboard_run_id = 2513377 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`=28132440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757055, 0.04736351933688976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28132440_04-11-2025_06_16_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28132469, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28132470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28132471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28132472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28132473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28132474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28132475, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28132476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28132477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28132478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28132479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28132480, '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 = 28134742 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': 3993981, 'mtr_portfolio_id': 28134742, 'created_at': datetime.datetime(2025, 11, 4, 6, 17, 30), 'result': '0.043060411833443606', 'result_long': None, 'result_double': None}] Qualite : 0.043060411833443606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28134742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28134742_04-11-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28134742 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_P28134742_04-11-2025_06_17_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28134745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28134746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28134747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28134748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28134749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28134750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28134751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28134752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28134753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28134754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28134755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28134756, 'pht': 3726}}" where mtr_portfolio_id = 28134742 and dashboard_run_id = 2513377 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`=28134742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757056, 0.043060411833443606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28134742_04-11-2025_06_17_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28134745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28134746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28134747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28134748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28134749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28134750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28134751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28134752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28134753, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28134754, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28134755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28134756, '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 = 28135066 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': 3993982, 'mtr_portfolio_id': 28135066, 'created_at': datetime.datetime(2025, 11, 4, 6, 17, 57), 'result': '0.04877199315337247', 'result_long': None, 'result_double': None}] Qualite : 0.04877199315337247 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28135066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28135066_04-11-2025_06_17_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28135066 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_P28135066_04-11-2025_06_17_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28135092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28135093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28135094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28135095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28135096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28135097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28135098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28135099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28135100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28135101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28135102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28135103, 'pht': 3726}}" where mtr_portfolio_id = 28135066 and dashboard_run_id = 2513377 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`=28135066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757057, 0.04877199315337247, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28135066_04-11-2025_06_17_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28135092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28135093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28135094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28135095, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28135096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28135097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28135098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28135099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28135100, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28135101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28135102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28135103, '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 = 28135267 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': 3993893, 'mtr_portfolio_id': 28135267, 'created_at': datetime.datetime(2025, 11, 4, 5, 46, 59), 'result': '0.04211723764889731', 'result_long': None, 'result_double': None}] Qualite : 0.04211723764889731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28135267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28135267_04-11-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28135267 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_P28135267_04-11-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28135303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28135304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28135305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28135306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28135307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28135308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28135309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28135310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28135311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28135312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28135313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28135314, 'pht': 3726}}" where mtr_portfolio_id = 28135267 and dashboard_run_id = 2513377 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`=28135267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757058, 0.04211723764889731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28135267_04-11-2025_05_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28135303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28135304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28135305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28135306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28135307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28135308, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28135309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28135310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28135311, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28135312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28135313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28135314, '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 = 28135833 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': 3994075, 'mtr_portfolio_id': 28135833, 'created_at': datetime.datetime(2025, 11, 4, 6, 4, 59), 'result': '0.054513809365100196', 'result_long': None, 'result_double': None}] Qualite : 0.054513809365100196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28135833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28135833_04-11-2025_06_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28135833 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_P28135833_04-11-2025_06_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28135838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28135839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28135840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28135841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28135842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28135843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28135844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28135845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28135846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28135847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28135848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28135849, 'pht': 3726}}" where mtr_portfolio_id = 28135833 and dashboard_run_id = 2513377 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`=28135833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757059, 0.054513809365100196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28135833_04-11-2025_06_04_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28135838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28135839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28135840, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28135841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28135842, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28135843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28135844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28135845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28135846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28135847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28135848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28135849, '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 = 28136289 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': 3994143, 'mtr_portfolio_id': 28136289, 'created_at': datetime.datetime(2025, 11, 4, 6, 16, 59), 'result': '0.031461636664971926', 'result_long': None, 'result_double': None}] Qualite : 0.031461636664971926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28136289 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28136289_04-11-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28136289 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_P28136289_04-11-2025_06_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28136293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28136294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28136295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28136296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28136297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28136298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28136299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28136300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28136301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28136302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28136303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28136304, 'pht': 3726}}" where mtr_portfolio_id = 28136289 and dashboard_run_id = 2513377 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`=28136289 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757060, 0.031461636664971926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28136289_04-11-2025_06_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28136293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28136294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28136295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28136296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28136297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28136298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28136299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28136300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28136301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28136302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28136303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28136304, '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 = 28136968 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': 3994214, 'mtr_portfolio_id': 28136968, 'created_at': datetime.datetime(2025, 11, 4, 6, 34, 58), 'result': '0.06967123912076012', 'result_long': None, 'result_double': None}] Qualite : 0.06967123912076012 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28136968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28136968_04-11-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28136968 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_P28136968_04-11-2025_06_34_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28136990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28136991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28136992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28136993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28136994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28136995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28136996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28136997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28136998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28136999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28137000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28137001, 'pht': 3726}}" where mtr_portfolio_id = 28136968 and dashboard_run_id = 2513377 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`=28136968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757061, 0.06967123912076012, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28136968_04-11-2025_06_34_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28136990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28136991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28136992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28136993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28136994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28136995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28136996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28136997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28136998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28136999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28137000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28137001, '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 = 28137588 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': 3994318, 'mtr_portfolio_id': 28137588, 'created_at': datetime.datetime(2025, 11, 4, 6, 48, 58), 'result': '0.04543400353585638', 'result_long': None, 'result_double': None}] Qualite : 0.04543400353585638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28137588 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28137588_04-11-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28137588 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_P28137588_04-11-2025_06_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28137637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28137638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28137639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28137640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28137641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28137642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28137643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28137644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28137646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28137648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28137651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28137653, 'pht': 3726}}" where mtr_portfolio_id = 28137588 and dashboard_run_id = 2513377 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`=28137588 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757062, 0.04543400353585638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28137588_04-11-2025_06_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28137637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28137638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28137639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28137640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28137641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28137642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28137643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28137644, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28137646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28137648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28137651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28137653, '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 = 28138146 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': 3994379, 'mtr_portfolio_id': 28138146, 'created_at': datetime.datetime(2025, 11, 4, 7, 3, 30), 'result': '0.03317790698198497', 'result_long': None, 'result_double': None}] Qualite : 0.03317790698198497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28138146 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28138146_04-11-2025_07_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28138146 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_P28138146_04-11-2025_07_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28138187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28138188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28138189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28138190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28138191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28138192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28138193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28138194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28138195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28138196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28138197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28138198, 'pht': 3726}}" where mtr_portfolio_id = 28138146 and dashboard_run_id = 2513377 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`=28138146 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757063, 0.03317790698198497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28138146_04-11-2025_07_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28138187, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28138188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28138189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28138190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28138191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28138192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28138193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28138194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28138195, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28138196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28138197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28138198, '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 = 28138799 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': 3994526, 'mtr_portfolio_id': 28138799, 'created_at': datetime.datetime(2025, 11, 4, 7, 19, 57), 'result': '0.12057242655631127', 'result_long': None, 'result_double': None}] Qualite : 0.12057242655631127 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28138799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28138799_04-11-2025_07_19_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28138799 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_P28138799_04-11-2025_07_19_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28138819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28138820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28138821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28138822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28138823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28138824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28138825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28138826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28138827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28138828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28138829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28138830, 'pht': 3726}}" where mtr_portfolio_id = 28138799 and dashboard_run_id = 2513377 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`=28138799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757064, 0.12057242655631127, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28138799_04-11-2025_07_19_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28138819, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28138820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28138821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28138822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28138823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28138824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28138825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28138826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28138827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28138828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28138829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28138830, '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 = 28139733 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': 3994748, 'mtr_portfolio_id': 28139733, 'created_at': datetime.datetime(2025, 11, 4, 7, 35, 31), 'result': '0.04969135802469136', 'result_long': None, 'result_double': None}] Qualite : 0.04969135802469136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28139733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28139733_04-11-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28139733 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_P28139733_04-11-2025_07_35_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28139756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28139757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28139758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28139759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28139760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28139761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28139762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28139763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28139764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28139765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28139766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28139767, 'pht': 3726}}" where mtr_portfolio_id = 28139733 and dashboard_run_id = 2513377 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`=28139733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757065, 0.04969135802469136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28139733_04-11-2025_07_35_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28139756, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28139757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28139758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28139759, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28139760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28139761, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28139762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28139763, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28139764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28139765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28139766, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28139767, '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 = 28140546 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': 3994922, 'mtr_portfolio_id': 28140546, 'created_at': datetime.datetime(2025, 11, 4, 7, 49), 'result': '0.09401388438722184', 'result_long': None, 'result_double': None}] Qualite : 0.09401388438722184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28140546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28140546_04-11-2025_07_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28140546 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_P28140546_04-11-2025_07_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28140570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28140571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28140572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28140573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28140574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28140575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28140576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28140577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28140578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28140579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28140580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28140581, 'pht': 3726}}" where mtr_portfolio_id = 28140546 and dashboard_run_id = 2513377 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`=28140546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757066, 0.09401388438722184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28140546_04-11-2025_07_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28140570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28140571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28140572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28140573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28140574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28140575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28140576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28140577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28140578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28140579, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28140580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28140581, '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 = 28141396 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': 3995120, 'mtr_portfolio_id': 28141396, 'created_at': datetime.datetime(2025, 11, 4, 8, 6, 31), 'result': '0.04386069277452685', 'result_long': None, 'result_double': None}] Qualite : 0.04386069277452685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28141396 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28141396_04-11-2025_08_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28141396 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_P28141396_04-11-2025_08_06_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28141443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28141444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28141445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28141446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28141447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28141448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28141449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28141450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28141451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28141452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28141453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28141454, 'pht': 3726}}" where mtr_portfolio_id = 28141396 and dashboard_run_id = 2513379 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`=28141396 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757067, 0.04386069277452685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28141396_04-11-2025_08_06_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28141443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28141444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28141445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28141446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28141447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28141448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28141449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28141450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28141451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28141452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28141453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28141454, '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 = 28142167 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': 3995317, 'mtr_portfolio_id': 28142167, 'created_at': datetime.datetime(2025, 11, 4, 8, 18, 58), 'result': '0.06491223421211728', 'result_long': None, 'result_double': None}] Qualite : 0.06491223421211728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28142167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28142167_04-11-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28142167 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_P28142167_04-11-2025_08_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28142189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28142190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28142191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28142192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28142193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28142194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28142195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28142196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28142197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28142198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28142199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28142200, 'pht': 3726}}" where mtr_portfolio_id = 28142167 and dashboard_run_id = 2513379 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`=28142167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757068, 0.06491223421211728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28142167_04-11-2025_08_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28142189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28142190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28142191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28142192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28142193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28142194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28142195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28142196, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28142197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28142198, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28142199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28142200, '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 = 28142804 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': 3995501, 'mtr_portfolio_id': 28142804, 'created_at': datetime.datetime(2025, 11, 4, 8, 31, 1), 'result': '0.040697461820614136', 'result_long': None, 'result_double': None}] Qualite : 0.040697461820614136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28142804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28142804_04-11-2025_08_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28142804 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_P28142804_04-11-2025_08_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28142823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28142824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28142825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28142826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28142827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28142828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28142829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28142830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28142832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28142833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28142834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28142835, 'pht': 3726}}" where mtr_portfolio_id = 28142804 and dashboard_run_id = 2513379 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`=28142804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16757069, 0.040697461820614136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28142804_04-11-2025_08_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28142823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28142824, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28142825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28142826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28142827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28142828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28142829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28142830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28142832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28142833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28142834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28142835, '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 (28123472,28123890,28124264,28124852,28126317,28126933,28127390,28128065,28128502,28129163,28129705,28130392,28131240,28131780,28132440,28134742,28135066,28135267,28135833,28136289,28136968,28137588,28138146,28138799,28139733,28140546,28141396,28142167,28142804) result : ((1392204983,), (1392205871,), (1392205908,), (1392205943,), (1392205979,), (1392206015,), (1392206037,), (1392206041,), (1392206044,), (1392206067,), (1392206099,), (1392206129,), (1392206164,), (1392206201,), (1392206574,), (1392206580,), (1392206584,), (1392206603,), (1392206872,), (1392206907,), (1392206938,), (1392206971,), (1392207309,), (1392207311,), (1392207313,), (1392207328,), (1392207845,), (1392207865,), (1392207878,), (1392207896,), (1392207937,), (1392207940,), (1392207943,), (1392207947,), (1392207970,), (1392208004,), (1392208037,), (1392208210,), (1392208212,), (1392208213,), (1392208214,), (1392208216,), (1392208239,), (1392208241,), (1392208245,), (1392208249,), (1392208253,), (1392208257,), (1392208274,), (1392208278,), (1392208280,), (1392208282,), (1392208316,), (1392208689,), (1392208725,), (1392208759,), (1392209227,), (1392209212,), (1392209215,), (1392209217,), (1392209220,), (1392209224,), (1392209430,), (1392209441,), (1392209449,), (1392209482,), (1392209486,), (1392209516,), (1392209551,), (1392209553,), (1392209568,), (1392209570,), (1392209601,), (1392209604,), (1392209607,), (1392209609,), (1392209613,), (1392209618,), (1392209701,), (1392209714,), (1392209742,), (1392209745,), (1392209787,), (1392209789,), (1392209824,), (1392209840,), (1392209921,), (1392209924,), (1392209927,), (1392209929,), (1392209932,), (1392209936,), (1392209949,), (1392209950,), (1392209951,), (1392209953,), (1392209956,), (1392209959,), (1392209997,), (1392209998,), (1392210000,), (1392210003,), (1392210099,), (1392210101,), (1392210103,), (1392210105,), (1392210107,), (1392210110,), (1392210188,), (1392210221,), (1392210256,), (1392210277,), (1392210395,), (1392210429,), (1392210462,), (1392210496,), (1392210536,), (1392210929,), (1392210962,), (1392210997,), (1392211394,), (1392211398,), (1392211400,), (1392211403,), (1392211411,), (1392211622,), (1392211666,), (1392211730,), (1392211822,), (1392213145,), (1392213218,), (1392213305,), (1392213412,), (1392213601,), (1392212958,), (1392213075,), (1392213606,), (1392213615,), (1392213617,), (1392213623,), (1392213916,), (1392213934,), (1392213990,), (1392214383,), (1392214386,), (1392214402,), (1392214435,), (1392214451,), (1392214454,), (1392214555,), (1392214557,), (1392214559,), (1392214562,), (1392214566,), (1392214590,), (1392214592,), (1392214594,), (1392214596,), (1392214600,), (1392214635,), (1392214637,), (1392214638,), (1392214642,), (1392214671,), (1392214692,), (1392214693,), (1392214709,), (1392214738,), (1392214780,), (1392215125,), (1392215173,), (1392215215,), (1392215258,), (1392215295,), (1392215338,), (1392215875,), (1392215908,), (1392216199,), (1392216202,), (1392216203,), (1392216567,), (1392216602,), (1392216650,), (1392216693,), (1392217263,), (1392217296,), (1392217343,), (1392217374,), (1392217410,), (1392217635,), (1392217637,), (1392217640,), (1392217795,), (1392217681,), (1392217684,), (1392217724,), (1392217757,), (1392217992,), (1392218027,), (1392218271,), (1392218276,), (1392218312,), (1392218324,), (1392218343,), (1392218800,), (1392218838,), (1392218861,), (1392218863,), (1392218885,), (1392219011,), (1392219015,), (1392219019,), (1392219022,), (1392219052,), (1392219073,), (1392219085,), (1392219095,), (1392219103,), (1392219212,), (1392219249,), (1392219274,), (1392219275,), (1392219277,), (1392219279,), (1392219367,), (1392219410,), (1392219447,), (1392219484,), (1392219896,), (1392219928,), (1392219960,), (1392219992,), (1392220026,), (1392220060,), (1392220113,), (1392220116,), (1392220118,), (1392220254,), (1392220329,), (1392220395,), (1392220480,), (1392220543,), (1392221003,), (1392221066,), (1392221093,), (1392221339,), (1392221352,), (1392221355,), (1392221387,), (1392221393,), (1392221415,), (1392221447,), (1392221450,), (1392221452,), (1392221454,), (1392221457,), (1392221704,), (1392221737,), (1392221746,), (1392221761,), (1392221800,), (1392230972,), (1392230974,), (1392230976,), (1392230999,), (1392231001,), (1392231003,), (1392231006,), (1392231013,), (1392231073,), (1392231074,), (1392231075,), (1392231283,), (1392231317,), (1392231350,), (1392231382,), (1392231415,), (1392231763,), (1392231765,), (1392231921,), (1392231965,), (1392231999,), (1392232050,), (1392232085,), (1392232122,), (1392232552,), (1392232610,), (1392232650,), (1392232686,), (1392232725,), (1392233061,), (1392233069,), (1392233073,), (1392233104,), (1392233140,), (1392233322,), (1392233323,), (1392233328,), (1392233359,), (1392233362,), (1392233381,), (1392233383,), (1392233385,), (1392233387,), (1392233390,), (1392233436,), (1392233452,), (1392233453,), (1392233454,), (1392233615,), (1392233733,), (1392233767,), (1392233799,), (1392233842,), (1392234192,), (1392234223,), (1392234255,), (1392234294,), (1392234716,), (1392234748,), (1392234774,), (1392234776,), (1392234792,), (1392235220,), (1392235178,), (1392235183,), (1392235186,), (1392235189,), (1392235194,), (1392235410,), (1392235444,), (1392235479,), (1392235519,), (1392235565,), (1392235949,), (1392235951,), (1392235954,), (1392235985,), (1392236004,), (1392236007,), (1392236096,), (1392236119,), (1392236151,), (1392236184,), (1392236568,), (1392236597,), (1392236625,), (1392236653,), (1392236683,), (1392236710,), (1392236756,), (1392236757,), (1392236760,), (1392236764,), (1392236768,), (1392236797,), (1392237029,), (1392237067,), (1392237088,), (1392237099,), (1392237211,), (1392237220,), (1392237231,), (1392237235,), (1392237243,), (1392237245,), (1392237262,), (1392237263,), (1392237264,), (1392237267,), (1392237287,), (1392237290,), (1392237292,), (1392237294,), (1392237296,), (1392237298,), (1392237338,), (1392237372,), (1392237407,), (1392237440,), (1392237472,), (1392237507,), (1392237827,), (1392237858,), (1392237893,), (1392238165,), (1392238166,), (1392238168,), (1392239304,), (1392239340,), (1392239351,), (1392239357,), (1392239624,), (1392239597,), (1392239615,), (1392239774,), (1392239805,), (1392239836,), (1392239871,), (1392239908,), (1392239949,), (1392240270,), (1392240304,), (1392240341,), (1392240407,), (1392240448,), (1392240802,), (1392240806,), (1392240809,), (1392241018,), (1392241050,), (1392241079,), (1392241113,), (1392241145,), (1392241199,), (1392241591,), (1392241636,), (1392241669,), (1392241699,), (1392242100,), (1392242136,), (1392242168,), (1392242201,), (1392242369,), (1392242374,), (1392242386,), (1392242392,), (1392242409,), (1392242421,), (1392242587,), (1392242615,), (1392242646,), (1392242679,), (1392242716,), (1392242893,), (1392242895,), (1392242896,), (1392242930,), (1392242943,), (1392242944,), (1392242946,), (1392242951,), (1392242956,), (1392243186,), (1392243248,), (1392243315,), (1392243377,), (1392243415,), (1392243809,), (1392243840,), (1392243875,), (1392244131,), (1392244136,), (1392244138,), (1392244140,), (1392244156,), (1392244402,), (1392244406,), (1392245049,), (1392245017,), (1392245965,), (1392245972,), (1392245974,), (1392245977,), (1392245979,), (1392245982,), (1392245997,), (1392246000,), (1392246001,), (1392246062,), (1392246065,), (1392246070,), (1392246074,), (1392246089,), (1392246092,), (1392246145,), (1392246149,), (1392246153,), (1392246157,), (1392246161,), (1392246184,), (1392246189,), (1392246191,), (1392246230,), (1392246234,), (1392246238,), (1392246241,), (1392246245,), (1392246249,), (1392246268,), (1392246270,), (1392246271,), (1392246273,), (1392246276,), (1392246278,), (1392246291,), (1392246300,), (1392246315,), (1392246450,), (1392246452,), (1392246454,), (1392246457,), (1392246480,), (1392246483,), (1392246485,), (1392246486,), (1392246495,), (1392246504,), (1392246577,), (1392246606,), (1392246640,), (1392246682,), (1392247264,), (1392247299,), (1392247336,), (1392247369,), (1392247477,), (1392247185,), (1392247224,), (1392247633,), (1392247672,), (1392247724,), (1392247774,), (1392247818,), (1392247953,), (1392247954,), (1392247955,), (1392247957,), (1392248260,), (1392248293,), (1392249215,), (1392249277,), (1392249342,), (1392249396,), (1392249435,), (1392249906,), (1392249947,), (1392249993,), (1392250003,), (1392250007,), (1392250011,), (1392250035,), (1392250067,), (1392250101,), (1392250136,), (1392250175,), (1392250209,), (1392250348,), (1392250393,), (1392250420,), (1392250568,), (1392250571,), (1392250574,), (1392250605,), (1392250610,), (1392250874,), (1392250909,), (1392250941,), (1392250976,), (1392251010,), (1392251047,), (1392251255,), (1392251258,), (1392251260,), (1392251548,), (1392251550,), (1392251588,), (1392251590,), (1392251623,), (1392251661,), (1392251675,), (1392251702,), (1392251765,), (1392251767,), (1392251770,), (1392252008,), (1392251832,), (1392251866,), (1392251901,), (1392251936,), (1392251972,), (1392252290,), (1392252301,), (1392252305,), (1392252455,), (1392252487,), (1392252519,), (1392252552,), (1392252742,), (1392252743,), (1392252744,), (1392252746,), (1392252750,), (1392252753,), (1392252773,), (1392252777,), (1392252781,), (1392252831,), (1392252832,), (1392252844,), (1392252877,), (1392252914,), (1392252954,), (1392253073,), (1392253110,), (1392253242,), (1392253277,), (1392253310,), (1392253346,), (1392253369,), (1392253373,), (1392253545,), (1392253547,), (1392253548,), (1392253850,), (1392253876,), (1392253878,), (1392253982,), (1392253985,), (1392253988,), (1392254013,), (1392254014,), (1392254016,), (1392254019,), (1392254024,), (1392254200,), (1392254212,), (1392254214,), (1392254217,), (1392254221,), (1392254224,), (1392254232,), (1392254235,), (1392254237,), (1392254275,), (1392254278,), (1392254283,), (1392254285,), (1392254288,), (1392254298,), (1392254332,), (1392254368,), (1392254403,), (1392254438,), (1392254972,), (1392255004,), (1392255038,), (1392255070,), (1392255692,), (1392255880,), (1392254904,), (1392254939,), (1392255308,), (1392255405,), (1392255494,), (1392255560,), (1392255623,), (1392256068,), (1392256132,), (1392256192,), (1392256268,), (1392256804,), (1392256816,), (1392256848,), (1392256875,), (1392256901,), (1392256958,), (1392257026,), (1392257096,), (1392257164,), (1392257503,), (1392257536,), (1392257540,), (1392257543,), (1392257561,), (1392257602,), (1392257639,), (1392257666,), (1392257691,), (1392257694,), (1392257739,), (1392257755,), (1392257769,), (1392257775,), (1392257788,), (1392257790,), (1392257805,), (1392257807,), (1392257809,), (1392257812,), (1392257816,), (1392257820,), (1392257853,), (1392257888,), (1392257920,), (1392258349,), (1392258383,), (1392258417,), (1392258427,), (1392258431,), (1392258436,), (1392258646,), (1392258699,), (1392258740,), (1392258775,), (1392258843,), (1392258880,), (1392259141,), (1392259148,), (1392259187,), (1392259219,), (1392259243,), (1392259292,), (1392259293,), (1392259294,), (1392259296,), (1392259300,), (1392259304,), (1392259319,), (1392259323,), (1392259325,), (1392259327,), (1392259760,), (1392259655,), (1392259692,), (1392259726,), (1392259880,), (1392259917,), (1392259987,), (1392260066,), (1392260138,), (1392260433,), (1392260444,), (1392260447,), (1392260452,), (1392260475,), (1392260478,), (1392260482,), (1392260540,), (1392260546,), (1392260547,), (1392260550,), (1392260553,), (1392260573,), (1392260576,), (1392260579,), (1392260583,), (1392260587,), (1392260590,), (1392260596,), (1392260600,), (1392260607,), (1392260613,), (1392260614,), (1392260615,), (1392260617,), (1392260620,), (1392260676,), (1392260689,), (1392260691,), (1392260693,), (1392260697,), (1392260698,), (1392261048,), (1392261114,), (1392261188,), (1392261793,), (1392261839,), (1392261886,), (1392261941,), (1392261978,), (1392262016,), (1392262336,), (1392262341,), (1392262346,), (1392262349,), (1392262352,), (1392262404,), (1392262410,), (1392262453,), (1392262491,), (1392263163,), (1392263231,), (1392263437,), (1392263473,), (1392263509,), (1392263545,), (1392263724,), (1392263726,), (1392263727,), (1392263730,), (1392263760,), (1392263762,), (1392263765,), (1392263768,), (1392263771,), (1392263759,), (1392263787,), (1392263790,), (1392263794,), (1392263798,), (1392263802,), (1392263826,), (1392263828,), (1392263830,), (1392263832,), (1392263869,), (1392263870,), (1392263874,), (1392263876,), (1392263877,), (1392263911,), (1392263923,), (1392263990,), (1392263993,), (1392263994,), (1392263995,), (1392263998,), (1392264043,), (1392264045,), (1392264046,), (1392264049,), (1392264054,), (1392264101,), (1392264104,), (1392264106,), (1392264115,), (1392264124,), (1392264435,), (1392264496,), (1392265096,), (1392265136,), (1392265172,), (1392265209,), (1392265247,), (1392265406,), (1392265408,), (1392265410,), (1392265418,), (1392265436,), (1392265440,), (1392265773,), (1392265810,), (1392265857,), (1392265908,), (1392266349,), (1392266366,), (1392266403,), (1392266424,), (1392266428,), (1392266432,), (1392266533,), (1392266535,), (1392266536,), (1392266540,), (1392266549,), (1392266552,), (1392266585,), (1392266588,), (1392266630,), (1392266672,), (1392267102,), (1392267012,), (1392267014,), (1392267039,), (1392267071,), (1392267098,), (1392267223,), (1392267261,), (1392267296,), (1392267307,), (1392267341,), (1392267358,), (1392267378,), (1392267743,), (1392267781,), (1392267813,), (1392267845,), (1392268095,), (1392268098,), (1392268101,), (1392268104,), (1392268118,), (1392268158,), (1392268301,), (1392268336,), (1392268337,), (1392268338,), (1392268341,), (1392268365,), (1392268367,), (1392268369,), (1392268372,), (1392268375,), (1392268378,), (1392268399,), (1392268401,), (1392268404,), (1392268405,), (1392268406,), (1392268408,), (1392268419,), (1392268517,), (1392268520,), (1392268522,), (1392268525,), (1392268529,), (1392268531,), (1392268544,), (1392268547,), (1392268550,), (1392268577,), (1392268580,), (1392268586,), (1392268592,), (1392268597,), (1392268602,), (1392268623,), (1392268625,), (1392268636,), (1392268643,), (1392268651,), (1392268659,), (1392268676,), (1392268678,), (1392268679,), (1392268685,), (1392268692,), (1392268853,), (1392268889,), (1392268923,), (1392268959,), (1392269418,), (1392269254,), (1392269314,), (1392269823,), (1392269857,), (1392269895,), (1392269948,), (1392269986,), (1392270025,), (1392270056,), (1392270100,), (1392270137,), (1392270170,), (1392270204,), (1392270236,), (1392270565,), (1392270602,), (1392270633,), (1392270665,), (1392271058,), (1392271091,), (1392271123,), (1392271159,), (1392271196,), (1392271233,), (1392271598,), (1392271611,), (1392271631,), (1392271658,), (1392271661,), (1392271663,), (1392271699,), (1392271702,), (1392271705,), (1392271708,), (1392271713,), (1392272048,), (1392272081,), (1392272113,), (1392272332,), (1392272340,), (1392272359,), (1392272384,), (1392272386,), (1392272387,), (1392272388,), (1392272719,), (1392272755,), (1392272788,), (1392272822,), (1392273098,), (1392273100,), (1392287622,), (1392287588,), (1392287942,), (1392288347,), (1392288382,), (1392288434,), (1392288471,), (1392288511,), (1392288516,), (1392288520,), (1392288524,), (1392288529,), (1392288568,), (1392288570,), (1392288580,), (1392288584,), (1392288587,), (1392288620,), (1392288622,), (1392288623,), (1392288625,), (1392288652,), (1392288655,), (1392288657,), (1392288662,), (1392288671,), (1392288688,), (1392288731,), (1392288732,), (1392288733,), (1392288734,), (1392288736,), (1392288784,), (1392288785,), (1392288786,), (1392288789,), (1392289056,), (1392289094,), (1392289224,), (1392289212,), (1392289216,), (1392289219,), (1392289222,), (1392289668,), (1392290527,), (1392291083,), (1392291084,), (1392291085,), (1392291108,), (1392291110,), (1392291111,), (1392291112,), (1392291115,), (1392291132,), (1392291135,), (1392291138,), (1392291142,), (1392291181,), (1392291199,), (1392291269,), (1392291271,), (1392291273,), (1392291306,), (1392291309,), (1392291314,), (1392291316,), (1392291322,), (1392291326,), (1392291772,), (1392291783,), (1392291785,), (1392291787,), (1392291800,), (1392291842,), (1392291879,), (1392291672,), (1392291708,), (1392291747,), (1392291764,), (1392291768,), (1392292001,), (1392292038,), (1392292078,), (1392292186,), (1392292187,), (1392292189,), (1392292191,), (1392292194,), (1392292198,), (1392292388,), (1392292391,), (1392292393,), (1392292395,), (1392292398,), (1392292420,), (1392292445,), (1392292451,), (1392292455,), (1392292488,), (1392292490,), (1392292492,), (1392292494,), (1392294198,), (1392295331,), (1392295335,), (1392295369,), (1392295399,), (1392295404,), (1392295428,), (1392295454,), (1392295480,), (1392295482,), (1392295500,), (1392295598,), (1392295615,), (1392295619,), (1392295620,), (1392295655,), (1392295659,), (1392295660,), (1392295662,), (1392295687,), (1392295689,), (1392295691,), (1392295704,), (1392295706,), (1392295710,), (1392295750,), (1392295754,), (1392295758,), (1392295762,), (1392295768,), (1392295790,), (1392295793,), (1392295794,), (1392295801,), (1392295825,), (1392295839,), (1392295927,), (1392295939,), (1392295947,), (1392295958,), (1392295996,), (1392296016,), (1392296019,), (1392296022,), (1392296054,), (1392296057,), (1392296059,), (1392296079,), (1392296081,), (1392296083,), (1392296085,), (1392296348,), (1392296361,), (1392296962,), (1392297002,), (1392297038,), (1392297079,), (1392297115,), (1392297155,), (1392297191,), (1392297194,), (1392297198,), (1392297488,), (1392297522,), (1392297555,), (1392297592,), (1392297425,), (1392297435,), (1392297474,), (1392297486,), (1392297537,), (1392297540,), (1392297543,), (1392297797,), (1392298548,), (1392298614,), (1392298674,), (1392298736,), (1392299219,), (1392299262,), (1392299280,), (1392299668,), (1392299689,), (1392299697,), (1392299698,), (1392299825,), (1392299828,), (1392299832,), (1392299994,), (1392300012,), (1392300014,), (1392300018,), (1392300022,), (1392300047,), (1392300051,), (1392300054,), (1392300059,), (1392300063,), (1392300082,), (1392300084,), (1392300086,), (1392300089,), (1392300093,), (1392300117,), (1392300120,), (1392300156,), (1392300159,), (1392300161,), (1392300163,), (1392300399,), (1392300443,), (1392300478,), (1392300520,), (1392300553,), (1392300762,), (1392300808,), (1392300857,), (1392300890,), (1392300915,), (1392300985,), (1392300987,), (1392300991,), (1392301028,), (1392301064,), (1392301181,), (1392301178,), (1392301295,), (1392301307,), (1392301320,), (1392301328,), (1392301396,), (1392301414,), (1392301416,), (1392301418,), (1392301445,), (1392301446,), (1392301447,), (1392301449,), (1392301477,), (1392301480,), (1392301481,), (1392301482,), (1392301527,), (1392301529,), (1392301532,), (1392301568,), (1392301571,), (1392301575,), (1392301581,), (1392301623,), (1392302032,), (1392302066,), (1392302097,), (1392302342,), (1392302374,), (1392302568,), (1392302570,), (1392302603,), (1392302605,), (1392302607,), (1392302937,), (1392302970,), (1392303005,), (1392303041,), (1392303403,), (1392303407,), (1392303417,), (1392303420,), (1392303423,), (1392303646,), (1392303683,), (1392303706,), (1392303719,), (1392303722,), (1392303888,), (1392303911,), (1392303913,), (1392303917,), (1392303921,), (1392303924,), (1392304038,), (1392304073,), (1392304245,), (1392304287,), (1392304343,), (1392304389,), (1392304410,), (1392304422,), (1392304452,), (1392303944,), (1392303947,), (1392303967,), (1392304003,), (1392304435,), (1392304439,), (1392304443,), (1392304447,), (1392304462,), (1392304465,), (1392304467,), (1392304510,), (1392304513,), (1392304515,), (1392304516,), (1392304519,), (1392304521,), (1392304545,), (1392304547,), (1392304549,), (1392304552,), (1392304556,), (1392304560,), (1392304583,), (1392304585,), (1392304586,), (1392304587,), (1392304633,), (1392304638,), (1392304652,), (1392304656,), (1392304661,), (1392304731,), (1392304742,), (1392304755,), (1392305195,), (1392305266,), (1392305883,), (1392305919,), (1392305954,), (1392305988,), (1392306021,), (1392306057,), (1392306181,), (1392306205,), (1392306209,), (1392306214,), (1392306219,), (1392306474,), (1392306510,), (1392306545,), (1392306705,), (1392306708,), (1392306711,), (1392306714,), (1392306740,), (1392306742,), (1392306743,), (1392306954,), (1392306985,), (1392307014,), (1392307041,), (1392307052,), (1392307056,), (1392307155,), (1392307159,), (1392307162,), (1392307196,), (1392307200,), (1392307202,), (1392307205,), (1392307132,), (1392307137,), (1392307143,), (1392307210,), (1392307212,), (1392307215,), (1392307241,), (1392307243,), (1392307245,), (1392307302,), (1392307306,), (1392307309,), (1392307332,), (1392307335,), (1392307338,), (1392307341,), (1392307344,), (1392307361,), (1392307363,), (1392307365,), (1392307367,), (1392307370,), (1392307374,), (1392307401,), (1392307409,), (1392307888,), (1392307921,), (1392307986,), (1392308305,), (1392308310,), (1392308342,), (1392308381,), (1392308415,), (1392308626,), (1392308628,), (1392308631,), (1392308634,), (1392308673,), (1392308711,), (1392308715,), (1392308741,), (1392308761,), (1392308763,), (1392308794,), (1392308797,), (1392308806,), (1392308877,), (1392308887,), (1392308890,), (1392308908,), (1392309201,), (1392309235,), (1392309238,), (1392309242,), (1392309420,), (1392309400,), (1392309405,), (1392309453,), (1392309456,), (1392309457,), (1392309503,), (1392309509,), (1392309511,), (1392309513,), (1392309718,), (1392309754,), (1392309792,), (1392309827,), (1392309863,), (1392310509,), (1392310581,), (1392310646,), (1392310714,), (1392311437,), (1392311443,), (1392311446,), (1392311665,), (1392311705,), (1392311714,), (1392312056,), (1392312094,), (1392312125,), (1392312148,), (1392312332,), (1392312343,), (1392312353,), (1392312358,), (1392312372,), (1392312404,), (1392312489,), (1392312491,), (1392312878,), (1392312945,), (1392312979,), (1392313004,), (1392313111,), (1392313147,), (1392313193,), (1392313241,), (1392313294,), (1392313551,), (1392313554,), (1392313557,), (1392313560,), (1392313566,), (1392313780,), (1392313815,), (1392313828,), (1392314020,), (1392314024,), (1392314029,), (1392314033,), (1392314047,), (1392314052,), (1392314090,), (1392314077,), (1392314081,), (1392314083,), (1392314086,), (1392314112,), (1392314116,), (1392314148,), (1392314193,), (1392314349,), (1392314351,), (1392314352,), (1392314418,), (1392314453,), (1392314493,), (1392314517,), (1392314585,), (1392314588,), (1392314589,), (1392314593,), (1392314598,), (1392314694,), (1392314697,), (1392314701,), (1392314705,), (1392314783,), (1392314794,), (1392314797,), (1392314812,), (1392314821,), (1392314876,), (1392314879,), (1392314885,), (1392314889,), (1392314894,), (1392314897,), (1392315059,), (1392315108,), (1392315145,), (1392315197,), (1392315489,), (1392315491,), (1392315495,), (1392315526,), (1392315562,), (1392315601,), (1392315708,), (1392315713,), (1392315745,), (1392315778,), (1392315788,), (1392315805,), (1392315870,), (1392315872,), (1392315875,), (1392315880,), (1392315912,), (1392315916,), (1392315932,), (1392315934,), (1392315938,), (1392315954,), (1392315985,), (1392315988,), (1392315993,), (1392316033,), (1392316036,), (1392316043,), (1392316158,), (1392316161,), (1392316163,), (1392316373,), (1392316375,), (1392316395,), (1392316408,), (1392316594,), (1392316597,), (1392316599,), (1392316601,), (1392316609,), (1392316569,), (1392316576,), (1392316661,), (1392316706,), (1392317011,), (1392317038,), (1392317045,), (1392317097,), (1392317098,), (1392317100,), (1392317103,), (1392317114,), (1392317121,), (1392317138,), (1392317161,), (1392317173,), (1392317576,), (1392317579,), (1392317840,), (1392317860,), (1392317900,), (1392317903,), (1392317947,), (1392317960,), (1392318038,), (1392318075,), (1392318110,), (1392318250,), (1392318252,), (1392318253,), (1392318298,), (1392318302,), (1392318305,), (1392318330,), (1392318334,), (1392318360,), (1392318384,), (1392318918,), (1392318858,), (1392318860,), (1392318881,), (1392319087,), (1392319090,), (1392319092,), (1392319094,), (1392319292,), (1392319296,), (1392319345,), (1392319387,), (1392319438,), (1392319603,), (1392319605,), (1392319608,), (1392319611,), (1392319613,), (1392319639,), (1392319641,), (1392319643,), (1392319670,), (1392319673,), (1392319676,), (1392319679,), (1392319710,), (1392319714,), (1392319726,), (1392319729,), (1392319732,), (1392319736,), (1392320093,), (1392320130,), (1392320143,), (1392320146,), (1392320333,), (1392320375,), (1392320392,), (1392320519,), (1392320521,), (1392320523,), (1392320739,), (1392320744,), (1392320747,), (1392320749,), (1392320813,), (1392320849,), (1392320890,), (1392320930,), (1392320972,), (1392321006,), (1392321185,), (1392321205,), (1392321244,), (1392321280,), (1392321286,), (1392321288,), (1392321593,), (1392321596,), (1392321599,), (1392321612,), (1392321620,), (1392321631,), (1392321633,), (1392321673,), (1392321676,), (1392321678,), (1392321737,), (1392321664,), (1392321666,), (1392321670,), (1392321687,), (1392321693,), (1392321713,), (1392321718,), (1392321723,), (1392321729,), (1392321788,), (1392321822,), (1392321921,), (1392321933,), (1392321943,), (1392321949,), (1392321959,), (1392322017,), (1392322021,), (1392322023,), (1392322026,), (1392322030,), (1392322034,), (1392322053,), (1392322055,), (1392322057,), (1392322060,), (1392322084,), (1392322086,), (1392322088,), (1392322090,), (1392322211,), (1392322241,), (1392322273,), (1392322304,), (1392322341,), (1392322879,), (1392322948,), (1392323016,), (1392323090,), (1392323858,), (1392323922,), (1392323984,), (1392324033,), (1392324070,), (1392324073,), (1392324074,), (1392324085,), (1392324124,), (1392324683,), (1392324745,), (1392324810,), (1392324876,), (1392324969,), (1392325065,), (1392325239,), (1392325281,), (1392325500,), (1392325537,), (1392325577,), (1392325633,), (1392326235,), (1392326305,), (1392326373,), (1392326442,), (1392326487,), (1392326522,), (1392327015,), (1392327052,), (1392327086,), (1392327576,), (1392327552,), (1392327554,), (1392327555,), (1392327672,), (1392327674,), (1392327677,), (1392327679,), (1392327685,), (1392327717,), (1392327739,), (1392327750,), (1392327775,), (1392328039,), (1392328041,), (1392328042,), (1392328275,), (1392328278,), (1392328280,), (1392328318,), (1392328321,), (1392328323,), (1392328351,), (1392328359,), (1392328361,), (1392328370,), (1392328373,), (1392328412,), (1392328422,), (1392328429,), (1392328435,), (1392328456,), (1392328459,), (1392328466,), (1392328475,), (1392328488,), (1392328694,), (1392328759,), (1392328799,), (1392329491,), (1392329647,), (1392329692,), (1392329756,), (1392329838,), (1392330218,), (1392330250,), (1392330277,), (1392330336,), (1392330339,), (1392330345,), (1392330833,), (1392330873,), (1392330935,), (1392331018,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04112025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28142804]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1392331018, 1392330935, 1392330873, 1392330833] map_info['map_portfolio_photo'] : {28142804: [1392331018, 1392330935, 1392330873, 1392330833, 1392330345, 1392330339, 1392330336, 1392330277, 1392330250, 1392330218, 1392329838, 1392329756, 1392329692, 1392329647, 1392329491, 1392328799, 1392328759, 1392328694, 1392328488, 1392328475, 1392328466, 1392328459, 1392328456, 1392328435, 1392328429, 1392328422, 1392328412, 1392328373, 1392328370, 1392328361, 1392328359, 1392328351, 1392328323, 1392328321, 1392328318, 1392328280, 1392328278, 1392328275, 1392328042, 1392328041, 1392328039, 1392327775, 1392327750, 1392327739, 1392327717, 1392327685, 1392327679, 1392327677, 1392327674, 1392327672, 1392327555, 1392327554, 1392327552]} final : True mtd_id 4302 list_pids : [1392331018, 1392330935, 1392330873, 1392330833] Looping around the photos to save general results len do output : 1 /28142804Didn'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, '3995501') ('4302', '28142804', '1392331018', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330935', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330873', None, None, None, None, None, '3995501') ('4302', None, None, None, None, None, None, None, '3995501') ('4302', '28142804', '1392330833', None, None, None, None, None, '3995501') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '28142804', 'None', None, None, None, None, '3995501'), ('4302', '28142804', '1392331018', None, None, None, None, None, '3995501'), ('4302', '28142804', '1392330935', None, None, None, None, None, '3995501'), ('4302', '28142804', '1392330873', None, None, None, None, None, '3995501'), ('4302', '28142804', '1392330833', None, None, None, None, None, '3995501')] time used for this insertion : 0.012572765350341797 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.496385097503662 time spend to save output : 0.012767553329467773 total time spend for step 5 : 2.50915265083313 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 (3995501) 2.08user 2.42system 0:12.28elapsed 36%CPU (0avgtext+0avgdata 158208maxresident)k 2384inputs+7240outputs (38major+72778minor)pagefaults 0swaps