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 : 3395276 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 (3764036) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3764036) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135451 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3764036'] with mtr_portfolio_ids : ['27135451'] and first list_photo_ids : [] new path : /proc/3395276/ Name: python3 Umask: 0002 State: R (running) Tgid: 3395276 Ngid: 0 Pid: 3395276 PPid: 3395275 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3395276 NSpid: 3395276 NSpgid: 3393636 NSsid: 3393636 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98616 kB VmRSS: 98616 kB RssAnon: 59832 kB RssFile: 38784 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 58 nonvoluntary_ctxt_switches: 107 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3395276', 'Ngid': '0', 'Pid': '3395276', 'PPid': '3395275', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3395276', 'NSpid': '3395276', 'NSpgid': '3393636', 'NSsid': '3393636', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98616 kB', 'VmRSS': '98616 kB', 'RssAnon': '59832 kB', 'RssFile': '38784 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '58', 'nonvoluntary_ctxt_switches': '107'} ('datou_batch_current', '3395276', '1106856', '0', '1106856', '865608', '98616', b'', 'marlene', '3764036') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27135451) 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 (3764036 ) ) 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 (27135451) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1385696585, 'portfolio_id': 27135451}, {'photo_id': 1385696581, 'portfolio_id': 27135451}, {'photo_id': 1385696577, 'portfolio_id': 27135451}, {'photo_id': 1385696574, 'portfolio_id': 27135451}, {'photo_id': 1385696572, 'portfolio_id': 27135451}, {'photo_id': 1385696563, 'portfolio_id': 27135451}, {'photo_id': 1385696509, 'portfolio_id': 27135451}, {'photo_id': 1385696503, 'portfolio_id': 27135451}, {'photo_id': 1385696494, 'portfolio_id': 27135451}, {'photo_id': 1385696490, 'portfolio_id': 27135451}, {'photo_id': 1385696478, 'portfolio_id': 27135451}, {'photo_id': 1385696458, 'portfolio_id': 27135451}, {'photo_id': 1385696453, 'portfolio_id': 27135451}, {'photo_id': 1385696449, 'portfolio_id': 27135451}, {'photo_id': 1385696447, 'portfolio_id': 27135451}, {'photo_id': 1385696444, 'portfolio_id': 27135451}, {'photo_id': 1385696423, 'portfolio_id': 27135451}, {'photo_id': 1385696420, 'portfolio_id': 27135451}, {'photo_id': 1385696414, 'portfolio_id': 27135451}, {'photo_id': 1385696413, 'portfolio_id': 27135451}, {'photo_id': 1385696411, 'portfolio_id': 27135451}, {'photo_id': 1385696387, 'portfolio_id': 27135451}, {'photo_id': 1385696384, 'portfolio_id': 27135451}, {'photo_id': 1385696383, 'portfolio_id': 27135451}, {'photo_id': 1385696380, 'portfolio_id': 27135451}, {'photo_id': 1385696350, 'portfolio_id': 27135451}, {'photo_id': 1385696347, 'portfolio_id': 27135451}, {'photo_id': 1385696344, 'portfolio_id': 27135451}, {'photo_id': 1385696342, 'portfolio_id': 27135451}, {'photo_id': 1385696341, 'portfolio_id': 27135451}, {'photo_id': 1385696340, 'portfolio_id': 27135451}, {'photo_id': 1385696321, 'portfolio_id': 27135451}, {'photo_id': 1385696318, 'portfolio_id': 27135451}, {'photo_id': 1385696314, 'portfolio_id': 27135451}, {'photo_id': 1385696313, 'portfolio_id': 27135451}, {'photo_id': 1385696311, 'portfolio_id': 27135451}, {'photo_id': 1385696273, 'portfolio_id': 27135451}, {'photo_id': 1385696270, 'portfolio_id': 27135451}, {'photo_id': 1385696266, 'portfolio_id': 27135451}, {'photo_id': 1385696264, 'portfolio_id': 27135451}, {'photo_id': 1385696262, 'portfolio_id': 27135451}, {'photo_id': 1385696260, 'portfolio_id': 27135451}, {'photo_id': 1385696239, 'portfolio_id': 27135451}, {'photo_id': 1385696236, 'portfolio_id': 27135451}, {'photo_id': 1385696233, 'portfolio_id': 27135451}, {'photo_id': 1385696232, 'portfolio_id': 27135451}, {'photo_id': 1385696229, 'portfolio_id': 27135451}, {'photo_id': 1385696216, 'portfolio_id': 27135451}, {'photo_id': 1385696213, 'portfolio_id': 27135451}, {'photo_id': 1385696210, 'portfolio_id': 27135451}, {'photo_id': 1385696208, 'portfolio_id': 27135451}, {'photo_id': 1385696207, 'portfolio_id': 27135451}, {'photo_id': 1385696206, 'portfolio_id': 27135451}, {'photo_id': 1385696179, 'portfolio_id': 27135451}, {'photo_id': 1385696176, 'portfolio_id': 27135451}, {'photo_id': 1385696173, 'portfolio_id': 27135451}, {'photo_id': 1385696171, 'portfolio_id': 27135451}, {'photo_id': 1385696167, 'portfolio_id': 27135451}, {'photo_id': 1385696146, 'portfolio_id': 27135451}, {'photo_id': 1385696143, 'portfolio_id': 27135451}, {'photo_id': 1385696140, 'portfolio_id': 27135451}, {'photo_id': 1385696138, 'portfolio_id': 27135451}, {'photo_id': 1385696137, 'portfolio_id': 27135451}, {'photo_id': 1385696136, 'portfolio_id': 27135451}, {'photo_id': 1385696117, 'portfolio_id': 27135451}, {'photo_id': 1385696113, 'portfolio_id': 27135451}, {'photo_id': 1385696111, 'portfolio_id': 27135451}] map_portfolio_id_photo_id: {27135451: [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563, 1385696509, 1385696503, 1385696494, 1385696490, 1385696478, 1385696458, 1385696453, 1385696449, 1385696447, 1385696444, 1385696423, 1385696420, 1385696414, 1385696413, 1385696411, 1385696387, 1385696384, 1385696383, 1385696380, 1385696350, 1385696347, 1385696344, 1385696342, 1385696341, 1385696340, 1385696321, 1385696318, 1385696314, 1385696313, 1385696311, 1385696273, 1385696270, 1385696266, 1385696264, 1385696262, 1385696260, 1385696239, 1385696236, 1385696233, 1385696232, 1385696229, 1385696216, 1385696213, 1385696210, 1385696208, 1385696207, 1385696206, 1385696179, 1385696176, 1385696173, 1385696171, 1385696167, 1385696146, 1385696143, 1385696140, 1385696138, 1385696137, 1385696136, 1385696117, 1385696113, 1385696111]} ##### 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.014731884002685547 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Sep 23 14:59:55 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 (27135451) 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 : 27135451 get user id for portfolio 27135451 get sub ptf for main ptf 27135451, type 3726 and hashtags ['Carton_gris', 'Teint_Dans_La_Masse', 'environnement', 'cartonnette', 'papier', 'autre_refus', 'kraft', 'flou', 'plastique', 'Carton_brun', 'mal_croppe', 'metal'] 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`=27135451 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','environnement','cartonnette','papier','autre_refus','kraft','flou','plastique','Carton_brun','mal_croppe','metal')) 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`=27135451 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','environnement','cartonnette','papier','autre_refus','kraft','flou','plastique','Carton_brun','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 27135451, 'sub_port_id': 27135455, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321853, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'metal': {'main_port_id': 27135451, 'sub_port_id': 27135457, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321854, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'plastique': {'main_port_id': 27135451, 'sub_port_id': 27135458, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321855, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'cartonnette': {'main_port_id': 27135451, 'sub_port_id': 27135459, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321856, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'Carton_gris': {'main_port_id': 27135451, 'sub_port_id': 27135460, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321857, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'mal_croppe': {'main_port_id': 27135451, 'sub_port_id': 27135461, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321858, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'Carton_brun': {'main_port_id': 27135451, 'sub_port_id': 27135462, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321859, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'papier': {'main_port_id': 27135451, 'sub_port_id': 27135463, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321860, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'kraft': {'main_port_id': 27135451, 'sub_port_id': 27135464, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321861, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'autre_refus': {'main_port_id': 27135451, 'sub_port_id': 27135465, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321862, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'environnement': {'main_port_id': 27135451, 'sub_port_id': 27135466, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321863, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}, 'flou': {'main_port_id': 27135451, 'sub_port_id': 27135467, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321864, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27135455 , 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=27135451 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 (27135455) result : ((1385696332,), (1385696333,), (1385696370,), (1385696388,), (1385696389,), (1385696430,), (1385696431,), (1385696473,), (1385696555,), (1385696556,), (1385696557,), (1385696598,), (1385696599,), (1385696600,), (1385696601,), (1385696602,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135457 , 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=27135451 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 (27135457) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135458 , 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=27135451 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 (27135458) result : ((1385696338,), (1385696396,), (1385696571,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135459 , 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=27135451 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 (27135459) result : ((1385696337,), (1385696373,), (1385696394,), (1385696435,), (1385696436,), (1385696561,), (1385696562,), (1385696564,), (1385696605,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135460 , 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=27135451 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 (27135460) result : ((1385696372,), (1385696392,), (1385696393,), (1385696433,), (1385696434,), (1385696476,), (1385696559,), (1385696560,), (1385696603,), (1385696604,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135461 , 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=27135451 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 (27135461) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135462 , 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=27135451 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 (27135462) result : ((1385696374,), (1385696375,), (1385696376,), (1385696395,), (1385696566,), (1385696567,), (1385696568,), (1385696569,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135463 , 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=27135451 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 (27135463) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135464 , 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=27135451 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 (27135464) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135465 , 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=27135451 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 (27135465) result : ((1385696334,), (1385696335,), (1385696336,), (1385696432,), (1385696474,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135466 , 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=27135451 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 (27135466) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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 27135467 , 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=27135451 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 (27135467) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27135451) result : ((1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) 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`=27135451 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','environnement','cartonnette','papier','autre_refus','kraft','flou','plastique','Carton_brun','mal_croppe','metal')) 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`=27135451 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Teint_Dans_La_Masse','environnement','cartonnette','papier','autre_refus','kraft','flou','plastique','Carton_brun','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 27135451, 'sub_port_id': 27135469, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321865, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'metal': {'main_port_id': 27135451, 'sub_port_id': 27135470, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321866, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'plastique': {'main_port_id': 27135451, 'sub_port_id': 27135471, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321867, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'cartonnette': {'main_port_id': 27135451, 'sub_port_id': 27135472, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321868, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'Carton_gris': {'main_port_id': 27135451, 'sub_port_id': 27135473, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321869, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'mal_croppe': {'main_port_id': 27135451, 'sub_port_id': 27135474, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321870, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'Carton_brun': {'main_port_id': 27135451, 'sub_port_id': 27135475, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321871, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'papier': {'main_port_id': 27135451, 'sub_port_id': 27135476, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321872, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'kraft': {'main_port_id': 27135451, 'sub_port_id': 27135477, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321873, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'autre_refus': {'main_port_id': 27135451, 'sub_port_id': 27135478, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321874, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'environnement': {'main_port_id': 27135451, 'sub_port_id': 27135479, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321875, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}, 'flou': {'main_port_id': 27135451, 'sub_port_id': 27135480, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18321876, 'last_updated_at': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 23, 14, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 23, 14, 49, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135455 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135475,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135462 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135476,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135463 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135477,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135464 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135478,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135465 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135479,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135466 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27135480,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27135467 lien utilise dans velours : https://marlene.fotonower.com/velours/27135469,27135470,27135471,27135472,27135473,27135474,27135475,27135476,27135477,27135478,27135479,27135480?tags=Teint_Dans_La_Masse,metal,plastique,cartonnette,Carton_gris,mal_croppe,Carton_brun,papier,kraft,autre_refus,environnement,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27135451]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563] map_info['map_portfolio_photo'] : {27135451: [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563, 1385696509, 1385696503, 1385696494, 1385696490, 1385696478, 1385696458, 1385696453, 1385696449, 1385696447, 1385696444, 1385696423, 1385696420, 1385696414, 1385696413, 1385696411, 1385696387, 1385696384, 1385696383, 1385696380, 1385696350, 1385696347, 1385696344, 1385696342, 1385696341, 1385696340, 1385696321, 1385696318, 1385696314, 1385696313, 1385696311, 1385696273, 1385696270, 1385696266, 1385696264, 1385696262, 1385696260, 1385696239, 1385696236, 1385696233, 1385696232, 1385696229, 1385696216, 1385696213, 1385696210, 1385696208, 1385696207, 1385696206, 1385696179, 1385696176, 1385696173, 1385696171, 1385696167, 1385696146, 1385696143, 1385696140, 1385696138, 1385696137, 1385696136, 1385696117, 1385696113, 1385696111]} final : False mtd_id 4302 list_pids : [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563] Looping around the photos to save general results len do output : 1 /27135451. 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, '3764036') ('4302', '27135451', '1385696585', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696581', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696577', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696574', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696572', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696563', None, None, None, None, None, '3764036') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27135451', "{'Teint_Dans_La_Masse': 27135455, 'metal': 27135457, 'plastique': 27135458, 'cartonnette': 27135459, 'Carton_gris': 27135460, 'mal_croppe': 27135461, 'Carton_brun': 27135462, 'papier': 27135463, 'kraft': 27135464, 'autre_refus': 27135465, 'environnement': 27135466, 'flou': 27135467}", None, None, None, None, '3764036'), ('4302', '27135451', '1385696585', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696581', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696577', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696574', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696572', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696563', None, None, None, None, None, '3764036')] time used for this insertion : 0.013596296310424805 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6003034114837646 time spend to save output : 0.013848304748535156 total time spend for step 1 : 1.6141517162322998 step2:final Tue Sep 23 14:59:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (27135451) 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 27135451 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1385696117,1385696113,1385696111,1385696146,1385696143,1385696140,1385696138,1385696137,1385696136,1385696179,1385696167,1385696176,1385696173,1385696171,1385696216,1385696213,1385696210,1385696208,1385696207,1385696206,1385696239,1385696236,1385696233,1385696232,1385696229,1385696273,1385696270,1385696266,1385696264,1385696262,1385696260,1385696321,1385696318,1385696314,1385696313,1385696311,1385696350,1385696347,1385696344,1385696342,1385696341,1385696340,1385696387,1385696384,1385696383,1385696380,1385696423,1385696420,1385696414,1385696413,1385696411,1385696458,1385696453,1385696449,1385696447,1385696444,1385696509,1385696503,1385696478,1385696494,1385696490,1385696585,1385696581,1385696577,1385696574,1385696572,1385696563); 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([27135451]) Inside saveOutput : final : False verbose : True original output for save of step final : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ('0.03461347656204438',)} new output for save of step final : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ('0.03461347656204438',)} [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563] map_info['map_portfolio_photo'] : {27135451: [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563, 1385696509, 1385696503, 1385696494, 1385696490, 1385696478, 1385696458, 1385696453, 1385696449, 1385696447, 1385696444, 1385696423, 1385696420, 1385696414, 1385696413, 1385696411, 1385696387, 1385696384, 1385696383, 1385696380, 1385696350, 1385696347, 1385696344, 1385696342, 1385696341, 1385696340, 1385696321, 1385696318, 1385696314, 1385696313, 1385696311, 1385696273, 1385696270, 1385696266, 1385696264, 1385696262, 1385696260, 1385696239, 1385696236, 1385696233, 1385696232, 1385696229, 1385696216, 1385696213, 1385696210, 1385696208, 1385696207, 1385696206, 1385696179, 1385696176, 1385696173, 1385696171, 1385696167, 1385696146, 1385696143, 1385696140, 1385696138, 1385696137, 1385696136, 1385696117, 1385696113, 1385696111]} final : False mtd_id 4302 list_pids : [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563] Looping around the photos to save general results len do output : 6 /1385696585.Didn't retrieve data . /1385696581.Didn't retrieve data . /1385696577.Didn't retrieve data . /1385696574.Didn't retrieve data . /1385696572.Didn't retrieve data . /1385696563.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, '3764036') ('4302', '27135451', '1385696585', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696581', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696577', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696574', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696572', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696563', None, None, None, None, None, '3764036') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27135451', '1385696585', '0.03461347656204438', None, None, None, None, '3764036'), ('4302', '27135451', '1385696581', '0.03461347656204438', None, None, None, None, '3764036'), ('4302', '27135451', '1385696577', '0.03461347656204438', None, None, None, None, '3764036'), ('4302', '27135451', '1385696574', '0.03461347656204438', None, None, None, None, '3764036'), ('4302', '27135451', '1385696572', '0.03461347656204438', None, None, None, None, '3764036'), ('4302', '27135451', '1385696563', '0.03461347656204438', None, None, None, None, '3764036')] time used for this insertion : 0.01233363151550293 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0679631233215332 time spend to save output : 0.012681961059570312 total time spend for step 2 : 0.08064508438110352 step3:velours_tree Tue Sep 23 14:59:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {27135451: [{'Teint_Dans_La_Masse': 27135455, 'metal': 27135457, 'plastique': 27135458, 'cartonnette': 27135459, 'Carton_gris': 27135460, 'mal_croppe': 27135461, 'Carton_brun': 27135462, 'papier': 27135463, 'kraft': 27135464, 'autre_refus': 27135465, 'environnement': 27135466, 'flou': 27135467}]} input_args_next_step : {27135451: ()} output_args : {27135451: [{'Teint_Dans_La_Masse': 27135455, 'metal': 27135457, 'plastique': 27135458, 'cartonnette': 27135459, 'Carton_gris': 27135460, 'mal_croppe': 27135461, 'Carton_brun': 27135462, 'papier': 27135463, 'kraft': 27135464, 'autre_refus': 27135465, 'environnement': 27135466, 'flou': 27135467}]} args : 27135451 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': 27135455, 'metal': 27135457, 'plastique': 27135458, 'cartonnette': 27135459, 'Carton_gris': 27135460, 'mal_croppe': 27135461, 'Carton_brun': 27135462, 'papier': 27135463, 'kraft': 27135464, 'autre_refus': 27135465, 'environnement': 27135466, 'flou': 27135467},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27135451) 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([27135451]) 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.2703542709350586 time spend to save output : 4.0531158447265625e-05 total time spend for step 3 : 0.27039480209350586 step4:send_mail_cod Tue Sep 23 14:59:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ('0.03461347656204438',)} input_args_next_step : {1385696585: ()} output_args : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ('0.03461347656204438',)} args : 1385696585 depend.output_id : 0 input_args_next_step : {1385696585: ('0.03461347656204438',), 1385696581: ()} output_args : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ('0.03461347656204438',)} args : 1385696581 depend.output_id : 0 input_args_next_step : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ()} output_args : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ('0.03461347656204438',)} args : 1385696577 depend.output_id : 0 input_args_next_step : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ()} output_args : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ('0.03461347656204438',)} args : 1385696574 depend.output_id : 0 input_args_next_step : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ()} output_args : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ('0.03461347656204438',)} args : 1385696572 depend.output_id : 0 input_args_next_step : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ()} output_args : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ('0.03461347656204438',)} args : 1385696563 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 : {27135451: [{'Teint_Dans_La_Masse': 27135455, 'metal': 27135457, 'plastique': 27135458, 'cartonnette': 27135459, 'Carton_gris': 27135460, 'mal_croppe': 27135461, 'Carton_brun': 27135462, 'papier': 27135463, 'kraft': 27135464, 'autre_refus': 27135465, 'environnement': 27135466, 'flou': 27135467}]} input_args_next_step : {1385696585: ('0.03461347656204438',), 1385696581: ('0.03461347656204438',), 1385696577: ('0.03461347656204438',), 1385696574: ('0.03461347656204438',), 1385696572: ('0.03461347656204438',), 1385696563: ('0.03461347656204438',), 27135451: ()} output_args : {27135451: [{'Teint_Dans_La_Masse': 27135455, 'metal': 27135457, 'plastique': 27135458, 'cartonnette': 27135459, 'Carton_gris': 27135460, 'mal_croppe': 27135461, 'Carton_brun': 27135462, 'papier': 27135463, 'kraft': 27135464, 'autre_refus': 27135465, 'environnement': 27135466, 'flou': 27135467}]} args : 27135451 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :7, first value : ('0.03461347656204438',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27135451) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1385696585,1385696581,1385696577,1385696574,1385696572,1385696563) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1385696563 begin to download photo : 1385696574 begin to download photo : 1385696581 download finish for photo 1385696581 begin to download photo : 1385696585 download finish for photo 1385696563 begin to download photo : 1385696572 download finish for photo 1385696574 begin to download photo : 1385696577 download finish for photo 1385696585 download finish for photo 1385696572 download finish for photo 1385696577 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette271354571758632398/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P27135451_23-09-2025_14_59_58.pdf 27135457 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271354571758632398 27135458 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385696338: '1758631946_1060792_1385696233_f416db5e49f1031670261899a476d713_rle_crop_3971697208_0.png', 1385696396: '1758632008_1063075_1385696206_cf0f1ddf017d59ff7e326517ae7b9ffd_rle_crop_3971697634_0.png', 1385696571: '1758632246_1076634_1385696341_5c59318da3b7da24c0eab6a3afb52e22_rle_crop_3971698390_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/c591bcef5af8a7c5f57c809218e384d3_82628597.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/a4a8ac6197e8ab97fc489d2a109483ae_71050760.png change filename to text .imagette271354581758632398/ imagette271354581758632398/1758632008_1063075_1385696206_cf0f1ddf017d59ff7e326517ae7b9ffd_rle_crop_3971697634_0.png.png imagette271354581758632398/1758631946_1060792_1385696233_f416db5e49f1031670261899a476d713_rle_crop_3971697208_0.png.png imagette271354581758632398/1758632246_1076634_1385696341_5c59318da3b7da24c0eab6a3afb52e22_rle_crop_3971698390_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/8b7d3834e7bdf82a5b208eba2f9590c0_32659397.png imagette271354581758632398 27135459 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135459 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385696337: '1758631946_1060792_1385696232_de548e7dcf56a7a93edec208e040e483_rle_crop_3971697215_0.png', 1385696373: '1758631987_1061374_1385696173_17dd426bea19332d796c8391c4194e0d_rle_crop_3971697380_0.png', 1385696394: '1758632008_1063075_1385696207_4a14f7ee98178aae504f0fc3f53675ec_rle_crop_3971697622_0.png', 1385696435: '1758632106_1069454_1385696140_bfd0128085bfdd12906d5fa809ef5262_rle_crop_3971697857_0.png', 1385696436: '1758632106_1069454_1385696138_88ee430c42029428c076dbaacac90bfa_rle_crop_3971697870_0.png', 1385696561: '1758632246_1076634_1385696344_8f8d3e451c0b4cc54cb1995b613c0d82_rle_crop_3971698346_0.png', 1385696562: '1758632246_1076634_1385696342_5eb44a9336d16b0cf1d9d796e5b3e80e_rle_crop_3971698360_0.png', 1385696564: '1758632246_1076634_1385696340_cd0ad15f46bcc49b44a8cc7e6f5db9a4_rle_crop_3971698397_0.png', 1385696605: '1758632345_1080425_1385696264_4c03fdb11d22dcafc380c7a5c8eed889_rle_crop_3971707508_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/4a68096b4fa52f2470dec4fd88691143_39309995.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/58ba054ce8137a06852b77bfa663547c_94110514.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/70c7f64c9a0460c1ba6e271a71e54b1b_96000244.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/f568fc11de4f71b6229028f3bfd9d618_45614005.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/345e7315e417319d572166cdb4475504_8672564.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/3562a957c7b3f440afac5528ed5ac172_7823329.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/9ef9de8c2e7d29d6060f0fbf96a5ae88_17495855.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/5aa6b7e1af226b33634f44763777573b_93157555.png change filename to text .imagette271354591758632398/ imagette271354591758632398/1758632106_1069454_1385696140_bfd0128085bfdd12906d5fa809ef5262_rle_crop_3971697857_0.png.png imagette271354591758632398/1758632246_1076634_1385696342_5eb44a9336d16b0cf1d9d796e5b3e80e_rle_crop_3971698360_0.png.png imagette271354591758632398/1758632246_1076634_1385696340_cd0ad15f46bcc49b44a8cc7e6f5db9a4_rle_crop_3971698397_0.png.png imagette271354591758632398/1758632246_1076634_1385696344_8f8d3e451c0b4cc54cb1995b613c0d82_rle_crop_3971698346_0.png.png imagette271354591758632398/1758631987_1061374_1385696173_17dd426bea19332d796c8391c4194e0d_rle_crop_3971697380_0.png.png imagette271354591758632398/1758632106_1069454_1385696138_88ee430c42029428c076dbaacac90bfa_rle_crop_3971697870_0.png.png imagette271354591758632398/1758631946_1060792_1385696232_de548e7dcf56a7a93edec208e040e483_rle_crop_3971697215_0.png.png imagette271354591758632398/1758632345_1080425_1385696264_4c03fdb11d22dcafc380c7a5c8eed889_rle_crop_3971707508_0.png.png imagette271354591758632398/1758632008_1063075_1385696207_4a14f7ee98178aae504f0fc3f53675ec_rle_crop_3971697622_0.png.png imagette271354611758632399/ imagette271354641758632399/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/810a78d8d96931d629e96a85b5a32e36_63505080.png imagette271354591758632398 27135461 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271354611758632399 27135464 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135464 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271354641758632399 27135465 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135465 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385696334: '1758631946_1060792_1385696232_de548e7dcf56a7a93edec208e040e483_rle_crop_3971697218_0.png', 1385696335: '1758631946_1060792_1385696229_78ae3b0450b1a0b159e739aa359a2c2d_rle_crop_3971697229_0.png', 1385696336: '1758631946_1060792_1385696229_78ae3b0450b1a0b159e739aa359a2c2d_rle_crop_3971697231_0.png', 1385696432: '1758632106_1069454_1385696143_ba54a09a448ef575f03c3e0980c7d414_rle_crop_3971697844_0.png', 1385696474: '1758632185_1072320_1385696380_514649b131006bf80962a4e94b5c9c5b_rle_crop_3971698088_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/2c60b62551cf95e0a222f9ee81495ebd_50696129.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/57a3beab58aeaf7c5d9d684cce89ebff_71039341.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/85dcabb08301458df557f832497d76de_11278993.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/158288def1b1e6d5df57d672fd326a0f_38181323.png change filename to text .imagette271354651758632399/ imagette271354651758632399/1758631946_1060792_1385696229_78ae3b0450b1a0b159e739aa359a2c2d_rle_crop_3971697229_0.png.png imagette271354651758632399/1758632185_1072320_1385696380_514649b131006bf80962a4e94b5c9c5b_rle_crop_3971698088_0.png.png imagette271354651758632399/1758631946_1060792_1385696232_de548e7dcf56a7a93edec208e040e483_rle_crop_3971697218_0.png.png imagette271354651758632399/1758632106_1069454_1385696143_ba54a09a448ef575f03c3e0980c7d414_rle_crop_3971697844_0.png.png imagette271354651758632399/1758631946_1060792_1385696229_78ae3b0450b1a0b159e739aa359a2c2d_rle_crop_3971697231_0.png.png imagette271354671758632399/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/e0f3f86f0f398d9fd89bb81d1674a27a_77482593.png imagette271354651758632399 27135467 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135467 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette271354671758632399 27135455 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135455 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385696332: '1758631946_1060792_1385696232_de548e7dcf56a7a93edec208e040e483_rle_crop_3971697220_0.png', 1385696333: '1758631946_1060792_1385696229_78ae3b0450b1a0b159e739aa359a2c2d_rle_crop_3971697233_0.png', 1385696370: '1758631987_1061374_1385696173_17dd426bea19332d796c8391c4194e0d_rle_crop_3971697384_0.png', 1385696388: '1758632008_1063075_1385696208_9ce820db12af80e30428c186196f23bd_rle_crop_3971697611_0.png', 1385696389: '1758632008_1063075_1385696207_4a14f7ee98178aae504f0fc3f53675ec_rle_crop_3971697624_0.png', 1385696430: '1758632106_1069454_1385696137_3933dd43de1bf91b901970c55094ab04_rle_crop_3971697885_0.png', 1385696431: '1758632106_1069454_1385696137_3933dd43de1bf91b901970c55094ab04_rle_crop_3971697882_0.png', 1385696473: '1758632185_1072320_1385696383_954a72b20f5349ff60e44b4e34d2e350_rle_crop_3971698076_0.png', 1385696555: '1758632246_1076634_1385696342_5eb44a9336d16b0cf1d9d796e5b3e80e_rle_crop_3971698366_0.png', 1385696556: '1758632246_1076634_1385696341_5c59318da3b7da24c0eab6a3afb52e22_rle_crop_3971698380_0.png', 1385696557: '1758632246_1076634_1385696341_5c59318da3b7da24c0eab6a3afb52e22_rle_crop_3971698379_0.png', 1385696598: '1758632345_1080425_1385696266_a980362ec7deccc9741ffe51567b724e_rle_crop_3971707503_0.png', 1385696599: '1758632345_1080425_1385696264_4c03fdb11d22dcafc380c7a5c8eed889_rle_crop_3971707511_0.png', 1385696600: '1758632345_1080425_1385696264_4c03fdb11d22dcafc380c7a5c8eed889_rle_crop_3971707512_0.png', 1385696601: '1758632345_1080425_1385696262_3aaa3f7d844d8030c31afdf13da9a818_rle_crop_3971707521_0.png', 1385696602: '1758632345_1080425_1385696262_3aaa3f7d844d8030c31afdf13da9a818_rle_crop_3971707524_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/c1f40286e7a8ec41216d112011660a65_72785216.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/a8ce5dc92dd79e635889bb033f5cac7e_22132587.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/164143b9a1b66365659c9602b1f54b08_21212930.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/dc132c84f6e8e50f672c3e7b0ea896c2_85607921.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/896339602b0d23d655bd042152f97242_47748065.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/d31a7249a19c7f59298439d9da09faa1_3484112.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/a2b53cf364ebd21514a84f3c652acdd7_17970465.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/eebcf644ce77b37a1d9decb48a24e010_69348972.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/0973de41d7381be3705f8ddc8ef52cc2_67043318.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/9370c3a138317c627f71084598b85c0a_37701879.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/190decb69decad9e1bc59d9fb4452616_11411771.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/ce14ea7a7e9d1f7da3ee1e51e4c5c49f_64078305.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/fa3a140b89789646560c1b32d38250e9_2957919.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/9428112cd022ec52afd703e489a824e6_144705.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/22aabf808da28ea851f0ee039daaccd0_6285594.png change filename to text .imagette271354551758632399/ imagette271354551758632399/1758631946_1060792_1385696229_78ae3b0450b1a0b159e739aa359a2c2d_rle_crop_3971697233_0.png.png imagette271354551758632399/1758631987_1061374_1385696173_17dd426bea19332d796c8391c4194e0d_rle_crop_3971697384_0.png.png imagette271354551758632399/1758632246_1076634_1385696341_5c59318da3b7da24c0eab6a3afb52e22_rle_crop_3971698380_0.png.png imagette271354551758632399/1758632008_1063075_1385696207_4a14f7ee98178aae504f0fc3f53675ec_rle_crop_3971697624_0.png.png imagette271354551758632399/1758632246_1076634_1385696341_5c59318da3b7da24c0eab6a3afb52e22_rle_crop_3971698379_0.png.png imagette271354551758632399/1758632185_1072320_1385696383_954a72b20f5349ff60e44b4e34d2e350_rle_crop_3971698076_0.png.png imagette271354551758632399/1758632008_1063075_1385696208_9ce820db12af80e30428c186196f23bd_rle_crop_3971697611_0.png.png imagette271354551758632399/1758632345_1080425_1385696264_4c03fdb11d22dcafc380c7a5c8eed889_rle_crop_3971707512_0.png.png imagette271354551758632399/1758632345_1080425_1385696262_3aaa3f7d844d8030c31afdf13da9a818_rle_crop_3971707524_0.png.png imagette271354551758632399/1758632345_1080425_1385696262_3aaa3f7d844d8030c31afdf13da9a818_rle_crop_3971707521_0.png.png imagette271354551758632399/1758632246_1076634_1385696342_5eb44a9336d16b0cf1d9d796e5b3e80e_rle_crop_3971698366_0.png.png imagette271354551758632399/1758632345_1080425_1385696266_a980362ec7deccc9741ffe51567b724e_rle_crop_3971707503_0.png.png imagette271354551758632399/1758632345_1080425_1385696264_4c03fdb11d22dcafc380c7a5c8eed889_rle_crop_3971707511_0.png.png imagette271354551758632399/1758632106_1069454_1385696137_3933dd43de1bf91b901970c55094ab04_rle_crop_3971697885_0.png.png imagette271354551758632399/1758632106_1069454_1385696137_3933dd43de1bf91b901970c55094ab04_rle_crop_3971697882_0.png.png imagette271354551758632399/1758631946_1060792_1385696232_de548e7dcf56a7a93edec208e040e483_rle_crop_3971697220_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/744b863c3c579cf4b17caf56e7f753ea_45055053.png imagette271354551758632399 27135460 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135460 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385696372: '1758631987_1061374_1385696173_17dd426bea19332d796c8391c4194e0d_rle_crop_3971697379_0.png', 1385696392: '1758632008_1063075_1385696239_9aff534ac50504da4407ac80362b6fad_rle_crop_3971697578_0.png', 1385696393: '1758632008_1063075_1385696208_9ce820db12af80e30428c186196f23bd_rle_crop_3971697608_0.png', 1385696433: '1758632106_1069454_1385696179_fc10ec69d983f8e12719824fd8388499_rle_crop_3971697834_0.png', 1385696434: '1758632106_1069454_1385696143_ba54a09a448ef575f03c3e0980c7d414_rle_crop_3971697843_0.png', 1385696476: '1758632185_1072320_1385696383_954a72b20f5349ff60e44b4e34d2e350_rle_crop_3971698078_0.png', 1385696559: '1758632246_1076634_1385696341_5c59318da3b7da24c0eab6a3afb52e22_rle_crop_3971698377_0.png', 1385696560: '1758632246_1076634_1385696340_cd0ad15f46bcc49b44a8cc7e6f5db9a4_rle_crop_3971698406_0.png', 1385696603: '1758632345_1080425_1385696270_6b02821ab74387fa51aaf5955df3c20e_rle_crop_3971707475_0.png', 1385696604: '1758632345_1080425_1385696266_a980362ec7deccc9741ffe51567b724e_rle_crop_3971707497_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/8c44aed8202a6e0fa254f104aaf5d591_74427447.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/a4686cb93497011e2227dfa90215a48b_52748559.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/54c472b147762384a9b595e566a73371_75263705.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/937e2239d3e07e37d62d20ebfda0cd7a_55907681.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/507dfcf2f5a82ca4f4e63b2a67ee2298_53722905.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/a7352e40b94d438d6edc177289a45dc9_89469947.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/b1be33b72304ba1a9e17f4797b0a97d8_28643202.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/cd8e4dbb518df8612b82ad6a0f1715f4_18348925.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/3c9c825e3a275bed5d772175f0d32708_38729697.png change filename to text .imagette271354601758632400/ imagette271354601758632400/1758632008_1063075_1385696208_9ce820db12af80e30428c186196f23bd_rle_crop_3971697608_0.png.png imagette271354601758632400/1758632246_1076634_1385696340_cd0ad15f46bcc49b44a8cc7e6f5db9a4_rle_crop_3971698406_0.png.png imagette271354601758632400/1758632185_1072320_1385696383_954a72b20f5349ff60e44b4e34d2e350_rle_crop_3971698078_0.png.png imagette271354601758632400/1758632345_1080425_1385696266_a980362ec7deccc9741ffe51567b724e_rle_crop_3971707497_0.png.png imagette271354601758632400/1758631987_1061374_1385696173_17dd426bea19332d796c8391c4194e0d_rle_crop_3971697379_0.png.png imagette271354601758632400/1758632106_1069454_1385696179_fc10ec69d983f8e12719824fd8388499_rle_crop_3971697834_0.png.png imagette271354601758632400/1758632106_1069454_1385696143_ba54a09a448ef575f03c3e0980c7d414_rle_crop_3971697843_0.png.png imagette271354601758632400/1758632345_1080425_1385696270_6b02821ab74387fa51aaf5955df3c20e_rle_crop_3971707475_0.png.png imagette271354601758632400/1758632246_1076634_1385696341_5c59318da3b7da24c0eab6a3afb52e22_rle_crop_3971698377_0.png.png imagette271354601758632400/1758632008_1063075_1385696239_9aff534ac50504da4407ac80362b6fad_rle_crop_3971697578_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/46d28f29f521781c284d3f5c2fd2a998_59727812.png imagette271354601758632400 27135462 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1385696374: '1758631987_1061374_1385696216_ab1831405ec10a9e7ec629a0bf814d6c_rle_crop_3971697367_0.png', 1385696375: '1758631987_1061374_1385696173_17dd426bea19332d796c8391c4194e0d_rle_crop_3971697385_0.png', 1385696376: '1758631987_1061374_1385696171_d4a11eae083ab93f7b04344452a38d8d_rle_crop_3971697398_0.png', 1385696395: '1758632008_1063075_1385696239_9aff534ac50504da4407ac80362b6fad_rle_crop_3971697576_0.png', 1385696566: '1758632246_1076634_1385696344_8f8d3e451c0b4cc54cb1995b613c0d82_rle_crop_3971698347_0.png', 1385696567: '1758632246_1076634_1385696344_8f8d3e451c0b4cc54cb1995b613c0d82_rle_crop_3971698348_0.png', 1385696568: '1758632246_1076634_1385696342_5eb44a9336d16b0cf1d9d796e5b3e80e_rle_crop_3971698365_0.png', 1385696569: '1758632246_1076634_1385696341_5c59318da3b7da24c0eab6a3afb52e22_rle_crop_3971698382_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/0406a89148dc6d70309e8278812d6c80_14793898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/46a57c7efa158613780815251ca77221_95987474.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/13c0ff8b33da6b6c53eff6d8613f19e6_11276965.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/cc52b0d2aec2f9f6944b3d51c9e5dcca_66985303.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/311ebc38b01cce05bd240e6482a74e56_19213561.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/a1c8b294cf48ce5e784e792160b20159_23596497.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/587637c1ea49c93c032187c786a225b3_77738547.png change filename to text .imagette271354621758632401/ imagette271354621758632401/1758632008_1063075_1385696239_9aff534ac50504da4407ac80362b6fad_rle_crop_3971697576_0.png.png imagette271354621758632401/1758631987_1061374_1385696171_d4a11eae083ab93f7b04344452a38d8d_rle_crop_3971697398_0.png.png imagette271354621758632401/1758632246_1076634_1385696344_8f8d3e451c0b4cc54cb1995b613c0d82_rle_crop_3971698347_0.png.png imagette271354621758632401/1758632246_1076634_1385696341_5c59318da3b7da24c0eab6a3afb52e22_rle_crop_3971698382_0.png.png imagette271354621758632401/1758632246_1076634_1385696344_8f8d3e451c0b4cc54cb1995b613c0d82_rle_crop_3971698348_0.png.png imagette271354621758632401/1758632246_1076634_1385696342_5eb44a9336d16b0cf1d9d796e5b3e80e_rle_crop_3971698365_0.png.png imagette271354621758632401/1758631987_1061374_1385696173_17dd426bea19332d796c8391c4194e0d_rle_crop_3971697385_0.png.png imagette271354621758632401/1758631987_1061374_1385696216_ab1831405ec10a9e7ec629a0bf814d6c_rle_crop_3971697367_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/c345b3082687f98d1a855f7bc5f8df16_85519918.png imagette271354621758632401 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27135451 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27135469,27135470,27135471,27135472,27135473,27135474,27135475,27135476,27135477,27135478,27135479,27135480?tags=Teint_Dans_La_Masse,metal,plastique,cartonnette,Carton_gris,mal_croppe,Carton_brun,papier,kraft,autre_refus,environnement,flou your option no_mail is active, we will not send the real mail to your client args[1385696585] : ('0.03461347656204438',) no score found for photo 1385696585 We are sending mail with results at report@fotonower.com args[1385696581] : ('0.03461347656204438',) no score found for photo 1385696581 We are sending mail with results at report@fotonower.com args[1385696577] : ('0.03461347656204438',) no score found for photo 1385696577 We are sending mail with results at report@fotonower.com args[1385696574] : ('0.03461347656204438',) no score found for photo 1385696574 We are sending mail with results at report@fotonower.com args[1385696572] : ('0.03461347656204438',) no score found for photo 1385696572 We are sending mail with results at report@fotonower.com args[1385696563] : ('0.03461347656204438',) no score found for photo 1385696563 We are sending mail with results at report@fotonower.com refus_total : 0.03461347656204438 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135451 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_P27135451_23-09-2025_14_59_58.pdf results_Auto_P27135451_23-09-2025_14_59_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135451_23-09-2025_14_59_58.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','27135451','results_Auto_P27135451_23-09-2025_14_59_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135451_23-09-2025_14_59_58.pdf','pdf','','0.21','0.03461347656204438') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27135451]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563] map_info['map_portfolio_photo'] : {27135451: [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563, 1385696509, 1385696503, 1385696494, 1385696490, 1385696478, 1385696458, 1385696453, 1385696449, 1385696447, 1385696444, 1385696423, 1385696420, 1385696414, 1385696413, 1385696411, 1385696387, 1385696384, 1385696383, 1385696380, 1385696350, 1385696347, 1385696344, 1385696342, 1385696341, 1385696340, 1385696321, 1385696318, 1385696314, 1385696313, 1385696311, 1385696273, 1385696270, 1385696266, 1385696264, 1385696262, 1385696260, 1385696239, 1385696236, 1385696233, 1385696232, 1385696229, 1385696216, 1385696213, 1385696210, 1385696208, 1385696207, 1385696206, 1385696179, 1385696176, 1385696173, 1385696171, 1385696167, 1385696146, 1385696143, 1385696140, 1385696138, 1385696137, 1385696136, 1385696117, 1385696113, 1385696111]} final : False mtd_id 4302 list_pids : [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563] 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, '3764036') ('4302', '27135451', '1385696585', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696581', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696577', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696574', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696572', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696563', None, None, None, None, None, '3764036') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '27135451', '1385696585', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696581', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696577', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696574', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696572', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696563', None, None, None, None, None, '3764036')] time used for this insertion : 0.012245416641235352 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.2641520500183105 time spend to save output : 0.012445211410522461 total time spend for step 4 : 5.276597261428833 step5:split_time_score Tue Sep 23 15:00:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27135451'] 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 : [('27135451',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27135451) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1385696581: {'path': 'temp/1758632397_3395276_1385696581_047db8d6e5ad594fa6f58b24c5227855.jpg', 'extension': 'jpg'}, 1385696585: {'path': 'temp/1758632397_3395276_1385696585_72197b2669b512f65ea0a1253b03b9a1.jpg', 'extension': 'jpg'}, 1385696563: {'path': 'temp/1758632397_3395276_1385696563_1c24969412b1b02208fe5c61d2b70d2b.jpg', 'extension': 'jpg'}, 1385696572: {'path': 'temp/1758632397_3395276_1385696572_56189b86ab347a56d5ad9e2166b2dba4.jpg', 'extension': 'jpg'}, 1385696574: {'path': 'temp/1758632397_3395276_1385696574_af4001e5168929513620fcd92fa0450e.jpg', 'extension': 'jpg'}, 1385696577: {'path': 'temp/1758632397_3395276_1385696577_00706523c190f5490eace17120732c51.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 = 27135451; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27135451 group by h (('14', 67),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27135451 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 (27135451) 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 (27135451) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23092025 27135451 Nombre de photos uploadées : 67 / 23040 (0%) 23092025 27135451 Nombre de photos taguées (types de déchets): 0 / 67 (0%) 23092025 27135451 Nombre de photos taguées (volume) : 0 / 67 (0%) [{'photo_id': 1385696117, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/299edd0922f3d522137349f8c04d1462.jpg', 'username': None, 'uploaded_at': 1758631572, 'text': 'image_23092025_14_45_25_10134.jpg'}, {'photo_id': 1385696113, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/45c24758db64173d6e8fa30afd9228e6.jpg', 'username': None, 'uploaded_at': 1758631572, 'text': 'image_23092025_14_45_34_9122.jpg'}, {'photo_id': 1385696111, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/a01163437157357e9cd117c6ad0e8a52.jpg', 'username': None, 'uploaded_at': 1758631572, 'text': 'image_23092025_14_45_44_10140.jpg'}, {'photo_id': 1385696146, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/23/aa51790a2e4c17a8c81f830d65a88de0.jpg', 'username': None, 'uploaded_at': 1758631627, 'text': 'image_23092025_14_45_54_10144.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ??????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0029439926147460938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27135451, '2025-09-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-23' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2334629,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2102494239807129 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= 2334629 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27110178, 'dashboard_result_id': 15559341, '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_P27110178_23-09-2025_06_05_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110190, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27110339, 'dashboard_result_id': 15559342, '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_P27110339_23-09-2025_06_06_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110352, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27110574, 'dashboard_result_id': 15559343, '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_P27110574_23-09-2025_06_07_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110586, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27111222, 'dashboard_result_id': 15559344, '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_P27111222_23-09-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111235, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27111303, 'dashboard_result_id': 15559345, '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_P27111303_23-09-2025_06_08_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111315, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27111567, 'dashboard_result_id': 15559346, '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_P27111567_23-09-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111579, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27111819, 'dashboard_result_id': 15559347, '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_P27111819_23-09-2025_06_09_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27111820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111831, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27111974, 'dashboard_result_id': 15559348, '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_P27111974_23-09-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27111975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111986, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27112157, 'dashboard_result_id': 15559349, '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_P27112157_23-09-2025_06_10_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27112158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112169, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27112455, 'dashboard_result_id': 15559350, '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_P27112455_23-09-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112479, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27112498, 'dashboard_result_id': 15559351, '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_P27112498_23-09-2025_06_12_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112510, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27112687, 'dashboard_result_id': 15559352, '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_P27112687_23-09-2025_06_12_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27112688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112699, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27112928, 'dashboard_result_id': 15559353, '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_P27112928_23-09-2025_06_13_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112940, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27113061, 'dashboard_result_id': 15559354, '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_P27113061_23-09-2025_06_13_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27113074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113085, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27113469, 'dashboard_result_id': 15559355, '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_P27113469_23-09-2025_06_14_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113482, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27113662, 'dashboard_result_id': 15559356, '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_P27113662_23-09-2025_06_15_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27113702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113707, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113713, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27114096, 'dashboard_result_id': 15559357, '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_P27114096_23-09-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114113, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27114459, 'dashboard_result_id': 15559358, '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_P27114459_23-09-2025_07_31_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27114468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114479, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27114912, 'dashboard_result_id': 15559359, '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_P27114912_23-09-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114964, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27115466, 'dashboard_result_id': 15559360, '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_P27115466_23-09-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115487, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27115933, 'dashboard_result_id': 15559361, '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_P27115933_23-09-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115955, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27116818, 'dashboard_result_id': 15559362, '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_P27116818_23-09-2025_07_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27116826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27116827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27116828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27116829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27116830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27116831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27116832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27116833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27116834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27116835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27116836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27116837, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27117463, 'dashboard_result_id': 15559363, '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_P27117463_23-09-2025_07_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27117491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27117492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27117493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27117494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27117495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27117496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27117497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27117498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27117499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27117500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27117501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27117502, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27118077, 'dashboard_result_id': 15559364, '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_P27118077_23-09-2025_08_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118119, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27118722, 'dashboard_result_id': 15559365, '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_P27118722_23-09-2025_08_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118742, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27119449, 'dashboard_result_id': 15559366, '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_P27119449_23-09-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27119458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27119459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27119460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27119461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27119462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27119463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27119464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27119465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27119466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27119467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27119468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27119469, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27120106, 'dashboard_result_id': 15559367, '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_P27120106_23-09-2025_08_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27120115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120125, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27120892, 'dashboard_result_id': 15559368, '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_P27120892_23-09-2025_09_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27120924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120935, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27123660, 'dashboard_result_id': 15559369, '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_P27123660_23-09-2025_09_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27123676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123687, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27123824, 'dashboard_result_id': 15559370, '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_P27123824_23-09-2025_11_31_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27123838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123842, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27124375, 'dashboard_result_id': 15559371, '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_P27124375_23-09-2025_10_19_27.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27124421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27124422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27124423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27124424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27124425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27124426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27124427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27124428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27124429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27124430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27124431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27124432, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27125241, 'dashboard_result_id': 15559372, '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_P27125241_23-09-2025_10_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27125251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27125252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27125253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27125254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27125255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27125256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27125257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27125258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27125259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27125260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27125261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27125262, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27125947, 'dashboard_result_id': 15559373, '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_P27125947_23-09-2025_10_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27126004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126015, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27126940, 'dashboard_result_id': 15559374, '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_P27126940_23-09-2025_11_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27126977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126985, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27127522, 'dashboard_result_id': 15559375, '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_P27127522_23-09-2025_11_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27127534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27127535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27127536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27127537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27127538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27127539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27127540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27127541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27127542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27127543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27127544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27127545, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27128056, 'dashboard_result_id': 15559376, '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_P27128056_23-09-2025_11_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128102, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27128847, 'dashboard_result_id': 15559377, '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_P27128847_23-09-2025_11_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128908, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27129679, 'dashboard_result_id': 15559378, '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_P27129679_23-09-2025_12_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27129707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27129708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27129709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27129710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27129711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27129712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27129713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27129714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27129715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27129716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27129717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27129718, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27130302, 'dashboard_result_id': 15559379, '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_P27130302_23-09-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27130311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27130312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27130313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27130314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27130315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27130316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27130317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27130318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27130319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27130320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27130321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27130322, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27133702, 'dashboard_result_id': 15559380, '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_P27133702_23-09-2025_14_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27133718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27133719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27133720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27133721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27133722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27133723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27133724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27133725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27133726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27133727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27133728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27133729, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27134309, 'dashboard_result_id': 15559381, '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_P27134309_23-09-2025_14_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134334, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27134858, 'dashboard_result_id': 15559382, '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_P27134858_23-09-2025_14_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134887, 'pht': 3726}}"}, {'dashboat_entry_day': 2334629, 'dashboard_run_id': 2346619, 'mtr_portfolio_id': 27135451, 'dashboard_result_id': 15559383, '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_P27135451_23-09-2025_14_59_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27135455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27135457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27135458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27135459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27135460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27135461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27135462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27135463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27135464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27135465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27135466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27135467, '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 = 27110178 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': 3761248, 'mtr_portfolio_id': 27110178, 'created_at': datetime.datetime(2025, 9, 23, 6, 5, 58), 'result': '0.0842835302498198', 'result_long': None, 'result_double': None}] Qualite : 0.0842835302498198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27110178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110178_23-09-2025_06_05_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27110178 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_P27110178_23-09-2025_06_05_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110190, 'pht': 3726}}" where mtr_portfolio_id = 27110178 and dashboard_run_id = 2346627 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`=27110178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559341, 0.0842835302498198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110178_23-09-2025_06_05_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110185, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110189, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110190, '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 = 27110339 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': 3761249, 'mtr_portfolio_id': 27110339, 'created_at': datetime.datetime(2025, 9, 23, 6, 6, 32), 'result': '0.08052653617255652', 'result_long': None, 'result_double': None}] Qualite : 0.08052653617255652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27110339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110339_23-09-2025_06_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27110339 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_P27110339_23-09-2025_06_06_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110352, 'pht': 3726}}" where mtr_portfolio_id = 27110339 and dashboard_run_id = 2346627 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`=27110339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559342, 0.08052653617255652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110339_23-09-2025_06_06_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110352, '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 = 27110574 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': 3761250, 'mtr_portfolio_id': 27110574, 'created_at': datetime.datetime(2025, 9, 23, 6, 7, 30), 'result': '0.15193610779783676', 'result_long': None, 'result_double': None}] Qualite : 0.15193610779783676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27110574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110574_23-09-2025_06_07_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27110574 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_P27110574_23-09-2025_06_07_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110586, 'pht': 3726}}" where mtr_portfolio_id = 27110574 and dashboard_run_id = 2346627 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`=27110574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559343, 0.15193610779783676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27110574_23-09-2025_06_07_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27110575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27110576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27110577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27110578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27110579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27110580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27110581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27110582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27110583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27110584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27110585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27110586, '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 = 27111222 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': 3761251, 'mtr_portfolio_id': 27111222, 'created_at': datetime.datetime(2025, 9, 23, 6, 7, 58), 'result': '0.06511032879639336', 'result_long': None, 'result_double': None}] Qualite : 0.06511032879639336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111222_23-09-2025_06_07_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111222 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_P27111222_23-09-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111235, 'pht': 3726}}" where mtr_portfolio_id = 27111222 and dashboard_run_id = 2346627 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`=27111222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559344, 0.06511032879639336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111222_23-09-2025_06_07_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111226, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111229, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111230, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111235, '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 = 27111303 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': 3761252, 'mtr_portfolio_id': 27111303, 'created_at': datetime.datetime(2025, 9, 23, 6, 8, 28), 'result': '0.07088026896845984', 'result_long': None, 'result_double': None}] Qualite : 0.07088026896845984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111303_23-09-2025_06_08_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111303 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_P27111303_23-09-2025_06_08_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111315, 'pht': 3726}}" where mtr_portfolio_id = 27111303 and dashboard_run_id = 2346627 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`=27111303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559345, 0.07088026896845984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111303_23-09-2025_06_08_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111315, '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 = 27111567 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': 3761253, 'mtr_portfolio_id': 27111567, 'created_at': datetime.datetime(2025, 9, 23, 6, 9, 30), 'result': '0.08627575428145877', 'result_long': None, 'result_double': None}] Qualite : 0.08627575428145877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111567_23-09-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111567 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_P27111567_23-09-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111579, 'pht': 3726}}" where mtr_portfolio_id = 27111567 and dashboard_run_id = 2346627 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`=27111567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559346, 0.08627575428145877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111567_23-09-2025_06_09_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111579, '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 = 27111819 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': 3761254, 'mtr_portfolio_id': 27111819, 'created_at': datetime.datetime(2025, 9, 23, 6, 9, 58), 'result': '0.010484843398966976', 'result_long': None, 'result_double': None}] Qualite : 0.010484843398966976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111819_23-09-2025_06_09_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111819 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_P27111819_23-09-2025_06_09_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27111820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111831, 'pht': 3726}}" where mtr_portfolio_id = 27111819 and dashboard_run_id = 2346627 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`=27111819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559347, 0.010484843398966976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111819_23-09-2025_06_09_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27111820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27111829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111831, '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 = 27111974 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': 3761255, 'mtr_portfolio_id': 27111974, 'created_at': datetime.datetime(2025, 9, 23, 6, 10, 30), 'result': '0.0850662591739114', 'result_long': None, 'result_double': None}] Qualite : 0.0850662591739114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27111974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111974_23-09-2025_06_10_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27111974 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_P27111974_23-09-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27111975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111986, 'pht': 3726}}" where mtr_portfolio_id = 27111974 and dashboard_run_id = 2346627 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`=27111974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559348, 0.0850662591739114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27111974_23-09-2025_06_10_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27111975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27111976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27111977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27111978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27111979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27111980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27111981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27111982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27111983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27111984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27111985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27111986, '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 = 27112157 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': 3761256, 'mtr_portfolio_id': 27112157, 'created_at': datetime.datetime(2025, 9, 23, 6, 10, 37), 'result': '0.04044909590864457', 'result_long': None, 'result_double': None}] Qualite : 0.04044909590864457 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112157_23-09-2025_06_10_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112157 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_P27112157_23-09-2025_06_10_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27112158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112169, 'pht': 3726}}" where mtr_portfolio_id = 27112157 and dashboard_run_id = 2346627 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`=27112157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559349, 0.04044909590864457, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112157_23-09-2025_06_10_38.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27112158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112164, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112169, '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 = 27112455 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': 3761257, 'mtr_portfolio_id': 27112455, 'created_at': datetime.datetime(2025, 9, 23, 6, 11, 31), 'result': '0.05003919122138744', 'result_long': None, 'result_double': None}] Qualite : 0.05003919122138744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112455_23-09-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112455 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_P27112455_23-09-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112479, 'pht': 3726}}" where mtr_portfolio_id = 27112455 and dashboard_run_id = 2346627 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`=27112455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559350, 0.05003919122138744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112455_23-09-2025_06_11_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112472, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112476, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112479, '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 = 27112498 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': 3761258, 'mtr_portfolio_id': 27112498, 'created_at': datetime.datetime(2025, 9, 23, 6, 11, 59), 'result': '0.04466887370800656', 'result_long': None, 'result_double': None}] Qualite : 0.04466887370800656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112498 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112498_23-09-2025_06_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112498 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_P27112498_23-09-2025_06_12_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112510, 'pht': 3726}}" where mtr_portfolio_id = 27112498 and dashboard_run_id = 2346627 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`=27112498 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559351, 0.04466887370800656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112498_23-09-2025_06_12_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112506, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112510, '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 = 27112687 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': 3761259, 'mtr_portfolio_id': 27112687, 'created_at': datetime.datetime(2025, 9, 23, 6, 12, 28), 'result': '0.04644080912606092', 'result_long': None, 'result_double': None}] Qualite : 0.04644080912606092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112687_23-09-2025_06_12_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112687 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_P27112687_23-09-2025_06_12_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27112688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112699, 'pht': 3726}}" where mtr_portfolio_id = 27112687 and dashboard_run_id = 2346627 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`=27112687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559352, 0.04644080912606092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112687_23-09-2025_06_12_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27112688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112698, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112699, '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 = 27112928 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': 3761260, 'mtr_portfolio_id': 27112928, 'created_at': datetime.datetime(2025, 9, 23, 6, 13, 30), 'result': '0.07938918419812342', 'result_long': None, 'result_double': None}] Qualite : 0.07938918419812342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27112928 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112928_23-09-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27112928 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_P27112928_23-09-2025_06_13_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112940, 'pht': 3726}}" where mtr_portfolio_id = 27112928 and dashboard_run_id = 2346627 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`=27112928 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559353, 0.07938918419812342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27112928_23-09-2025_06_13_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27112929, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27112930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27112931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27112932, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27112933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27112934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27112935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27112936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27112937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27112938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27112939, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27112940, '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 = 27113061 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': 3761261, 'mtr_portfolio_id': 27113061, 'created_at': datetime.datetime(2025, 9, 23, 6, 13, 58), 'result': '0.14121341587733877', 'result_long': None, 'result_double': None}] Qualite : 0.14121341587733877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27113061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113061_23-09-2025_06_13_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27113061 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_P27113061_23-09-2025_06_13_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27113074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113085, 'pht': 3726}}" where mtr_portfolio_id = 27113061 and dashboard_run_id = 2346627 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`=27113061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559354, 0.14121341587733877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113061_23-09-2025_06_13_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27113074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113085, '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 = 27113469 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': 3761263, 'mtr_portfolio_id': 27113469, 'created_at': datetime.datetime(2025, 9, 23, 6, 14, 29), 'result': '0.04942428243117697', 'result_long': None, 'result_double': None}] Qualite : 0.04942428243117697 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27113469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113469_23-09-2025_06_14_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27113469 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_P27113469_23-09-2025_06_14_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113482, 'pht': 3726}}" where mtr_portfolio_id = 27113469 and dashboard_run_id = 2346627 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`=27113469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559355, 0.04942428243117697, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113469_23-09-2025_06_14_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113475, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27113479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113482, '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 = 27113662 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': 3761264, 'mtr_portfolio_id': 27113662, 'created_at': datetime.datetime(2025, 9, 23, 6, 15, 30), 'result': '0.04660001475894227', 'result_long': None, 'result_double': None}] Qualite : 0.04660001475894227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27113662 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113662_23-09-2025_06_15_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27113662 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_P27113662_23-09-2025_06_15_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27113702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113707, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113713, 'pht': 3726}}" where mtr_portfolio_id = 27113662 and dashboard_run_id = 2346627 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`=27113662 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559356, 0.04660001475894227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27113662_23-09-2025_06_15_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27113702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27113703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27113704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27113705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27113706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27113707, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27113708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27113709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27113710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27113711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27113712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27113713, '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 = 27114096 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': 3761189, 'mtr_portfolio_id': 27114096, 'created_at': datetime.datetime(2025, 9, 23, 5, 47), 'result': '0.03535898769774075', 'result_long': None, 'result_double': None}] Qualite : 0.03535898769774075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27114096 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114096_23-09-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27114096 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_P27114096_23-09-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114113, 'pht': 3726}}" where mtr_portfolio_id = 27114096 and dashboard_run_id = 2346627 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`=27114096 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559357, 0.03535898769774075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114096_23-09-2025_05_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114107, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114113, '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 = 27114459 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': 3761381, 'mtr_portfolio_id': 27114459, 'created_at': datetime.datetime(2025, 9, 23, 7, 31, 28), 'result': '0.05907237025513325', 'result_long': None, 'result_double': None}] Qualite : 0.05907237025513325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27114459 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114459_23-09-2025_07_31_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27114459 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_P27114459_23-09-2025_07_31_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27114468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114479, 'pht': 3726}}" where mtr_portfolio_id = 27114459 and dashboard_run_id = 2346627 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`=27114459 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559358, 0.05907237025513325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114459_23-09-2025_07_31_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27114468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114473, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114476, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114477, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114479, '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 = 27114912 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': 3761487, 'mtr_portfolio_id': 27114912, 'created_at': datetime.datetime(2025, 9, 23, 6, 17), 'result': '0.061836003998696466', 'result_long': None, 'result_double': None}] Qualite : 0.061836003998696466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27114912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114912_23-09-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27114912 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_P27114912_23-09-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114964, 'pht': 3726}}" where mtr_portfolio_id = 27114912 and dashboard_run_id = 2346627 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`=27114912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559359, 0.061836003998696466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27114912_23-09-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27114953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27114954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27114955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27114956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27114957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27114958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27114959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27114960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27114961, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27114962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27114963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27114964, '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 = 27115466 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': 3761547, 'mtr_portfolio_id': 27115466, 'created_at': datetime.datetime(2025, 9, 23, 6, 33, 1), 'result': '0.04851771147395974', 'result_long': None, 'result_double': None}] Qualite : 0.04851771147395974 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27115466 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115466_23-09-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27115466 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_P27115466_23-09-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115487, 'pht': 3726}}" where mtr_portfolio_id = 27115466 and dashboard_run_id = 2346627 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`=27115466 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559360, 0.04851771147395974, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115466_23-09-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115478, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115487, '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 = 27115933 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': 3761616, 'mtr_portfolio_id': 27115933, 'created_at': datetime.datetime(2025, 9, 23, 7, 18, 59), 'result': '0.015516715483921719', 'result_long': None, 'result_double': None}] Qualite : 0.015516715483921719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27115933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115933_23-09-2025_07_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27115933 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_P27115933_23-09-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115955, 'pht': 3726}}" where mtr_portfolio_id = 27115933 and dashboard_run_id = 2346627 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`=27115933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559361, 0.015516715483921719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27115933_23-09-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27115943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27115944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27115945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27115946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27115947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27115948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27115949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27115950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27115952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27115953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27115954, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27115955, '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 = 27116818 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': 3761788, 'mtr_portfolio_id': 27116818, 'created_at': datetime.datetime(2025, 9, 23, 7, 33), 'result': '0.033584135816659894', 'result_long': None, 'result_double': None}] Qualite : 0.033584135816659894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27116818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27116818_23-09-2025_07_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27116818 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_P27116818_23-09-2025_07_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27116826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27116827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27116828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27116829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27116830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27116831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27116832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27116833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27116834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27116835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27116836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27116837, 'pht': 3726}}" where mtr_portfolio_id = 27116818 and dashboard_run_id = 2346627 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`=27116818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559362, 0.033584135816659894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27116818_23-09-2025_07_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27116826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27116827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27116828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27116829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27116830, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27116831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27116832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27116833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27116834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27116835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27116836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27116837, '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 = 27117463 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': 3761838, 'mtr_portfolio_id': 27117463, 'created_at': datetime.datetime(2025, 9, 23, 7, 49, 1), 'result': '0.04472761942457589', 'result_long': None, 'result_double': None}] Qualite : 0.04472761942457589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27117463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27117463_23-09-2025_07_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27117463 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_P27117463_23-09-2025_07_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27117491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27117492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27117493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27117494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27117495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27117496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27117497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27117498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27117499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27117500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27117501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27117502, 'pht': 3726}}" where mtr_portfolio_id = 27117463 and dashboard_run_id = 2346627 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`=27117463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559363, 0.04472761942457589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27117463_23-09-2025_07_49_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27117491, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27117492, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27117493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27117494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27117495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27117496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27117497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27117498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27117499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27117500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27117501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27117502, '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 = 27118077 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': 3761891, 'mtr_portfolio_id': 27118077, 'created_at': datetime.datetime(2025, 9, 23, 8, 3, 27), 'result': '0.053112404559625036', 'result_long': None, 'result_double': None}] Qualite : 0.053112404559625036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27118077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118077_23-09-2025_08_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27118077 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_P27118077_23-09-2025_08_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118119, 'pht': 3726}}" where mtr_portfolio_id = 27118077 and dashboard_run_id = 2346627 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`=27118077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559364, 0.053112404559625036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118077_23-09-2025_08_03_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118108, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118119, '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 = 27118722 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': 3761969, 'mtr_portfolio_id': 27118722, 'created_at': datetime.datetime(2025, 9, 23, 8, 17), 'result': '0.0562707763864329', 'result_long': None, 'result_double': None}] Qualite : 0.0562707763864329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27118722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118722_23-09-2025_08_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27118722 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_P27118722_23-09-2025_08_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118742, 'pht': 3726}}" where mtr_portfolio_id = 27118722 and dashboard_run_id = 2346627 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`=27118722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559365, 0.0562707763864329, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27118722_23-09-2025_08_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27118731, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27118732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27118733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27118734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27118735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27118736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27118737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27118738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27118739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27118740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27118741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27118742, '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 = 27119449 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': 3762063, 'mtr_portfolio_id': 27119449, 'created_at': datetime.datetime(2025, 9, 23, 8, 32, 58), 'result': '0.0603777106701934', 'result_long': None, 'result_double': None}] Qualite : 0.0603777106701934 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27119449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27119449_23-09-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27119449 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_P27119449_23-09-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27119458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27119459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27119460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27119461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27119462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27119463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27119464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27119465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27119466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27119467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27119468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27119469, 'pht': 3726}}" where mtr_portfolio_id = 27119449 and dashboard_run_id = 2346627 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`=27119449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559366, 0.0603777106701934, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27119449_23-09-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27119458, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27119459, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27119460, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27119461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27119462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27119463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27119464, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27119465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27119466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27119467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27119468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27119469, '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 = 27120106 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': 3762159, 'mtr_portfolio_id': 27120106, 'created_at': datetime.datetime(2025, 9, 23, 8, 48, 57), 'result': '0.0757666024857731', 'result_long': None, 'result_double': None}] Qualite : 0.0757666024857731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27120106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120106_23-09-2025_08_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27120106 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_P27120106_23-09-2025_08_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27120115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120125, 'pht': 3726}}" where mtr_portfolio_id = 27120106 and dashboard_run_id = 2346627 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`=27120106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559367, 0.0757666024857731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120106_23-09-2025_08_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27120115, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120118, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120123, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120124, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120125, '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 = 27120892 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': 3762276, 'mtr_portfolio_id': 27120892, 'created_at': datetime.datetime(2025, 9, 23, 9, 2, 58), 'result': '0.04551962881981314', 'result_long': None, 'result_double': None}] Qualite : 0.04551962881981314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27120892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120892_23-09-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27120892 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_P27120892_23-09-2025_09_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27120924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120935, 'pht': 3726}}" where mtr_portfolio_id = 27120892 and dashboard_run_id = 2346627 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`=27120892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559368, 0.04551962881981314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27120892_23-09-2025_09_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27120924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27120925, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27120926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27120927, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27120928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27120929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27120930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27120931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27120932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27120933, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27120934, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27120935, '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 = 27123660 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27123660 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 27123660 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27123660 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27123660 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27123660 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123660_23-09-2025_09_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27123660 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_P27123660_23-09-2025_09_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27123676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123683, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123687, 'pht': 3726}}" where mtr_portfolio_id = 27123660 and dashboard_run_id = 2346627 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 = 27123824 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': 3762597, 'mtr_portfolio_id': 27123824, 'created_at': datetime.datetime(2025, 9, 23, 11, 31, 28), 'result': '0.08192593079532012', 'result_long': None, 'result_double': None}] Qualite : 0.08192593079532012 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27123824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123824_23-09-2025_11_31_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27123824 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_P27123824_23-09-2025_11_31_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27123838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123842, 'pht': 3726}}" where mtr_portfolio_id = 27123824 and dashboard_run_id = 2346627 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`=27123824 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559370, 0.08192593079532012, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27123824_23-09-2025_11_31_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27123831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27123832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27123833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27123834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27123835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27123836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27123837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27123838, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27123839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27123840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27123841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27123842, '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 = 27124375 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': 3762649, 'mtr_portfolio_id': 27124375, 'created_at': datetime.datetime(2025, 9, 23, 10, 19, 27), 'result': '0.05400882053639186', 'result_long': None, 'result_double': None}] Qualite : 0.05400882053639186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27124375 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27124375_23-09-2025_10_19_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27124375 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_P27124375_23-09-2025_10_19_27.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27124421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27124422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27124423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27124424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27124425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27124426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27124427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27124428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27124429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27124430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27124431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27124432, 'pht': 3726}}" where mtr_portfolio_id = 27124375 and dashboard_run_id = 2346627 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`=27124375 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559371, 0.05400882053639186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27124375_23-09-2025_10_19_27.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27124421, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27124422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27124423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27124424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27124425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27124426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27124427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27124428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27124429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27124430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27124431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27124432, '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 = 27125241 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': 3762738, 'mtr_portfolio_id': 27125241, 'created_at': datetime.datetime(2025, 9, 23, 10, 32, 58), 'result': '0.05401330628884696', 'result_long': None, 'result_double': None}] Qualite : 0.05401330628884696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27125241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125241_23-09-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27125241 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_P27125241_23-09-2025_10_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27125251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27125252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27125253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27125254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27125255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27125256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27125257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27125258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27125259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27125260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27125261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27125262, 'pht': 3726}}" where mtr_portfolio_id = 27125241 and dashboard_run_id = 2346627 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`=27125241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559372, 0.05401330628884696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125241_23-09-2025_10_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27125251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27125252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27125253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27125254, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27125255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27125256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27125257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27125258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27125259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27125260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27125261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27125262, '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 = 27125947 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': 3762842, 'mtr_portfolio_id': 27125947, 'created_at': datetime.datetime(2025, 9, 23, 10, 49), 'result': '0.047634970094689456', 'result_long': None, 'result_double': None}] Qualite : 0.047634970094689456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27125947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125947_23-09-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27125947 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_P27125947_23-09-2025_10_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27126004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126015, 'pht': 3726}}" where mtr_portfolio_id = 27125947 and dashboard_run_id = 2346627 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`=27125947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559373, 0.047634970094689456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27125947_23-09-2025_10_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27126004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126008, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126015, '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 = 27126940 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': 3762939, 'mtr_portfolio_id': 27126940, 'created_at': datetime.datetime(2025, 9, 23, 11, 3), 'result': '0.037388841295880035', 'result_long': None, 'result_double': None}] Qualite : 0.037388841295880035 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27126940 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27126940_23-09-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27126940 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_P27126940_23-09-2025_11_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27126977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126985, 'pht': 3726}}" where mtr_portfolio_id = 27126940 and dashboard_run_id = 2346627 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`=27126940 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559374, 0.037388841295880035, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27126940_23-09-2025_11_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27126974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27126975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27126976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27126977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27126978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27126979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27126980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27126981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27126982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27126983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27126984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27126985, '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 = 27127522 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': 3763022, 'mtr_portfolio_id': 27127522, 'created_at': datetime.datetime(2025, 9, 23, 11, 17), 'result': '0.0292583866973847', 'result_long': None, 'result_double': None}] Qualite : 0.0292583866973847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27127522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27127522_23-09-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27127522 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_P27127522_23-09-2025_11_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27127534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27127535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27127536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27127537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27127538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27127539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27127540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27127541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27127542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27127543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27127544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27127545, 'pht': 3726}}" where mtr_portfolio_id = 27127522 and dashboard_run_id = 2346627 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`=27127522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559375, 0.0292583866973847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27127522_23-09-2025_11_17_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27127534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27127535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27127536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27127537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27127538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27127539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27127540, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27127541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27127542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27127543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27127544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27127545, '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 = 27128056 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': 3763098, 'mtr_portfolio_id': 27128056, 'created_at': datetime.datetime(2025, 9, 23, 11, 32, 58), 'result': '0.04976136961988402', 'result_long': None, 'result_double': None}] Qualite : 0.04976136961988402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27128056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128056_23-09-2025_11_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27128056 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_P27128056_23-09-2025_11_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128102, 'pht': 3726}}" where mtr_portfolio_id = 27128056 and dashboard_run_id = 2346627 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`=27128056 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559376, 0.04976136961988402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128056_23-09-2025_11_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128091, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128093, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128095, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128100, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128102, '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 = 27128847 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': 3763210, 'mtr_portfolio_id': 27128847, 'created_at': datetime.datetime(2025, 9, 23, 11, 46, 59), 'result': '0.01194033147521647', 'result_long': None, 'result_double': None}] Qualite : 0.01194033147521647 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27128847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128847_23-09-2025_11_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27128847 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_P27128847_23-09-2025_11_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128908, 'pht': 3726}}" where mtr_portfolio_id = 27128847 and dashboard_run_id = 2346627 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`=27128847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559377, 0.01194033147521647, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27128847_23-09-2025_11_47_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27128897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27128898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27128899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27128900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27128901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27128902, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27128903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27128904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27128905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27128906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27128907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27128908, '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 = 27129679 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': 3763344, 'mtr_portfolio_id': 27129679, 'created_at': datetime.datetime(2025, 9, 23, 12, 3, 28), 'result': '0.031071640014214193', 'result_long': None, 'result_double': None}] Qualite : 0.031071640014214193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27129679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27129679_23-09-2025_12_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27129679 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_P27129679_23-09-2025_12_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27129707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27129708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27129709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27129710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27129711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27129712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27129713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27129714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27129715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27129716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27129717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27129718, 'pht': 3726}}" where mtr_portfolio_id = 27129679 and dashboard_run_id = 2346627 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`=27129679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559378, 0.031071640014214193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27129679_23-09-2025_12_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27129707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27129708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27129709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27129710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27129711, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27129712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27129713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27129714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27129715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27129716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27129717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27129718, '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 = 27130302 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': 3763436, 'mtr_portfolio_id': 27130302, 'created_at': datetime.datetime(2025, 9, 23, 13, 59, 58), 'result': '0.05090607521142842', 'result_long': None, 'result_double': None}] Qualite : 0.05090607521142842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27130302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27130302_23-09-2025_13_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27130302 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_P27130302_23-09-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27130311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27130312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27130313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27130314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27130315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27130316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27130317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27130318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27130319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27130320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27130321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27130322, 'pht': 3726}}" where mtr_portfolio_id = 27130302 and dashboard_run_id = 2346627 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`=27130302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559379, 0.05090607521142842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27130302_23-09-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27130311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27130312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27130313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27130314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27130315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27130316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27130317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27130318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27130319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27130320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27130321, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27130322, '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 = 27133702 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': 3763818, 'mtr_portfolio_id': 27133702, 'created_at': datetime.datetime(2025, 9, 23, 14, 18, 59), 'result': '0.056277212402591724', 'result_long': None, 'result_double': None}] Qualite : 0.056277212402591724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27133702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27133702_23-09-2025_14_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27133702 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_P27133702_23-09-2025_14_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27133718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27133719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27133720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27133721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27133722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27133723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27133724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27133725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27133726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27133727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27133728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27133729, 'pht': 3726}}" where mtr_portfolio_id = 27133702 and dashboard_run_id = 2346627 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`=27133702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559380, 0.056277212402591724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27133702_23-09-2025_14_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27133718, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27133719, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27133720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27133721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27133722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27133723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27133724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27133725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27133726, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27133727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27133728, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27133729, '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 = 27134309 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': 3763885, 'mtr_portfolio_id': 27134309, 'created_at': datetime.datetime(2025, 9, 23, 14, 32, 59), 'result': '0.06766096675967943', 'result_long': None, 'result_double': None}] Qualite : 0.06766096675967943 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27134309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134309_23-09-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27134309 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_P27134309_23-09-2025_14_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134334, 'pht': 3726}}" where mtr_portfolio_id = 27134309 and dashboard_run_id = 2346627 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`=27134309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559381, 0.06766096675967943, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134309_23-09-2025_14_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134323, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134334, '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 = 27134858 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': 3763955, 'mtr_portfolio_id': 27134858, 'created_at': datetime.datetime(2025, 9, 23, 14, 48, 59), 'result': '0.041843243508194176', 'result_long': None, 'result_double': None}] Qualite : 0.041843243508194176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27134858 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134858_23-09-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27134858 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_P27134858_23-09-2025_14_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134887, 'pht': 3726}}" where mtr_portfolio_id = 27134858 and dashboard_run_id = 2346627 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`=27134858 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559382, 0.041843243508194176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27134858_23-09-2025_14_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27134876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27134877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27134878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27134879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27134880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27134881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27134882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27134883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27134884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27134885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27134886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27134887, '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 = 27135451 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': 3764036, 'mtr_portfolio_id': 27135451, 'created_at': datetime.datetime(2025, 9, 23, 14, 59, 57), 'result': '0.03461347656204438', 'result_long': None, 'result_double': None}] Qualite : 0.03461347656204438 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27135451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135451_23-09-2025_14_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27135451 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_P27135451_23-09-2025_14_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27135455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27135457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27135458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27135459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27135460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27135461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27135462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27135463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27135464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27135465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27135466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27135467, 'pht': 3726}}" where mtr_portfolio_id = 27135451 and dashboard_run_id = 2346627 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`=27135451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15559383, 0.03461347656204438, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27135451_23-09-2025_14_59_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27135455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27135457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27135458, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27135459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27135460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27135461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27135462, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27135463, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27135464, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27135465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27135466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27135467, '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 (27110178,27110339,27110574,27111222,27111303,27111567,27111819,27111974,27112157,27112455,27112498,27112687,27112928,27113061,27113469,27113662,27114096,27114459,27114912,27115466,27115933,27116818,27117463,27118077,27118722,27119449,27120106,27120892,27123660,27123824,27124375,27125241,27125947,27126940,27127522,27128056,27128847,27129679,27130302,27133702,27134309,27134858,27135451) result : ((1385562864,), (1385562865,), (1385562897,), (1385562946,), (1385562981,), (1385562999,), (1385563000,), (1385563019,), (1385563032,), (1385563066,), (1385563067,), (1385563103,), (1385563219,), (1385563221,), (1385563377,), (1385563387,), (1385563388,), (1385563414,), (1385563415,), (1385564024,), (1385564048,), (1385564370,), (1385564710,), (1385564851,), (1385565321,), (1385565320,), (1385565454,), (1385565455,), (1385565510,), (1385565562,), (1385565572,), (1385565576,), (1385571909,), (1385571965,), (1385572095,), (1385572128,), (1385572152,), (1385572176,), (1385572192,), (1385572245,), (1385572300,), (1385572301,), (1385572339,), (1385572397,), (1385572423,), (1385572430,), (1385572567,), (1385572576,), (1385572577,), (1385572699,), (1385572700,), (1385572713,), (1385572734,), (1385572735,), (1385572754,), (1385572755,), (1385572756,), (1385572766,), (1385572767,), (1385572796,), (1385573548,), (1385573969,), (1385574022,), (1385574918,), (1385575357,), (1385575366,), (1385575427,), (1385575428,), (1385575509,), (1385576191,), (1385576532,), (1385577203,), (1385578099,), (1385578389,), (1385578408,), (1385578978,), (1385578979,), (1385579024,), (1385579046,), (1385579123,), (1385579134,), (1385579147,), (1385579157,), (1385579161,), (1385579165,), (1385579173,), (1385579174,), (1385579207,), (1385579208,), (1385579219,), (1385579220,), (1385579249,), (1385579282,), (1385579283,), (1385579298,), (1385579308,), (1385579309,), (1385579352,), (1385579400,), (1385579401,), (1385579446,), (1385579447,), (1385579448,), (1385579450,), (1385579461,), (1385579485,), (1385579486,), (1385579508,), (1385579615,), (1385579640,), (1385579977,), (1385579974,), (1385579975,), (1385579976,), (1385580751,), (1385580889,), (1385580890,), (1385580899,), (1385580911,), (1385580931,), (1385580942,), (1385580962,), (1385580988,), (1385581008,), (1385582288,), (1385582289,), (1385582626,), (1385582627,), (1385582724,), (1385582758,), (1385582759,), (1385582830,), (1385582855,), (1385583559,), (1385583903,), (1385583916,), (1385584188,), (1385584350,), (1385584348,), (1385584349,), (1385584372,), (1385584417,), (1385584418,), (1385584419,), (1385584425,), (1385584454,), (1385584455,), (1385584500,), (1385584501,), (1385584515,), (1385584570,), (1385584573,), (1385584578,), (1385584650,), (1385584666,), (1385584741,), (1385584742,), (1385584760,), (1385584786,), (1385584803,), (1385584915,), (1385584916,), (1385584917,), (1385584985,), (1385584996,), (1385584997,), (1385585032,), (1385585033,), (1385585520,), (1385585498,), (1385585794,), (1385585817,), (1385587472,), (1385587681,), (1385587701,), (1385587703,), (1385587717,), (1385587734,), (1385589487,), (1385589465,), (1385591767,), (1385591781,), (1385591783,), (1385591810,), (1385591820,), (1385591871,), (1385591873,), (1385592158,), (1385592161,), (1385592173,), (1385592195,), (1385592199,), (1385592263,), (1385592281,), (1385592283,), (1385592293,), (1385592296,), (1385592324,), (1385592337,), (1385592339,), (1385592380,), (1385592374,), (1385592377,), (1385592420,), (1385592423,), (1385592429,), (1385592456,), (1385592460,), (1385592473,), (1385592476,), (1385592501,), (1385592503,), (1385592524,), (1385592526,), (1385592527,), (1385592529,), (1385592533,), (1385592543,), (1385592544,), (1385592545,), (1385592563,), (1385592565,), (1385592567,), (1385592569,), (1385592582,), (1385592583,), (1385592584,), (1385592586,), (1385592592,), (1385592623,), (1385592625,), (1385592626,), (1385592628,), (1385592678,), (1385592679,), (1385592682,), (1385592710,), (1385592712,), (1385592716,), (1385592722,), (1385592727,), (1385592738,), (1385592739,), (1385592740,), (1385592742,), (1385592744,), (1385592746,), (1385592757,), (1385592759,), (1385592762,), (1385592765,), (1385592766,), (1385592781,), (1385592806,), (1385592807,), (1385592808,), (1385592810,), (1385592812,), (1385592822,), (1385592824,), (1385592825,), (1385592827,), (1385592832,), (1385592846,), (1385592842,), (1385592843,), (1385592844,), (1385592873,), (1385592880,), (1385592881,), (1385592883,), (1385592886,), (1385592892,), (1385592893,), (1385592894,), (1385592896,), (1385592924,), (1385592926,), (1385592928,), (1385592931,), (1385592936,), (1385592938,), (1385592943,), (1385592944,), (1385592945,), (1385592947,), (1385592950,), (1385592953,), (1385592962,), (1385592964,), (1385592969,), (1385592987,), (1385592989,), (1385592990,), (1385592993,), (1385592997,), (1385593017,), (1385593021,), (1385593023,), (1385593025,), (1385593027,), (1385593036,), (1385593037,), (1385593038,), (1385593040,), (1385593069,), (1385593074,), (1385593075,), (1385593077,), (1385593080,), (1385593083,), (1385593089,), (1385593090,), (1385593092,), (1385593094,), (1385593097,), (1385593099,), (1385593103,), (1385593105,), (1385593106,), (1385593108,), (1385593111,), (1385593118,), (1385593119,), (1385593120,), (1385593122,), (1385593124,), (1385593126,), (1385593144,), (1385593146,), (1385593148,), (1385593150,), (1385593164,), (1385593165,), (1385593167,), (1385593169,), (1385593173,), (1385593179,), (1385593205,), (1385593201,), (1385593203,), (1385593220,), (1385593223,), (1385593226,), (1385593227,), (1385593229,), (1385593231,), (1385593247,), (1385593249,), (1385593250,), (1385593254,), (1385593257,), (1385593260,), (1385593269,), (1385593270,), (1385593271,), (1385593273,), (1385593298,), (1385593307,), (1385593309,), (1385593311,), (1385593314,), (1385593317,), (1385593322,), (1385593323,), (1385593324,), (1385593326,), (1385593329,), (1385593353,), (1385593355,), (1385593356,), (1385593359,), (1385593374,), (1385593375,), (1385593376,), (1385593378,), (1385593382,), (1385593403,), (1385593406,), (1385593407,), (1385593408,), (1385593410,), (1385593417,), (1385593418,), (1385593419,), (1385593423,), (1385593428,), (1385593432,), (1385593445,), (1385593451,), (1385593452,), (1385593455,), (1385593457,), (1385593469,), (1385593472,), (1385593475,), (1385593492,), (1385593494,), (1385593495,), (1385593497,), (1385593500,), (1385593503,), (1385593810,), (1385593839,), (1385593867,), (1385593895,), (1385594305,), (1385594265,), (1385595231,), (1385595290,), (1385595388,), (1385595865,), (1385595890,), (1385595918,), (1385595942,), (1385595970,), (1385596021,), (1385596023,), (1385596026,), (1385596034,), (1385596066,), (1385596093,), (1385596189,), (1385596212,), (1385596234,), (1385596255,), (1385596263,), (1385596305,), (1385596309,), (1385596335,), (1385596350,), (1385596372,), (1385596374,), (1385596375,), (1385596377,), (1385596380,), (1385596387,), (1385596388,), (1385596389,), (1385596399,), (1385596401,), (1385596404,), (1385596406,), (1385596410,), (1385596432,), (1385596433,), (1385596463,), (1385596468,), (1385596469,), (1385596471,), (1385596488,), (1385596489,), (1385596490,), (1385596492,), (1385596526,), (1385596528,), (1385596530,), (1385596533,), (1385596537,), (1385596548,), (1385596555,), (1385596565,), (1385596568,), (1385596572,), (1385596586,), (1385596587,), (1385596589,), (1385596591,), (1385596594,), (1385596636,), (1385596632,), (1385596633,), (1385596634,), (1385596647,), (1385596649,), (1385596651,), (1385596654,), (1385596658,), (1385596661,), (1385596681,), (1385596683,), (1385596712,), (1385596714,), (1385596717,), (1385596721,), (1385596725,), (1385596729,), (1385596745,), (1385596746,), (1385596751,), (1385596754,), (1385596756,), (1385596765,), (1385596767,), (1385596770,), (1385596774,), (1385596777,), (1385596803,), (1385596805,), (1385596806,), (1385596808,), (1385596810,), (1385596812,), (1385596832,), (1385596833,), (1385596834,), (1385596855,), (1385596862,), (1385596865,), (1385596868,), (1385596871,), (1385596873,), (1385596891,), (1385596892,), (1385596893,), (1385596895,), (1385596897,), (1385596922,), (1385596924,), (1385596926,), (1385596952,), (1385596955,), (1385596956,), (1385596959,), (1385596963,), (1385596982,), (1385596989,), (1385596990,), (1385596993,), (1385597005,), (1385597007,), (1385597009,), (1385597013,), (1385597035,), (1385597039,), (1385597042,), (1385597046,), (1385597047,), (1385597052,), (1385597075,), (1385597070,), (1385597071,), (1385597072,), (1385597091,), (1385597093,), (1385597107,), (1385597295,), (1385597327,), (1385601753,), (1385601752,), (1385601862,), (1385601863,), (1385601864,), (1385601866,), (1385601879,), (1385601951,), (1385601952,), (1385601953,), (1385601955,), (1385602243,), (1385602244,), (1385602503,), (1385602625,), (1385602627,), (1385602650,), (1385602677,), (1385602711,), (1385602712,), (1385602713,), (1385602715,), (1385602717,), (1385602720,), (1385602731,), (1385602733,), (1385602735,), (1385602737,), (1385602740,), (1385602754,), (1385602755,), (1385602756,), (1385602772,), (1385602773,), (1385602786,), (1385602789,), (1385602956,), (1385602984,), (1385602989,), (1385602998,), (1385603004,), (1385603098,), (1385603099,), (1385603100,), (1385603102,), (1385603105,), (1385603108,), (1385603118,), (1385603121,), (1385603122,), (1385603202,), (1385603147,), (1385603173,), (1385603365,), (1385603381,), (1385603393,), (1385603403,), (1385603417,), (1385603418,), (1385603432,), (1385603434,), (1385603564,), (1385603751,), (1385603797,), (1385603871,), (1385603873,), (1385603874,), (1385603984,), (1385604007,), (1385604053,), (1385604080,), (1385604083,), (1385604181,), (1385604191,), (1385604192,), (1385604219,), (1385604220,), (1385604221,), (1385604257,), (1385604259,), (1385604537,), (1385604586,), (1385604615,), (1385604684,), (1385604686,), (1385604688,), (1385604690,), (1385604729,), (1385604713,), (1385604723,), (1385604725,), (1385604776,), (1385604778,), (1385604780,), (1385604814,), (1385604836,), (1385604850,), (1385604931,), (1385604934,), (1385604970,), (1385604972,), (1385604973,), (1385604976,), (1385604980,), (1385604983,), (1385605169,), (1385605197,), (1385605219,), (1385605349,), (1385605350,), (1385605352,), (1385605355,), (1385605374,), (1385605380,), (1385605383,), (1385605391,), (1385605407,), (1385605430,), (1385605437,), (1385605441,), (1385605445,), (1385605495,), (1385605498,), (1385605501,), (1385605604,), (1385605616,), (1385605673,), (1385605676,), (1385605677,), (1385605740,), (1385605741,), (1385605743,), (1385605746,), (1385605749,), (1385605824,), (1385605827,), (1385605900,), (1385605886,), (1385605891,), (1385605895,), (1385605945,), (1385605949,), (1385606208,), (1385606234,), (1385606260,), (1385606742,), (1385606793,), (1385607232,), (1385607653,), (1385608007,), (1385608317,), (1385608319,), (1385608406,), (1385608566,), (1385608592,), (1385608620,), (1385608948,), (1385608983,), (1385609326,), (1385609354,), (1385609378,), (1385609416,), (1385609718,), (1385609719,), (1385609720,), (1385609883,), (1385609935,), (1385609970,), (1385610006,), (1385610302,), (1385610310,), (1385610311,), (1385610464,), (1385610451,), (1385610504,), (1385610507,), (1385610508,), (1385610558,), (1385610560,), (1385610603,), (1385610606,), (1385610609,), (1385610619,), (1385610640,), (1385610641,), (1385610642,), (1385610646,), (1385610651,), (1385610673,), (1385610676,), (1385610678,), (1385610718,), (1385610783,), (1385610794,), (1385610800,), (1385610804,), (1385610821,), (1385610824,), (1385610827,), (1385610830,), (1385610857,), (1385610859,), (1385610915,), (1385610918,), (1385610920,), (1385610996,), (1385611236,), (1385611239,), (1385611494,), (1385611511,), (1385611514,), (1385611527,), (1385611557,), (1385611560,), (1385611562,), (1385611567,), (1385611573,), (1385611619,), (1385611615,), (1385611617,), (1385611659,), (1385611664,), (1385611672,), (1385611676,), (1385611680,), (1385611685,), (1385611699,), (1385611700,), (1385611701,), (1385611702,), (1385611710,), (1385611717,), (1385611755,), (1385611756,), (1385611757,), (1385611759,), (1385611786,), (1385611789,), (1385611795,), (1385611817,), (1385611819,), (1385611821,), (1385611824,), (1385611827,), (1385611854,), (1385611857,), (1385611868,), (1385611910,), (1385611912,), (1385611935,), (1385611937,), (1385611952,), (1385611975,), (1385611978,), (1385611989,), (1385611993,), (1385612054,), (1385612061,), (1385612066,), (1385612075,), (1385612297,), (1385612298,), (1385612299,), (1385612339,), (1385612494,), (1385612545,), (1385612579,), (1385612610,), (1385612643,), (1385612675,), (1385612728,), (1385612731,), (1385612732,), (1385612735,), (1385612738,), (1385612740,), (1385612784,), (1385612786,), (1385612787,), (1385612952,), (1385612968,), (1385612972,), (1385612974,), (1385612978,), (1385613003,), (1385613132,), (1385613113,), (1385613116,), (1385613120,), (1385613122,), (1385613128,), (1385613185,), (1385613187,), (1385613253,), (1385613255,), (1385613256,), (1385613259,), (1385613262,), (1385613334,), (1385613358,), (1385613382,), (1385613407,), (1385613628,), (1385613630,), (1385613632,), (1385613649,), (1385613651,), (1385613670,), (1385613711,), (1385613745,), (1385613994,), (1385614011,), (1385614030,), (1385614051,), (1385614138,), (1385614164,), (1385614198,), (1385614200,), (1385614376,), (1385614402,), (1385614431,), (1385614458,), (1385614484,), (1385614895,), (1385614898,), (1385614905,), (1385614911,), (1385615228,), (1385615256,), (1385615266,), (1385615303,), (1385615381,), (1385615438,), (1385615535,), (1385615548,), (1385615571,), (1385615835,), (1385615838,), (1385615840,), (1385615842,), (1385615845,), (1385615848,), (1385615995,), (1385616026,), (1385616057,), (1385616082,), (1385616115,), (1385616142,), (1385616185,), (1385616212,), (1385616235,), (1385616255,), (1385616338,), (1385625377,), (1385627190,), (1385627192,), (1385627193,), (1385627195,), (1385627203,), (1385627228,), (1385627506,), (1385627514,), (1385627515,), (1385627523,), (1385627785,), (1385627778,), (1385627999,), (1385628001,), (1385628024,), (1385628228,), (1385628254,), (1385628996,), (1385629025,), (1385629049,), (1385629170,), (1385629194,), (1385629199,), (1385629578,), (1385629580,), (1385629600,), (1385629647,), (1385629649,), (1385629651,), (1385629655,), (1385629659,), (1385629775,), (1385629810,), (1385629836,), (1385629861,), (1385629890,), (1385630159,), (1385630175,), (1385630229,), (1385630257,), (1385630504,), (1385630525,), (1385630533,), (1385630535,), (1385630561,), (1385630640,), (1385631023,), (1385631025,), (1385631027,), (1385631063,), (1385631206,), (1385631210,), (1385631217,), (1385631221,), (1385631225,), (1385631309,), (1385631253,), (1385631257,), (1385631258,), (1385631271,), (1385631999,), (1385632049,), (1385632099,), (1385632166,), (1385632215,), (1385632266,), (1385632597,), (1385632620,), (1385632660,), (1385632814,), (1385633059,), (1385633062,), (1385633065,), (1385633069,), (1385633072,), (1385633078,), (1385633091,), (1385633093,), (1385633095,), (1385633097,), (1385633458,), (1385633508,), (1385633576,), (1385634461,), (1385634488,), (1385634512,), (1385634545,), (1385634594,), (1385634987,), (1385634999,), (1385635013,), (1385635049,), (1385635070,), (1385635184,), (1385635211,), (1385635239,), (1385635276,), (1385635664,), (1385635690,), (1385635697,), (1385635700,), (1385635834,), (1385635837,), (1385635838,), (1385635856,), (1385636009,), (1385636010,), (1385636011,), (1385636014,), (1385636020,), (1385636023,), (1385636046,), (1385636049,), (1385636052,), (1385636057,), (1385636061,), (1385636081,), (1385636084,), (1385636085,), (1385636111,), (1385636297,), (1385636307,), (1385636309,), (1385636311,), (1385636314,), (1385636318,), (1385636368,), (1385636358,), (1385636360,), (1385636361,), (1385636364,), (1385636382,), (1385636385,), (1385636386,), (1385636389,), (1385636392,), (1385636413,), (1385636440,), (1385636695,), (1385636697,), (1385636699,), (1385636861,), (1385636886,), (1385636895,), (1385636897,), (1385637029,), (1385637032,), (1385637035,), (1385637038,), (1385637101,), (1385637107,), (1385637109,), (1385637163,), (1385637249,), (1385637422,), (1385637424,), (1385637561,), (1385637563,), (1385637569,), (1385637595,), (1385638681,), (1385638776,), (1385638887,), (1385638995,), (1385639169,), (1385639196,), (1385639223,), (1385639265,), (1385639936,), (1385640035,), (1385640061,), (1385640439,), (1385640464,), (1385641103,), (1385641105,), (1385641344,), (1385641346,), (1385641372,), (1385641457,), (1385642127,), (1385641941,), (1385642051,), (1385642096,), (1385642124,), (1385642179,), (1385642286,), (1385642312,), (1385642614,), (1385642635,), (1385642639,), (1385642780,), (1385642805,), (1385642858,), (1385643111,), (1385643114,), (1385643122,), (1385643158,), (1385643907,), (1385643920,), (1385644281,), (1385644289,), (1385644526,), (1385644529,), (1385644531,), (1385644537,), (1385644564,), (1385644822,), (1385644828,), (1385644866,), (1385645109,), (1385645655,), (1385645657,), (1385645681,), (1385645813,), (1385645815,), (1385645816,), (1385645819,), (1385645823,), (1385645908,), (1385645910,), (1385646475,), (1385646133,), (1385646283,), (1385646335,), (1385646386,), (1385646906,), (1385646936,), (1385646976,), (1385647004,), (1385647091,), (1385647118,), (1385647477,), (1385647523,), (1385647555,), (1385647582,), (1385647611,), (1385647645,), (1385648187,), (1385648233,), (1385648280,), (1385648329,), (1385648385,), (1385648996,), (1385649088,), (1385649140,), (1385649190,), (1385649243,), (1385649260,), (1385649391,), (1385649451,), (1385649479,), (1385649504,), (1385649655,), (1385649684,), (1385649709,), (1385649735,), (1385649764,), (1385650227,), (1385650261,), (1385650291,), (1385650320,), (1385650541,), (1385650550,), (1385650551,), (1385650568,), (1385650573,), (1385650604,), (1385650810,), (1385650872,), (1385650924,), (1385650971,), (1385651289,), (1385651307,), (1385651316,), (1385651318,), (1385651328,), (1385651332,), (1385651467,), (1385651468,), (1385651469,), (1385651763,), (1385652152,), (1385652158,), (1385652165,), (1385652170,), (1385652173,), (1385652179,), (1385652186,), (1385652193,), (1385652198,), (1385652201,), (1385652224,), (1385652212,), (1385652213,), (1385652219,), (1385652409,), (1385652434,), (1385652883,), (1385652956,), (1385653027,), (1385653102,), (1385653179,), (1385654030,), (1385654294,), (1385654388,), (1385654461,), (1385654535,), (1385654598,), (1385654952,), (1385655026,), (1385655304,), (1385655310,), (1385655344,), (1385655373,), (1385655427,), (1385655460,), (1385655984,), (1385656035,), (1385656105,), (1385656151,), (1385656790,), (1385656844,), (1385656872,), (1385656896,), (1385656923,), (1385657261,), (1385657285,), (1385657651,), (1385657676,), (1385657693,), (1385657706,), (1385657708,), (1385657722,), (1385657749,), (1385657973,), (1385657983,), (1385658001,), (1385658028,), (1385658058,), (1385658066,), (1385658167,), (1385658168,), (1385658169,), (1385658193,), (1385658194,), (1385658216,), (1385658218,), (1385658220,), (1385658226,), (1385658509,), (1385658504,), (1385658505,), (1385658631,), (1385658632,), (1385658634,), (1385658803,), (1385658805,), (1385658827,), (1385658855,), (1385658900,), (1385658930,), (1385659176,), (1385659197,), (1385659198,), (1385659434,), (1385659451,), (1385659555,), (1385659592,), (1385659614,), (1385659619,), (1385659791,), (1385659793,), (1385659794,), (1385659797,), (1385659802,), (1385659903,), (1385659904,), (1385659912,), (1385659945,), (1385659947,), (1385659948,), (1385659949,), (1385659953,), (1385659956,), (1385660086,), (1385660089,), (1385660091,), (1385660093,), (1385660096,), (1385660153,), (1385660158,), (1385660172,), (1385660178,), (1385660204,), (1385660230,), (1385660258,), (1385660287,), (1385660563,), (1385660590,), (1385660623,), (1385660647,), (1385660879,), (1385660880,), (1385660881,), (1385660883,), (1385660918,), (1385660928,), (1385660931,), (1385660957,), (1385660983,), (1385661010,), (1385661281,), (1385661290,), (1385661314,), (1385661325,), (1385661490,), (1385661451,), (1385661484,), (1385661486,), (1385661488,), (1385661532,), (1385661556,), (1385661582,), (1385661819,), (1385661847,), (1385661872,), (1385661898,), (1385661927,), (1385662247,), (1385662298,), (1385662331,), (1385662376,), (1385662412,), (1385662526,), (1385662528,), (1385662531,), (1385662536,), (1385662970,), (1385662973,), (1385662974,), (1385662976,), (1385662980,), (1385663100,), (1385663126,), (1385663154,), (1385663182,), (1385663216,), (1385663258,), (1385663281,), (1385663283,), (1385663285,), (1385663288,), (1385663294,), (1385663329,), (1385663331,), (1385663333,), (1385663336,), (1385663340,), (1385663355,), (1385663358,), (1385663365,), (1385663371,), (1385663375,), (1385663414,), (1385663416,), (1385663419,), (1385663425,), (1385663625,), (1385663627,), (1385663628,), (1385663657,), (1385663660,), (1385663665,), (1385663674,), (1385663683,), (1385663704,), (1385663715,), (1385663716,), (1385663724,), (1385663735,), (1385663767,), (1385663796,), (1385663895,), (1385663881,), (1385663893,), (1385663965,), (1385664000,), (1385664033,), (1385664070,), (1385664071,), (1385664072,), (1385664074,), (1385664107,), (1385664108,), (1385664109,), (1385664120,), (1385664430,), (1385664454,), (1385664480,), (1385664652,), (1385664654,), (1385664825,), (1385664826,), (1385664843,), (1385664871,), (1385665006,), (1385665034,), (1385665063,), (1385665084,), (1385665112,), (1385665115,), (1385665118,), (1385665139,), (1385665140,), (1385665141,), (1385665166,), (1385665167,), (1385665181,), (1385665193,), (1385665204,), (1385665303,), (1385665305,), (1385665308,), (1385665312,), (1385665343,), (1385665413,), (1385665478,), (1385665480,), (1385665483,), (1385665650,), (1385665665,), (1385665675,), (1385665678,), (1385665680,), (1385665684,), (1385665709,), (1385665703,), (1385665706,), (1385665708,), (1385666104,), (1385666127,), (1385666152,), (1385666177,), (1385666359,), (1385666367,), (1385666372,), (1385666384,), (1385666401,), (1385666614,), (1385666643,), (1385666647,), (1385666784,), (1385666814,), (1385666841,), (1385666871,), (1385666898,), (1385667252,), (1385667279,), (1385667303,), (1385667333,), (1385667523,), (1385667530,), (1385667621,), (1385667623,), (1385668036,), (1385668060,), (1385668084,), (1385668545,), (1385668578,), (1385668814,), (1385668816,), (1385668818,), (1385669028,), (1385680608,), (1385689109,), (1385689140,), (1385689607,), (1385689655,), (1385690365,), (1385690412,), (1385690460,), (1385690496,), (1385690523,), (1385690952,), (1385691026,), (1385691079,), (1385691125,), (1385691931,), (1385691957,), (1385691992,), (1385692044,), (1385692097,), (1385692128,), (1385692362,), (1385692395,), (1385692426,), (1385692458,), (1385692512,), (1385692602,), (1385692628,), (1385692654,), (1385692687,), (1385692718,), (1385692748,), (1385692772,), (1385692798,), (1385692829,), (1385692868,), (1385693137,), (1385693159,), (1385693172,), (1385693176,), (1385693184,), (1385693188,), (1385693210,), (1385693212,), (1385693213,), (1385693215,), (1385693219,), (1385693232,), (1385693234,), (1385693235,), (1385693237,), (1385693241,), (1385693243,), (1385693267,), (1385693269,), (1385693270,), (1385693273,), (1385693277,), (1385693464,), (1385693474,), (1385693478,), (1385693490,), (1385693499,), (1385693551,), (1385693615,), (1385693622,), (1385693623,), (1385693632,), (1385693642,), (1385693662,), (1385693663,), (1385693665,), (1385693669,), (1385693672,), (1385693676,), (1385693683,), (1385693684,), (1385693692,), (1385693697,), (1385693695,), (1385693727,), (1385693728,), (1385693751,), (1385693780,), (1385693785,), (1385693988,), (1385694395,), (1385694427,), (1385694452,), (1385694700,), (1385694701,), (1385694703,), (1385694704,), (1385694802,), (1385694835,), (1385694861,), (1385694887,), (1385694910,), (1385695003,), (1385695004,), (1385695005,), (1385695006,), (1385695017,), (1385695019,), (1385695021,), (1385695023,), (1385695027,), (1385695030,), (1385695044,), (1385695046,), (1385695048,), (1385695079,), (1385695081,), (1385695105,), (1385695107,), (1385695111,), (1385695115,), (1385695120,), (1385695125,), (1385695156,), (1385695158,), (1385695159,), (1385695172,), (1385695176,), (1385695181,), (1385695219,), (1385695220,), (1385695221,), (1385695254,), (1385695279,), (1385695358,), (1385695348,), (1385695349,), (1385695351,), (1385695354,), (1385695397,), (1385695406,), (1385695412,), (1385695415,), (1385695463,), (1385695464,), (1385695537,), (1385695539,), (1385695556,), (1385695563,), (1385695586,), (1385695617,), (1385695619,), (1385695648,), (1385695649,), (1385695650,), (1385695728,), (1385695736,), (1385695739,), (1385695747,), (1385695762,), (1385695763,), (1385695764,), (1385695772,), (1385695830,), (1385695832,), (1385695834,), (1385695836,), (1385695840,), (1385695843,), (1385695854,), (1385695855,), (1385695856,), (1385695859,), (1385695862,), (1385695884,), (1385695886,), (1385695891,), (1385695906,), (1385695915,), (1385695950,), (1385695951,), (1385695952,), (1385695954,), (1385695991,), (1385695994,), (1385695995,), (1385695999,), (1385696009,), (1385696036,), (1385696071,), (1385696073,), (1385696074,), (1385696075,), (1385696080,), (1385696082,), (1385696120,), (1385696111,), (1385696113,), (1385696117,), (1385696136,), (1385696137,), (1385696138,), (1385696140,), (1385696143,), (1385696146,), (1385696167,), (1385696171,), (1385696173,), (1385696176,), (1385696179,), (1385696206,), (1385696207,), (1385696208,), (1385696210,), (1385696213,), (1385696216,), (1385696229,), (1385696232,), (1385696233,), (1385696236,), (1385696239,), (1385696260,), (1385696262,), (1385696264,), (1385696266,), (1385696270,), (1385696273,), (1385696311,), (1385696313,), (1385696314,), (1385696318,), (1385696321,), (1385696340,), (1385696341,), (1385696342,), (1385696344,), (1385696347,), (1385696350,), (1385696380,), (1385696383,), (1385696384,), (1385696387,), (1385696411,), (1385696413,), (1385696414,), (1385696420,), (1385696423,), (1385696444,), (1385696447,), (1385696449,), (1385696453,), (1385696458,), (1385696478,), (1385696490,), (1385696494,), (1385696503,), (1385696509,), (1385696563,), (1385696572,), (1385696574,), (1385696577,), (1385696581,), (1385696585,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23092025': {'nb_upload': 67, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27135451]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563] map_info['map_portfolio_photo'] : {27135451: [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563, 1385696509, 1385696503, 1385696494, 1385696490, 1385696478, 1385696458, 1385696453, 1385696449, 1385696447, 1385696444, 1385696423, 1385696420, 1385696414, 1385696413, 1385696411, 1385696387, 1385696384, 1385696383, 1385696380, 1385696350, 1385696347, 1385696344, 1385696342, 1385696341, 1385696340, 1385696321, 1385696318, 1385696314, 1385696313, 1385696311, 1385696273, 1385696270, 1385696266, 1385696264, 1385696262, 1385696260, 1385696239, 1385696236, 1385696233, 1385696232, 1385696229, 1385696216, 1385696213, 1385696210, 1385696208, 1385696207, 1385696206, 1385696179, 1385696176, 1385696173, 1385696171, 1385696167, 1385696146, 1385696143, 1385696140, 1385696138, 1385696137, 1385696136, 1385696117, 1385696113, 1385696111]} final : True mtd_id 4302 list_pids : [1385696585, 1385696581, 1385696577, 1385696574, 1385696572, 1385696563] Looping around the photos to save general results len do output : 1 /27135451Didn'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, '3764036') ('4302', '27135451', '1385696585', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696581', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696577', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696574', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696572', None, None, None, None, None, '3764036') ('4302', None, None, None, None, None, None, None, '3764036') ('4302', '27135451', '1385696563', None, None, None, None, None, '3764036') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27135451', 'None', None, None, None, None, '3764036'), ('4302', '27135451', '1385696585', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696581', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696577', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696574', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696572', None, None, None, None, None, '3764036'), ('4302', '27135451', '1385696563', None, None, None, None, None, '3764036')] time used for this insertion : 0.01610398292541504 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6626553535461426 time spend to save output : 0.016311168670654297 total time spend for step 5 : 2.678966522216797 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 (3764036) 2.35user 2.49system 0:11.68elapsed 41%CPU (0avgtext+0avgdata 158976maxresident)k 408inputs+11248outputs (6major+74801minor)pagefaults 0swaps