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 : 66000 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 (4085689) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4085689) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749853 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4085689'] with mtr_portfolio_ids : ['28749853'] and first list_photo_ids : [] new path : /proc/66000/ Name: python3 Umask: 0002 State: R (running) Tgid: 66000 Ngid: 0 Pid: 66000 PPid: 65997 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 66000 NSpid: 66000 NSpgid: 65172 NSsid: 65172 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98128 kB VmRSS: 98128 kB RssAnon: 59904 kB RssFile: 38224 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 560 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: 35 nonvoluntary_ctxt_switches: 125 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '66000', 'Ngid': '0', 'Pid': '66000', 'PPid': '65997', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '66000', 'NSpid': '66000', 'NSpgid': '65172', 'NSsid': '65172', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98128 kB', 'VmRSS': '98128 kB', 'RssAnon': '59904 kB', 'RssFile': '38224 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '560 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': '35', 'nonvoluntary_ctxt_switches': '125'} ('datou_batch_current', '66000', '1106908', '0', '1106884', '865636', '98128', b'', 'marlene', '4085689') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28749853) 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 (4085689 ) ) 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 (28749853) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395391873, 'portfolio_id': 28749853}, {'photo_id': 1395391834, 'portfolio_id': 28749853}, {'photo_id': 1395391793, 'portfolio_id': 28749853}, {'photo_id': 1395391754, 'portfolio_id': 28749853}, {'photo_id': 1395391665, 'portfolio_id': 28749853}, {'photo_id': 1395391604, 'portfolio_id': 28749853}, {'photo_id': 1395391602, 'portfolio_id': 28749853}, {'photo_id': 1395391596, 'portfolio_id': 28749853}, {'photo_id': 1395391572, 'portfolio_id': 28749853}, {'photo_id': 1395391567, 'portfolio_id': 28749853}, {'photo_id': 1395391558, 'portfolio_id': 28749853}, {'photo_id': 1395391537, 'portfolio_id': 28749853}, {'photo_id': 1395391534, 'portfolio_id': 28749853}, {'photo_id': 1395391531, 'portfolio_id': 28749853}, {'photo_id': 1395391511, 'portfolio_id': 28749853}, {'photo_id': 1395391510, 'portfolio_id': 28749853}, {'photo_id': 1395391500, 'portfolio_id': 28749853}, {'photo_id': 1395391495, 'portfolio_id': 28749853}, {'photo_id': 1395391466, 'portfolio_id': 28749853}, {'photo_id': 1395391456, 'portfolio_id': 28749853}, {'photo_id': 1395391375, 'portfolio_id': 28749853}, {'photo_id': 1395391370, 'portfolio_id': 28749853}, {'photo_id': 1395391367, 'portfolio_id': 28749853}, {'photo_id': 1395391358, 'portfolio_id': 28749853}, {'photo_id': 1395391341, 'portfolio_id': 28749853}, {'photo_id': 1395391337, 'portfolio_id': 28749853}, {'photo_id': 1395391305, 'portfolio_id': 28749853}, {'photo_id': 1395391270, 'portfolio_id': 28749853}, {'photo_id': 1395391240, 'portfolio_id': 28749853}, {'photo_id': 1395391205, 'portfolio_id': 28749853}, {'photo_id': 1395391161, 'portfolio_id': 28749853}, {'photo_id': 1395391158, 'portfolio_id': 28749853}, {'photo_id': 1395391155, 'portfolio_id': 28749853}, {'photo_id': 1395391153, 'portfolio_id': 28749853}, {'photo_id': 1395391151, 'portfolio_id': 28749853}, {'photo_id': 1395391100, 'portfolio_id': 28749853}, {'photo_id': 1395391098, 'portfolio_id': 28749853}, {'photo_id': 1395391094, 'portfolio_id': 28749853}, {'photo_id': 1395391092, 'portfolio_id': 28749853}, {'photo_id': 1395391090, 'portfolio_id': 28749853}, {'photo_id': 1395391086, 'portfolio_id': 28749853}, {'photo_id': 1395391064, 'portfolio_id': 28749853}, {'photo_id': 1395391062, 'portfolio_id': 28749853}, {'photo_id': 1395391059, 'portfolio_id': 28749853}, {'photo_id': 1395391055, 'portfolio_id': 28749853}, {'photo_id': 1395391048, 'portfolio_id': 28749853}, {'photo_id': 1395391047, 'portfolio_id': 28749853}, {'photo_id': 1395391038, 'portfolio_id': 28749853}, {'photo_id': 1395391036, 'portfolio_id': 28749853}, {'photo_id': 1395391034, 'portfolio_id': 28749853}, {'photo_id': 1395391015, 'portfolio_id': 28749853}, {'photo_id': 1395391013, 'portfolio_id': 28749853}, {'photo_id': 1395390999, 'portfolio_id': 28749853}, {'photo_id': 1395390732, 'portfolio_id': 28749853}, {'photo_id': 1395390729, 'portfolio_id': 28749853}, {'photo_id': 1395390725, 'portfolio_id': 28749853}, {'photo_id': 1395390723, 'portfolio_id': 28749853}, {'photo_id': 1395390710, 'portfolio_id': 28749853}, {'photo_id': 1395390653, 'portfolio_id': 28749853}, {'photo_id': 1395390650, 'portfolio_id': 28749853}, {'photo_id': 1395390647, 'portfolio_id': 28749853}, {'photo_id': 1395390641, 'portfolio_id': 28749853}, {'photo_id': 1395390637, 'portfolio_id': 28749853}, {'photo_id': 1395390633, 'portfolio_id': 28749853}, {'photo_id': 1395390630, 'portfolio_id': 28749853}, {'photo_id': 1395390621, 'portfolio_id': 28749853}, {'photo_id': 1395390620, 'portfolio_id': 28749853}, {'photo_id': 1395390617, 'portfolio_id': 28749853}, {'photo_id': 1395390614, 'portfolio_id': 28749853}, {'photo_id': 1395390609, 'portfolio_id': 28749853}, {'photo_id': 1395390586, 'portfolio_id': 28749853}, {'photo_id': 1395390563, 'portfolio_id': 28749853}, {'photo_id': 1395390558, 'portfolio_id': 28749853}, {'photo_id': 1395390553, 'portfolio_id': 28749853}, {'photo_id': 1395390550, 'portfolio_id': 28749853}, {'photo_id': 1395390545, 'portfolio_id': 28749853}, {'photo_id': 1395390541, 'portfolio_id': 28749853}, {'photo_id': 1395390520, 'portfolio_id': 28749853}, {'photo_id': 1395390509, 'portfolio_id': 28749853}, {'photo_id': 1395390503, 'portfolio_id': 28749853}, {'photo_id': 1395390495, 'portfolio_id': 28749853}] map_portfolio_id_photo_id: {28749853: [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558, 1395391537, 1395391534, 1395391531, 1395391511, 1395391510, 1395391500, 1395391495, 1395391466, 1395391456, 1395391375, 1395391370, 1395391367, 1395391358, 1395391341, 1395391337, 1395391305, 1395391270, 1395391240, 1395391205, 1395391161, 1395391158, 1395391155, 1395391153, 1395391151, 1395391100, 1395391098, 1395391094, 1395391092, 1395391090, 1395391086, 1395391064, 1395391062, 1395391059, 1395391055, 1395391048, 1395391047, 1395391038, 1395391036, 1395391034, 1395391015, 1395391013, 1395390999, 1395390732, 1395390729, 1395390725, 1395390723, 1395390710, 1395390653, 1395390650, 1395390647, 1395390641, 1395390637, 1395390633, 1395390630, 1395390621, 1395390620, 1395390617, 1395390614, 1395390609, 1395390586, 1395390563, 1395390558, 1395390553, 1395390550, 1395390545, 1395390541, 1395390520, 1395390509, 1395390503, 1395390495]} ##### 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.01752471923828125 #### 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 Thu Nov 20 16:46:28 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 (28749853) 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 : 28749853 get user id for portfolio 28749853 get sub ptf for main ptf 28749853, type 3726 and hashtags ['metal', 'Carton_gris', 'kraft', 'Carton_brun', 'papier', 'flou', 'autre_refus', 'cartonnette', 'mal_croppe', 'environnement', 'plastique', 'Teint_Dans_La_Masse'] 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`=28749853 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','kraft','Carton_brun','papier','flou','autre_refus','cartonnette','mal_croppe','environnement','plastique','Teint_Dans_La_Masse')) 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`=28749853 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','kraft','Carton_brun','papier','flou','autre_refus','cartonnette','mal_croppe','environnement','plastique','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28749853, 'sub_port_id': 28749865, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504223, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'cartonnette': {'main_port_id': 28749853, 'sub_port_id': 28749866, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504224, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'papier': {'main_port_id': 28749853, 'sub_port_id': 28749867, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504225, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'environnement': {'main_port_id': 28749853, 'sub_port_id': 28749868, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504226, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'flou': {'main_port_id': 28749853, 'sub_port_id': 28749869, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504227, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'autre_refus': {'main_port_id': 28749853, 'sub_port_id': 28749870, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504228, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'plastique': {'main_port_id': 28749853, 'sub_port_id': 28749871, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504229, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'mal_croppe': {'main_port_id': 28749853, 'sub_port_id': 28749872, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504230, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'Carton_brun': {'main_port_id': 28749853, 'sub_port_id': 28749873, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504231, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'kraft': {'main_port_id': 28749853, 'sub_port_id': 28749874, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504232, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'Carton_gris': {'main_port_id': 28749853, 'sub_port_id': 28749875, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504233, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}, 'metal': {'main_port_id': 28749853, 'sub_port_id': 28749876, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504234, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749865 , 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=28749853 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 (28749865) result : ((1395391075,), (1395391076,), (1395391077,), (1395391078,), (1395391405,), (1395391406,), (1395391877,), (1395391927,), (1395391928,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749866 , 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=28749853 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 (28749866) result : ((1395391363,), (1395391364,), (1395391418,), (1395391804,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749867 , 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=28749853 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 (28749867) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749868 , 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=28749853 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 (28749868) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749869 , 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=28749853 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 (28749869) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749870 , 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=28749853 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 (28749870) result : ((1395391043,), (1395391359,), (1395391782,), (1395391784,), (1395391929,), (1395391930,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749871 , 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=28749853 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 (28749871) result : ((1395391087,), (1395391088,), (1395391820,), (1395391822,), (1395391824,), (1395391826,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749872 , 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=28749853 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 (28749872) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749873 , 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=28749853 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 (28749873) result : ((1395391084,), (1395391368,), (1395391438,), (1395391439,), (1395391440,), (1395391441,), (1395391442,), (1395391443,), (1395391444,), (1395391445,), (1395391446,), (1395391447,), (1395391448,), (1395391449,), (1395391878,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749874 , 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=28749853 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 (28749874) result : ((1395391451,), (1395391452,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749875 , 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=28749853 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 (28749875) result : ((1395391081,), (1395391082,), (1395391083,), (1395391361,), (1395391362,), (1395391407,), (1395391408,), (1395391409,), (1395391411,), (1395391412,), (1395391413,), (1395391414,), (1395391415,), (1395391416,), (1395391795,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28749876 , 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=28749853 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 (28749876) result : ((1395391454,), (1395391455,), (1395391838,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28749853) result : ((1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) 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 (1395391500,1395391100) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28749853 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','kraft','Carton_brun','papier','flou','autre_refus','cartonnette','mal_croppe','environnement','plastique','Teint_Dans_La_Masse')) 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`=28749853 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_gris','kraft','Carton_brun','papier','flou','autre_refus','cartonnette','mal_croppe','environnement','plastique','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28749853, 'sub_port_id': 28749878, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504235, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'cartonnette': {'main_port_id': 28749853, 'sub_port_id': 28749879, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504236, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'papier': {'main_port_id': 28749853, 'sub_port_id': 28749880, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504237, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'environnement': {'main_port_id': 28749853, 'sub_port_id': 28749881, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504238, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'flou': {'main_port_id': 28749853, 'sub_port_id': 28749882, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504239, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'autre_refus': {'main_port_id': 28749853, 'sub_port_id': 28749883, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504240, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'plastique': {'main_port_id': 28749853, 'sub_port_id': 28749884, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504241, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'mal_croppe': {'main_port_id': 28749853, 'sub_port_id': 28749885, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504242, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'Carton_brun': {'main_port_id': 28749853, 'sub_port_id': 28749886, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504243, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'kraft': {'main_port_id': 28749853, 'sub_port_id': 28749887, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504244, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'Carton_gris': {'main_port_id': 28749853, 'sub_port_id': 28749888, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504245, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 35, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}, 'metal': {'main_port_id': 28749853, 'sub_port_id': 28749889, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19504246, 'last_updated_at': datetime.datetime(2025, 11, 20, 16, 44, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 16, 44, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 16, 35, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749878,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749865 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749879,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749866 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749880,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749867 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749881,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749868 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749882,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749869 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749883,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749870 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749884,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749871 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749885,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749872 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749873 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749887,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749874 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749888,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749875 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28749889,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28749876 lien utilise dans velours : https://marlene.fotonower.com/velours/28749878,28749879,28749880,28749881,28749882,28749883,28749884,28749885,28749886,28749887,28749888,28749889?tags=Teint_Dans_La_Masse,cartonnette,papier,environnement,flou,autre_refus,plastique,mal_croppe,Carton_brun,kraft,Carton_gris,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28749853]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558] map_info['map_portfolio_photo'] : {28749853: [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558, 1395391537, 1395391534, 1395391531, 1395391511, 1395391510, 1395391500, 1395391495, 1395391466, 1395391456, 1395391375, 1395391370, 1395391367, 1395391358, 1395391341, 1395391337, 1395391305, 1395391270, 1395391240, 1395391205, 1395391161, 1395391158, 1395391155, 1395391153, 1395391151, 1395391100, 1395391098, 1395391094, 1395391092, 1395391090, 1395391086, 1395391064, 1395391062, 1395391059, 1395391055, 1395391048, 1395391047, 1395391038, 1395391036, 1395391034, 1395391015, 1395391013, 1395390999, 1395390732, 1395390729, 1395390725, 1395390723, 1395390710, 1395390653, 1395390650, 1395390647, 1395390641, 1395390637, 1395390633, 1395390630, 1395390621, 1395390620, 1395390617, 1395390614, 1395390609, 1395390586, 1395390563, 1395390558, 1395390553, 1395390550, 1395390545, 1395390541, 1395390520, 1395390509, 1395390503, 1395390495]} final : False mtd_id 4302 list_pids : [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558] Looping around the photos to save general results len do output : 1 /28749853. 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, '4085689') ('4302', '28749853', '1395391873', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391834', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391793', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391754', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391665', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391604', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391602', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391596', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391572', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391567', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391558', None, None, None, None, None, '4085689') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28749853', "{'Teint_Dans_La_Masse': 28749865, 'cartonnette': 28749866, 'papier': 28749867, 'environnement': 28749868, 'flou': 28749869, 'autre_refus': 28749870, 'plastique': 28749871, 'mal_croppe': 28749872, 'Carton_brun': 28749873, 'kraft': 28749874, 'Carton_gris': 28749875, 'metal': 28749876}", None, None, None, None, '4085689'), ('4302', '28749853', '1395391873', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391834', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391793', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391754', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391665', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391604', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391602', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391596', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391572', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391567', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391558', None, None, None, None, None, '4085689')] time used for this insertion : 0.014739751815795898 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4831714630126953 time spend to save output : 0.015059709548950195 total time spend for step 1 : 0.4982311725616455 step2:final Thu Nov 20 16:46:28 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 (28749853) 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 28749853 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395390520,1395390509,1395390503,1395390495,1395390641,1395390563,1395390558,1395390637,1395390553,1395390633,1395390550,1395390630,1395390545,1395390621,1395390541,1395390620,1395390617,1395390614,1395390609,1395390586,1395390653,1395390650,1395390647,1395391048,1395390732,1395390710,1395391047,1395390729,1395390725,1395391038,1395391036,1395390723,1395391034,1395391015,1395391013,1395390999,1395391064,1395391062,1395391059,1395391055,1395391100,1395391098,1395391094,1395391092,1395391090,1395391086,1395391161,1395391158,1395391155,1395391153,1395391151,1395391341,1395391337,1395391305,1395391270,1395391240,1395391205,1395391375,1395391537,1395391534,1395391370,1395391531,1395391367,1395391358,1395391511,1395391510,1395391500,1395391495,1395391466,1395391456,1395391604,1395391602,1395391596,1395391572,1395391567,1395391558,1395391873,1395391834,1395391793,1395391665,1395391754); 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([28749853]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} new output for save of step final : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558] map_info['map_portfolio_photo'] : {28749853: [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558, 1395391537, 1395391534, 1395391531, 1395391511, 1395391510, 1395391500, 1395391495, 1395391466, 1395391456, 1395391375, 1395391370, 1395391367, 1395391358, 1395391341, 1395391337, 1395391305, 1395391270, 1395391240, 1395391205, 1395391161, 1395391158, 1395391155, 1395391153, 1395391151, 1395391100, 1395391098, 1395391094, 1395391092, 1395391090, 1395391086, 1395391064, 1395391062, 1395391059, 1395391055, 1395391048, 1395391047, 1395391038, 1395391036, 1395391034, 1395391015, 1395391013, 1395390999, 1395390732, 1395390729, 1395390725, 1395390723, 1395390710, 1395390653, 1395390650, 1395390647, 1395390641, 1395390637, 1395390633, 1395390630, 1395390621, 1395390620, 1395390617, 1395390614, 1395390609, 1395390586, 1395390563, 1395390558, 1395390553, 1395390550, 1395390545, 1395390541, 1395390520, 1395390509, 1395390503, 1395390495]} final : False mtd_id 4302 list_pids : [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558] Looping around the photos to save general results len do output : 11 /1395391873.Didn't retrieve data . /1395391834.Didn't retrieve data . /1395391793.Didn't retrieve data . /1395391754.Didn't retrieve data . /1395391665.Didn't retrieve data . /1395391604.Didn't retrieve data . /1395391602.Didn't retrieve data . /1395391596.Didn't retrieve data . /1395391572.Didn't retrieve data . /1395391567.Didn't retrieve data . /1395391558.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, '4085689') ('4302', '28749853', '1395391873', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391834', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391793', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391754', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391665', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391604', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391602', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391596', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391572', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391567', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391558', None, None, None, None, None, '4085689') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '28749853', '1395391873', '0.05009990285903928', None, None, None, None, '4085689'), ('4302', '28749853', '1395391834', '0.05009990285903928', None, None, None, None, '4085689'), ('4302', '28749853', '1395391793', '0.05009990285903928', None, None, None, None, '4085689'), ('4302', '28749853', '1395391754', '0.05009990285903928', None, None, None, None, '4085689'), ('4302', '28749853', '1395391665', '0.05009990285903928', None, None, None, None, '4085689'), ('4302', '28749853', '1395391604', '0.05009990285903928', None, None, None, None, '4085689'), ('4302', '28749853', '1395391602', '0.05009990285903928', None, None, None, None, '4085689'), ('4302', '28749853', '1395391596', '0.05009990285903928', None, None, None, None, '4085689'), ('4302', '28749853', '1395391572', '0.05009990285903928', None, None, None, None, '4085689'), ('4302', '28749853', '1395391567', '0.05009990285903928', None, None, None, None, '4085689'), ('4302', '28749853', '1395391558', '0.05009990285903928', None, None, None, None, '4085689')] time used for this insertion : 0.01700735092163086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07195186614990234 time spend to save output : 0.017592430114746094 total time spend for step 2 : 0.08954429626464844 step3:velours_tree Thu Nov 20 16:46:28 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 : {28749853: [{'Teint_Dans_La_Masse': 28749865, 'cartonnette': 28749866, 'papier': 28749867, 'environnement': 28749868, 'flou': 28749869, 'autre_refus': 28749870, 'plastique': 28749871, 'mal_croppe': 28749872, 'Carton_brun': 28749873, 'kraft': 28749874, 'Carton_gris': 28749875, 'metal': 28749876}]} input_args_next_step : {28749853: ()} output_args : {28749853: [{'Teint_Dans_La_Masse': 28749865, 'cartonnette': 28749866, 'papier': 28749867, 'environnement': 28749868, 'flou': 28749869, 'autre_refus': 28749870, 'plastique': 28749871, 'mal_croppe': 28749872, 'Carton_brun': 28749873, 'kraft': 28749874, 'Carton_gris': 28749875, 'metal': 28749876}]} args : 28749853 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': 28749865, 'cartonnette': 28749866, 'papier': 28749867, 'environnement': 28749868, 'flou': 28749869, 'autre_refus': 28749870, 'plastique': 28749871, 'mal_croppe': 28749872, 'Carton_brun': 28749873, 'kraft': 28749874, 'Carton_gris': 28749875, 'metal': 28749876},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28749853) 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([28749853]) 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.352325439453125 time spend to save output : 4.2438507080078125e-05 total time spend for step 3 : 0.3523678779602051 step4:send_mail_cod Thu Nov 20 16:46:29 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 : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} input_args_next_step : {1395391873: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391873 depend.output_id : 0 input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391834 depend.output_id : 0 input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391793 depend.output_id : 0 input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391754 depend.output_id : 0 input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391665 depend.output_id : 0 input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391604 depend.output_id : 0 input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391602 depend.output_id : 0 input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391596 depend.output_id : 0 input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391572 depend.output_id : 0 input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391567 depend.output_id : 0 input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ()} output_args : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',)} args : 1395391558 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 : {28749853: [{'Teint_Dans_La_Masse': 28749865, 'cartonnette': 28749866, 'papier': 28749867, 'environnement': 28749868, 'flou': 28749869, 'autre_refus': 28749870, 'plastique': 28749871, 'mal_croppe': 28749872, 'Carton_brun': 28749873, 'kraft': 28749874, 'Carton_gris': 28749875, 'metal': 28749876}]} input_args_next_step : {1395391873: ('0.05009990285903928',), 1395391834: ('0.05009990285903928',), 1395391793: ('0.05009990285903928',), 1395391754: ('0.05009990285903928',), 1395391665: ('0.05009990285903928',), 1395391604: ('0.05009990285903928',), 1395391602: ('0.05009990285903928',), 1395391596: ('0.05009990285903928',), 1395391572: ('0.05009990285903928',), 1395391567: ('0.05009990285903928',), 1395391558: ('0.05009990285903928',), 28749853: ()} output_args : {28749853: [{'Teint_Dans_La_Masse': 28749865, 'cartonnette': 28749866, 'papier': 28749867, 'environnement': 28749868, 'flou': 28749869, 'autre_refus': 28749870, 'plastique': 28749871, 'mal_croppe': 28749872, 'Carton_brun': 28749873, 'kraft': 28749874, 'Carton_gris': 28749875, 'metal': 28749876}]} args : 28749853 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 :12, first value : ('0.05009990285903928',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28749853) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1395391873,1395391834,1395391793,1395391754,1395391665,1395391604,1395391602,1395391596,1395391572,1395391567,1395391558) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395391558 begin to download photo : 1395391596 begin to download photo : 1395391665 begin to download photo : 1395391834 download finish for photo 1395391596 begin to download photo : 1395391602 download finish for photo 1395391834 begin to download photo : 1395391873 download finish for photo 1395391558 begin to download photo : 1395391567 download finish for photo 1395391665 begin to download photo : 1395391754 download finish for photo 1395391602 begin to download photo : 1395391604 download finish for photo 1395391873 download finish for photo 1395391754 begin to download photo : 1395391793 download finish for photo 1395391567 begin to download photo : 1395391572 download finish for photo 1395391793 download finish for photo 1395391604 download finish for photo 1395391572 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P28749853_20-11-2025_16_46_29.pdf 28749866 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749866 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395391363: '1763653266_3040132_1395391047_d273e225a21b3b7e28a0c182caf445fd_rle_crop_4040113374_0.png', 1395391364: '1763653266_3040132_1395390729_181fdac678b3f0398717eae4ed7e2072_rle_crop_4040113426_0.png', 1395391418: '1763653285_3041593_1395390617_ba4ad8812087a88717bd7e11ee4e5555_rle_crop_4040113829_0.png', 1395391804: '1763653465_3045026_1395391337_f6f73d472f8ebf908aea1742411f5274_rle_crop_4040116575_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/a14ae1a8f2989b623eb39a2f8abfc58b_2682219.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/a14ae1a8f2989b623eb39a2f8abfc58b_22400387.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/558e412cfb8b7ad752cd488b01732543_28203163.png change filename to text .imagette287498661763653589/ imagette287498661763653589/1763653285_3041593_1395390617_ba4ad8812087a88717bd7e11ee4e5555_rle_crop_4040113829_0.png.png imagette287498661763653589/1763653266_3040132_1395391047_d273e225a21b3b7e28a0c182caf445fd_rle_crop_4040113374_0.png.png imagette287498661763653589/1763653465_3045026_1395391337_f6f73d472f8ebf908aea1742411f5274_rle_crop_4040116575_0.png.png imagette287498661763653589/1763653266_3040132_1395390729_181fdac678b3f0398717eae4ed7e2072_rle_crop_4040113426_0.png.png imagette287498691763653589/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/0963e292d0bdb79e290c3758afbfb895_17358231.png imagette287498661763653589 28749869 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749869 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287498691763653589 28749870 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749870 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395391043: '1763653027_3032472_1395390586_0cee70d536cd1d1c44dc564946a781d7_rle_crop_4040107438_0.png', 1395391359: '1763653266_3040132_1395391034_46b1513123a6159a4c4f0759acdf3d49_rle_crop_4040113407_0.png', 1395391782: '1763653465_3045026_1395391337_f6f73d472f8ebf908aea1742411f5274_rle_crop_4040116581_0.png', 1395391784: '1763653465_3045026_1395391205_ec285fc0789a3c87bf2e73d151125ae4_rle_crop_4040116631_0.png', 1395391929: '1763653526_3046219_1395391158_9eb4a968b185be350cc0aad0dc94b2d6_rle_crop_4040118930_0.png', 1395391930: '1763653526_3046219_1395391155_33ea08b70a7e141beda97a42112abd94_rle_crop_4040118939_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/b8c3c6975ea0865e75cf4c2f94f6a928_7659666.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/6fb7315b20f0d52e7ddd9ac2dd114e20_83325409.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/9cf07e37abf7bd1ccc2a0dd6441b9f5f_14064538.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/137ac39d0448508276941666316cfe2b_59796651.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/00e1d63505e60b5340c5034f33622a3d_61504256.png change filename to text .imagette287498701763653589/ imagette287498701763653589/1763653266_3040132_1395391034_46b1513123a6159a4c4f0759acdf3d49_rle_crop_4040113407_0.png.png imagette287498701763653589/1763653465_3045026_1395391205_ec285fc0789a3c87bf2e73d151125ae4_rle_crop_4040116631_0.png.png imagette287498701763653589/1763653526_3046219_1395391158_9eb4a968b185be350cc0aad0dc94b2d6_rle_crop_4040118930_0.png.png imagette287498701763653589/1763653027_3032472_1395390586_0cee70d536cd1d1c44dc564946a781d7_rle_crop_4040107438_0.png.png imagette287498701763653589/1763653526_3046219_1395391155_33ea08b70a7e141beda97a42112abd94_rle_crop_4040118939_0.png.png imagette287498701763653589/1763653465_3045026_1395391337_f6f73d472f8ebf908aea1742411f5274_rle_crop_4040116581_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/174b07aa1067e218e06474390f806f3d_9518365.png imagette287498701763653589 28749871 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749871 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395391087: '1763653047_3033088_1395390641_f73bcd159d9998060a8a5a3da03dccbe_rle_crop_4040110124_0.png', 1395391088: '1763653047_3033088_1395390563_8c888bc44b40859f2ee6e5c92497976c_rle_crop_4040110129_0.png', 1395391820: '1763653465_3045026_1395391337_f6f73d472f8ebf908aea1742411f5274_rle_crop_4040116579_0.png', 1395391822: '1763653465_3045026_1395391305_2908cbafedb117ae41fb5cb08e45d023_rle_crop_4040116590_0.png', 1395391824: '1763653465_3045026_1395391270_2c33eb1bdfbbaaa5aa6618db0c79b8e1_rle_crop_4040116605_0.png', 1395391826: '1763653465_3045026_1395391270_2c33eb1bdfbbaaa5aa6618db0c79b8e1_rle_crop_4040116606_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/5060cb204ff5ef1844f8058578c05104_60146546.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/5060cb204ff5ef1844f8058578c05104_39169630.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/997b5d8ca2284922bc064bd9b1fc6f4d_78092658.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/714502f81a2efce3a2e2eecff38091ba_30922821.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/2aee309dab07709c45d16697abbc4b6e_61397051.png change filename to text .imagette287498711763653590/ imagette287498711763653590/1763653465_3045026_1395391305_2908cbafedb117ae41fb5cb08e45d023_rle_crop_4040116590_0.png.png imagette287498711763653590/1763653465_3045026_1395391337_f6f73d472f8ebf908aea1742411f5274_rle_crop_4040116579_0.png.png imagette287498711763653590/1763653047_3033088_1395390641_f73bcd159d9998060a8a5a3da03dccbe_rle_crop_4040110124_0.png.png imagette287498711763653590/1763653465_3045026_1395391270_2c33eb1bdfbbaaa5aa6618db0c79b8e1_rle_crop_4040116605_0.png.png imagette287498711763653590/1763653465_3045026_1395391270_2c33eb1bdfbbaaa5aa6618db0c79b8e1_rle_crop_4040116606_0.png.png imagette287498711763653590/1763653047_3033088_1395390563_8c888bc44b40859f2ee6e5c92497976c_rle_crop_4040110129_0.png.png imagette287498721763653591/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/37bf2583aae11acac8dd52d761a28041_4032545.png imagette287498711763653590 28749872 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749872 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287498721763653591 28749874 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749874 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395391451: '1763653285_3041593_1395390630_7076bda83804e03a3f660ac624143dc8_rle_crop_4040113739_0.png', 1395391452: '1763653285_3041593_1395390550_527836025eb13a5a04e4d85784d6fd28_rle_crop_4040113901_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/8fb3eeb46ec0104363760d81ec7b3fd9_88127272.png change filename to text .imagette287498741763653591/ imagette287498741763653591/1763653285_3041593_1395390550_527836025eb13a5a04e4d85784d6fd28_rle_crop_4040113901_0.png.png imagette287498741763653591/1763653285_3041593_1395390630_7076bda83804e03a3f660ac624143dc8_rle_crop_4040113739_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/8fb3eeb46ec0104363760d81ec7b3fd9_99618943.png imagette287498741763653591 28749876 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749876 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395391454: '1763653285_3041593_1395390630_7076bda83804e03a3f660ac624143dc8_rle_crop_4040113754_0.png', 1395391455: '1763653285_3041593_1395390550_527836025eb13a5a04e4d85784d6fd28_rle_crop_4040113916_0.png', 1395391838: '1763653465_3045026_1395391240_d648682dd45bda363ccc5c62adf01257_rle_crop_4040116614_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/a8b440332094997f9982b236c97b08c9_95614511.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/a8b440332094997f9982b236c97b08c9_85149088.png change filename to text .imagette287498761763653591/ imagette287498761763653591/1763653285_3041593_1395390630_7076bda83804e03a3f660ac624143dc8_rle_crop_4040113754_0.png.png imagette287498761763653591/1763653285_3041593_1395390550_527836025eb13a5a04e4d85784d6fd28_rle_crop_4040113916_0.png.png imagette287498761763653591/1763653465_3045026_1395391240_d648682dd45bda363ccc5c62adf01257_rle_crop_4040116614_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/20c834a05b98bea7a26ee518c268d436_34993580.png imagette287498761763653591 28749865 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749865 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395391075: '1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110154_0.png', 1395391076: '1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110155_0.png', 1395391077: '1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110159_0.png', 1395391078: '1763653047_3033088_1395390503_b3b14789b201d1670c499143225c84f4_rle_crop_4040110177_0.png', 1395391405: '1763653285_3041593_1395390620_33cd902b695d597119f71ede2e53fae4_rle_crop_4040113814_0.png', 1395391406: '1763653285_3041593_1395390541_9b03bed146484a2eaed6dfe49b26d663_rle_crop_4040113986_0.png', 1395391877: '1763653507_3045740_1395391358_a9e85e744f25a651d353fa6dbd412245_rle_crop_4040118241_0.png', 1395391927: '1763653526_3046219_1395391158_9eb4a968b185be350cc0aad0dc94b2d6_rle_crop_4040118931_0.png', 1395391928: '1763653526_3046219_1395391155_33ea08b70a7e141beda97a42112abd94_rle_crop_4040118944_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/5d95cc09950db4689fad6d5e51559eb9_37001575.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/2820c79d2efb5a54eba6792af3f644c1_47928100.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/9d801ea4dedfd08d39b4e92b6c2b7ff6_32590841.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/384ad6512e6af83353d31a88156cbb0a_70703147.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/4873437c40b4821be3c7eb7ae70dd70d_29424532.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/4873437c40b4821be3c7eb7ae70dd70d_99434347.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/74e1c451d4c74197fd905e8383c11dd9_27695701.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/1bbb97d6fe2cd044645a1e52800e0d34_64347076.png change filename to text .imagette287498651763653591/ imagette287498651763653591/1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110159_0.png.png imagette287498651763653591/1763653526_3046219_1395391158_9eb4a968b185be350cc0aad0dc94b2d6_rle_crop_4040118931_0.png.png imagette287498651763653591/1763653285_3041593_1395390620_33cd902b695d597119f71ede2e53fae4_rle_crop_4040113814_0.png.png imagette287498651763653591/1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110154_0.png.png imagette287498651763653591/1763653526_3046219_1395391155_33ea08b70a7e141beda97a42112abd94_rle_crop_4040118944_0.png.png imagette287498651763653591/1763653047_3033088_1395390503_b3b14789b201d1670c499143225c84f4_rle_crop_4040110177_0.png.png imagette287498651763653591/1763653507_3045740_1395391358_a9e85e744f25a651d353fa6dbd412245_rle_crop_4040118241_0.png.png imagette287498651763653591/1763653285_3041593_1395390541_9b03bed146484a2eaed6dfe49b26d663_rle_crop_4040113986_0.png.png imagette287498651763653591/1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110155_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/d1bbbaf6eba366cc3681c80b3f07ddd0_78727634.png imagette287498651763653591 28749873 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749873 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395391084: '1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110153_0.png', 1395391368: '1763653266_3040132_1395391034_46b1513123a6159a4c4f0759acdf3d49_rle_crop_4040113410_0.png', 1395391438: '1763653285_3041593_1395390633_3dd18b945f9deae55d823c8ef304a962_rle_crop_4040113732_0.png', 1395391439: '1763653285_3041593_1395390633_3dd18b945f9deae55d823c8ef304a962_rle_crop_4040113729_0.png', 1395391440: '1763653285_3041593_1395390630_7076bda83804e03a3f660ac624143dc8_rle_crop_4040113744_0.png', 1395391441: '1763653285_3041593_1395390620_33cd902b695d597119f71ede2e53fae4_rle_crop_4040113820_0.png', 1395391442: '1763653285_3041593_1395390620_33cd902b695d597119f71ede2e53fae4_rle_crop_4040113808_0.png', 1395391443: '1763653285_3041593_1395390617_ba4ad8812087a88717bd7e11ee4e5555_rle_crop_4040113833_0.png', 1395391444: '1763653285_3041593_1395390617_ba4ad8812087a88717bd7e11ee4e5555_rle_crop_4040113834_0.png', 1395391445: '1763653285_3041593_1395390553_951c28819729561d852690fbb1e70b25_rle_crop_4040113875_0.png', 1395391446: '1763653285_3041593_1395390553_951c28819729561d852690fbb1e70b25_rle_crop_4040113872_0.png', 1395391447: '1763653285_3041593_1395390550_527836025eb13a5a04e4d85784d6fd28_rle_crop_4040113906_0.png', 1395391448: '1763653285_3041593_1395390541_9b03bed146484a2eaed6dfe49b26d663_rle_crop_4040113992_0.png', 1395391449: '1763653285_3041593_1395390541_9b03bed146484a2eaed6dfe49b26d663_rle_crop_4040113980_0.png', 1395391878: '1763653507_3045740_1395391367_19ae17240e6d5342ef7d87da1a941b4e_rle_crop_4040118228_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/8aad487eb38219e940a201e46f743b44_79682147.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/93e9ee5f45d9513fb5a0d41c5e4248c5_23935021.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/b4cd7f4d3898989501f6d582e765d012_93540524.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/09980e721ea6b0241f0ef1b1c2e5b0cd_19521378.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/7a8af741aa82f5a0e74dc986c61df474_93356336.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/21759418f122bb1c38968e94d75910be_51926082.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/f38d431cd0e1c09dfc54cd42ff8573ba_46027954.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/69bee769ccc97cfb0c50d4451ec3e1b3_69086726.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/8cd4dd6400064983ed6910e811f6a0a6_97820919.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/b4cd7f4d3898989501f6d582e765d012_65471156.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/09980e721ea6b0241f0ef1b1c2e5b0cd_86135211.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/7a8af741aa82f5a0e74dc986c61df474_63109684.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/21759418f122bb1c38968e94d75910be_88403398.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/f38d431cd0e1c09dfc54cd42ff8573ba_39299224.png change filename to text .imagette287498731763653592/ imagette287498731763653592/1763653285_3041593_1395390630_7076bda83804e03a3f660ac624143dc8_rle_crop_4040113744_0.png.png imagette287498731763653592/1763653507_3045740_1395391367_19ae17240e6d5342ef7d87da1a941b4e_rle_crop_4040118228_0.png.png imagette287498731763653592/1763653285_3041593_1395390553_951c28819729561d852690fbb1e70b25_rle_crop_4040113872_0.png.png imagette287498731763653592/1763653285_3041593_1395390620_33cd902b695d597119f71ede2e53fae4_rle_crop_4040113808_0.png.png imagette287498731763653592/1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110153_0.png.png imagette287498731763653592/1763653285_3041593_1395390553_951c28819729561d852690fbb1e70b25_rle_crop_4040113875_0.png.png imagette287498731763653592/1763653285_3041593_1395390541_9b03bed146484a2eaed6dfe49b26d663_rle_crop_4040113992_0.png.png imagette287498731763653592/1763653285_3041593_1395390550_527836025eb13a5a04e4d85784d6fd28_rle_crop_4040113906_0.png.png imagette287498731763653592/1763653285_3041593_1395390620_33cd902b695d597119f71ede2e53fae4_rle_crop_4040113820_0.png.png imagette287498731763653592/1763653266_3040132_1395391034_46b1513123a6159a4c4f0759acdf3d49_rle_crop_4040113410_0.png.png imagette287498731763653592/1763653285_3041593_1395390617_ba4ad8812087a88717bd7e11ee4e5555_rle_crop_4040113833_0.png.png imagette287498731763653592/1763653285_3041593_1395390633_3dd18b945f9deae55d823c8ef304a962_rle_crop_4040113729_0.png.png imagette287498731763653592/1763653285_3041593_1395390541_9b03bed146484a2eaed6dfe49b26d663_rle_crop_4040113980_0.png.png imagette287498731763653592/1763653285_3041593_1395390617_ba4ad8812087a88717bd7e11ee4e5555_rle_crop_4040113834_0.png.png imagette287498731763653592/1763653285_3041593_1395390633_3dd18b945f9deae55d823c8ef304a962_rle_crop_4040113732_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/897b743b77d5937ecdfe80739991d350_58150829.png imagette287498731763653592 28749875 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749875 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395391081: '1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110149_0.png', 1395391082: '1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110156_0.png', 1395391083: '1763653047_3033088_1395390503_b3b14789b201d1670c499143225c84f4_rle_crop_4040110166_0.png', 1395391361: '1763653266_3040132_1395391036_0768be7b41950ec3ccecc5f478fffb2c_rle_crop_4040113393_0.png', 1395391362: '1763653266_3040132_1395390723_661666f9c9e7cddfe7bc89eba2814225_rle_crop_4040113454_0.png', 1395391407: '1763653285_3041593_1395390630_7076bda83804e03a3f660ac624143dc8_rle_crop_4040113743_0.png', 1395391408: '1763653285_3041593_1395390621_a21bfca45353498be54e8ce7c137758b_rle_crop_4040113760_0.png', 1395391409: '1763653285_3041593_1395390621_a21bfca45353498be54e8ce7c137758b_rle_crop_4040113757_0.png', 1395391411: '1763653285_3041593_1395390621_a21bfca45353498be54e8ce7c137758b_rle_crop_4040113758_0.png', 1395391412: '1763653285_3041593_1395390617_ba4ad8812087a88717bd7e11ee4e5555_rle_crop_4040113830_0.png', 1395391413: '1763653285_3041593_1395390550_527836025eb13a5a04e4d85784d6fd28_rle_crop_4040113905_0.png', 1395391414: '1763653285_3041593_1395390545_e64dcab3a247e9efc551da2a6de0e5ec_rle_crop_4040113964_0.png', 1395391415: '1763653285_3041593_1395390545_e64dcab3a247e9efc551da2a6de0e5ec_rle_crop_4040113961_0.png', 1395391416: '1763653285_3041593_1395390545_e64dcab3a247e9efc551da2a6de0e5ec_rle_crop_4040113962_0.png', 1395391795: '1763653465_3045026_1395391305_2908cbafedb117ae41fb5cb08e45d023_rle_crop_4040116589_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/767fce4cf06a08bfb5fe6e0da50e1012_63340635.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/7f3aaaf3050e075de7d084d08a3039ca_47210458.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/bdf627f801cc32c0d346b132c15e1a5e_98642547.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/1f773b1a06148a7421fe71ff7eb52ec3_84792062.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/1f773b1a06148a7421fe71ff7eb52ec3_60063858.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/612b39c4bc2f2a4a7eb75f81dc6883ff_53318847.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/3efdce7f3a6dbee3c991b16e45c704ea_73261783.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/7ffe674111a954bf80d56609034bf9ec_54451382.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/3d703c6e3b8e94f18079ac83324b88ff_17615601.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/166b2b2f9586b9d1564c10d0e9391f9b_94816581.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/612b39c4bc2f2a4a7eb75f81dc6883ff_73463341.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/3efdce7f3a6dbee3c991b16e45c704ea_67724303.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/7ffe674111a954bf80d56609034bf9ec_63116172.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/3d703c6e3b8e94f18079ac83324b88ff_7796548.png change filename to text .imagette287498751763653593/ imagette287498751763653593/1763653285_3041593_1395390621_a21bfca45353498be54e8ce7c137758b_rle_crop_4040113760_0.png.png imagette287498751763653593/1763653285_3041593_1395390621_a21bfca45353498be54e8ce7c137758b_rle_crop_4040113758_0.png.png imagette287498751763653593/1763653285_3041593_1395390621_a21bfca45353498be54e8ce7c137758b_rle_crop_4040113757_0.png.png imagette287498751763653593/1763653285_3041593_1395390630_7076bda83804e03a3f660ac624143dc8_rle_crop_4040113743_0.png.png imagette287498751763653593/1763653465_3045026_1395391305_2908cbafedb117ae41fb5cb08e45d023_rle_crop_4040116589_0.png.png imagette287498751763653593/1763653285_3041593_1395390545_e64dcab3a247e9efc551da2a6de0e5ec_rle_crop_4040113964_0.png.png imagette287498751763653593/1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110156_0.png.png imagette287498751763653593/1763653047_3033088_1395390509_e37cb10f1780e877a2c12b1c5ce1b7d6_rle_crop_4040110149_0.png.png imagette287498751763653593/1763653285_3041593_1395390550_527836025eb13a5a04e4d85784d6fd28_rle_crop_4040113905_0.png.png imagette287498751763653593/1763653285_3041593_1395390545_e64dcab3a247e9efc551da2a6de0e5ec_rle_crop_4040113961_0.png.png imagette287498751763653593/1763653047_3033088_1395390503_b3b14789b201d1670c499143225c84f4_rle_crop_4040110166_0.png.png imagette287498751763653593/1763653285_3041593_1395390617_ba4ad8812087a88717bd7e11ee4e5555_rle_crop_4040113830_0.png.png imagette287498751763653593/1763653266_3040132_1395391036_0768be7b41950ec3ccecc5f478fffb2c_rle_crop_4040113393_0.png.png imagette287498751763653593/1763653266_3040132_1395390723_661666f9c9e7cddfe7bc89eba2814225_rle_crop_4040113454_0.png.png imagette287498751763653593/1763653285_3041593_1395390545_e64dcab3a247e9efc551da2a6de0e5ec_rle_crop_4040113962_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/4a559d991ed078a02775fc137505b955_75288098.png imagette287498751763653593 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28749853 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28749878,28749879,28749880,28749881,28749882,28749883,28749884,28749885,28749886,28749887,28749888,28749889?tags=Teint_Dans_La_Masse,cartonnette,papier,environnement,flou,autre_refus,plastique,mal_croppe,Carton_brun,kraft,Carton_gris,metal your option no_mail is active, we will not send the real mail to your client args[1395391873] : ('0.05009990285903928',) no score found for photo 1395391873 We are sending mail with results at report@fotonower.com args[1395391834] : ('0.05009990285903928',) no score found for photo 1395391834 We are sending mail with results at report@fotonower.com args[1395391793] : ('0.05009990285903928',) no score found for photo 1395391793 We are sending mail with results at report@fotonower.com args[1395391754] : ('0.05009990285903928',) no score found for photo 1395391754 We are sending mail with results at report@fotonower.com args[1395391665] : ('0.05009990285903928',) no score found for photo 1395391665 We are sending mail with results at report@fotonower.com args[1395391604] : ('0.05009990285903928',) no score found for photo 1395391604 We are sending mail with results at report@fotonower.com args[1395391602] : ('0.05009990285903928',) no score found for photo 1395391602 We are sending mail with results at report@fotonower.com args[1395391596] : ('0.05009990285903928',) no score found for photo 1395391596 We are sending mail with results at report@fotonower.com args[1395391572] : ('0.05009990285903928',) no score found for photo 1395391572 We are sending mail with results at report@fotonower.com args[1395391567] : ('0.05009990285903928',) no score found for photo 1395391567 We are sending mail with results at report@fotonower.com args[1395391558] : ('0.05009990285903928',) no score found for photo 1395391558 We are sending mail with results at report@fotonower.com refus_total : 0.05009990285903928 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749853 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_P28749853_20-11-2025_16_46_29.pdf results_Auto_P28749853_20-11-2025_16_46_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28749853_20-11-2025_16_46_29.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','28749853','results_Auto_P28749853_20-11-2025_16_46_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28749853_20-11-2025_16_46_29.pdf','pdf','','0.23','0.05009990285903928') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28749853]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558] map_info['map_portfolio_photo'] : {28749853: [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558, 1395391537, 1395391534, 1395391531, 1395391511, 1395391510, 1395391500, 1395391495, 1395391466, 1395391456, 1395391375, 1395391370, 1395391367, 1395391358, 1395391341, 1395391337, 1395391305, 1395391270, 1395391240, 1395391205, 1395391161, 1395391158, 1395391155, 1395391153, 1395391151, 1395391100, 1395391098, 1395391094, 1395391092, 1395391090, 1395391086, 1395391064, 1395391062, 1395391059, 1395391055, 1395391048, 1395391047, 1395391038, 1395391036, 1395391034, 1395391015, 1395391013, 1395390999, 1395390732, 1395390729, 1395390725, 1395390723, 1395390710, 1395390653, 1395390650, 1395390647, 1395390641, 1395390637, 1395390633, 1395390630, 1395390621, 1395390620, 1395390617, 1395390614, 1395390609, 1395390586, 1395390563, 1395390558, 1395390553, 1395390550, 1395390545, 1395390541, 1395390520, 1395390509, 1395390503, 1395390495]} final : False mtd_id 4302 list_pids : [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558] 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, '4085689') ('4302', '28749853', '1395391873', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391834', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391793', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391754', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391665', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391604', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391602', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391596', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391572', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391567', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391558', None, None, None, None, None, '4085689') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '28749853', '1395391873', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391834', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391793', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391754', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391665', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391604', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391602', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391596', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391572', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391567', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391558', None, None, None, None, None, '4085689')] time used for this insertion : 0.013686180114746094 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.488400220870972 time spend to save output : 0.01395559310913086 total time spend for step 4 : 6.5023558139801025 step5:split_time_score Thu Nov 20 16:46:35 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 : ['28749853'] 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 : [('28749853',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28749853) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395391834: {'path': 'temp/1763653589_66000_1395391834_24a5b640a9161280bd44d25d2a0f09e6.jpg', 'extension': 'jpg'}, 1395391873: {'path': 'temp/1763653589_66000_1395391873_f16ed1095466ab68895f77b68f4a814d.jpg', 'extension': 'jpg'}, 1395391665: {'path': 'temp/1763653589_66000_1395391665_7f9c21b99572e6c4f330f8a10fce3868.jpg', 'extension': 'jpg'}, 1395391754: {'path': 'temp/1763653589_66000_1395391754_b1ce70c7cb4c86509ebba9cb89da3b0e.jpg', 'extension': 'jpg'}, 1395391793: {'path': 'temp/1763653589_66000_1395391793_bc4a95e003a7051bf37197e4e5b9df62.jpg', 'extension': 'jpg'}, 1395391596: {'path': 'temp/1763653589_66000_1395391596_d53784a52bb0c9d612fbbcf5d21386da.jpg', 'extension': 'jpg'}, 1395391602: {'path': 'temp/1763653589_66000_1395391602_e2056ec20ddac91910a9c75fd20461e2.jpg', 'extension': 'jpg'}, 1395391604: {'path': 'temp/1763653589_66000_1395391604_14ff54e255959d7fa31dce0065c88f5f.jpg', 'extension': 'jpg'}, 1395391558: {'path': 'temp/1763653589_66000_1395391558_1b9db5a7a146fe440d79999bed6743b1.jpg', 'extension': 'jpg'}, 1395391567: {'path': 'temp/1763653589_66000_1395391567_d9cde97e1491a0ade525f144e943737c.jpg', 'extension': 'jpg'}, 1395391572: {'path': 'temp/1763653589_66000_1395391572_66d3fa5edac87f74ff0afc46335d578d.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 = 28749853; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28749853 group by h (('16', 81),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28749853 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 (28749853) 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 (28749853) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20112025 28749853 Nombre de photos uploadées : 81 / 23040 (0%) 20112025 28749853 Nombre de photos taguées (types de déchets): 0 / 81 (0%) 20112025 28749853 Nombre de photos taguées (volume) : 0 / 81 (0%) [{'photo_id': 1395390520, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/3dbc809216f7c306562c8cae27249955.jpg', 'username': None, 'uploaded_at': 1763652673, 'text': 'image_20112025_16_30_03_10145.jpg'}, {'photo_id': 1395390509, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/e37cb10f1780e877a2c12b1c5ce1b7d6.jpg', 'username': None, 'uploaded_at': 1763652673, 'text': 'image_20112025_16_30_13_10140.jpg'}, {'photo_id': 1395390503, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/b3b14789b201d1670c499143225c84f4.jpg', 'username': None, 'uploaded_at': 1763652673, 'text': 'image_20112025_16_30_23_10136.jpg'}, {'photo_id': 1395390495, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/1d4212c8736a4e96ea7f739799a48814.jpg', 'username': None, 'uploaded_at': 1763652673, 'text': 'image_20112025_16_30_34_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.0967254638671875e-05 elapsed_time : order_list_meta_photo_and_scores 1.9073486328125e-05 ????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004004478454589844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28749853, '2025-11-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-20' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2614335,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2069687843322754 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= 2614335 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28729285, 'dashboard_result_id': 17550301, '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_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28729878, 'dashboard_result_id': 17550302, '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_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28730454, 'dashboard_result_id': 17550303, '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_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28730956, 'dashboard_result_id': 17550304, '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_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28732283, 'dashboard_result_id': 17550305, '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_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28732606, 'dashboard_result_id': 17550306, '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_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28732937, 'dashboard_result_id': 17550307, '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_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28733416, 'dashboard_result_id': 17550308, '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_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28733691, 'dashboard_result_id': 17550309, '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_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28734257, 'dashboard_result_id': 17550310, '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_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28734699, 'dashboard_result_id': 17550311, '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_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28735407, 'dashboard_result_id': 17550312, '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_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28735955, 'dashboard_result_id': 17550313, '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_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28736530, 'dashboard_result_id': 17550314, '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_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28736964, 'dashboard_result_id': 17550315, '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_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28740327, 'dashboard_result_id': 17550316, '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_P28740327_20-11-2025_11_06_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740607, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28740329, 'dashboard_result_id': 17550317, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740580, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28740332, 'dashboard_result_id': 17550318, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740556, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28740348, 'dashboard_result_id': 17550319, '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_P28740348_20-11-2025_11_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740517, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28740352, 'dashboard_result_id': 17550320, '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_P28740352_20-11-2025_11_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740459, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28740373, 'dashboard_result_id': 17550321, '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_P28740373_20-11-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28740424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740435, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28740377, 'dashboard_result_id': 17550322, '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_P28740377_20-11-2025_11_02_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740411, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28743048, 'dashboard_result_id': 17550323, '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_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28743363, 'dashboard_result_id': 17550324, '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_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28743751, 'dashboard_result_id': 17550325, '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_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28744153, 'dashboard_result_id': 17550326, '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_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28744884, 'dashboard_result_id': 17550327, '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_P28744884_20-11-2025_14_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28744889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744893, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744900, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28745500, 'dashboard_result_id': 17550328, '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_P28745500_20-11-2025_15_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28745556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28745557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28745558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28745559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28745560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28745561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28745562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28745563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28745564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28745565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28745566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28745567, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28746095, 'dashboard_result_id': 17550329, '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_P28746095_20-11-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28746179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746180, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28746646, 'dashboard_result_id': 17550331, '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_P28746646_20-11-2025_15_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28746689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746701, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28747374, 'dashboard_result_id': 17550333, '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_P28747374_20-11-2025_15_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28747393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28747394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28747395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28747396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28747397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28747398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28747399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28747401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28747402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28747403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28747404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28747405, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28747973, 'dashboard_result_id': 17550334, '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_P28747973_20-11-2025_16_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748042, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28748629, 'dashboard_result_id': 17550336, '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_P28748629_20-11-2025_16_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748710, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28749232, 'dashboard_result_id': 17550337, '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_P28749232_20-11-2025_16_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749248, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2625190, 'mtr_portfolio_id': 28749853, 'dashboard_result_id': 17550338, '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_P28749853_20-11-2025_16_42_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749876, '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 = 28729285 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': 4083488, 'mtr_portfolio_id': 28729285, 'created_at': datetime.datetime(2025, 11, 20, 6, 8, 58), 'result': '0.06316202260982903', 'result_long': None, 'result_double': None}] Qualite : 0.06316202260982903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28729285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729285_20-11-2025_06_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28729285 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_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, 'pht': 3726}}" where mtr_portfolio_id = 28729285 and dashboard_run_id = 2625190 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`=28729285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550301, 0.06316202260982903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, '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 = 28729878 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': 4083489, 'mtr_portfolio_id': 28729878, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 33), 'result': '0.046446620973363016', 'result_long': None, 'result_double': None}] Qualite : 0.046446620973363016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28729878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729878_20-11-2025_06_09_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28729878 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_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, 'pht': 3726}}" where mtr_portfolio_id = 28729878 and dashboard_run_id = 2625190 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`=28729878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550302, 0.046446620973363016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, '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 = 28730454 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': 4083490, 'mtr_portfolio_id': 28730454, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 29), 'result': '0.06219491235228678', 'result_long': None, 'result_double': None}] Qualite : 0.06219491235228678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28730454 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730454_20-11-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28730454 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_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, 'pht': 3726}}" where mtr_portfolio_id = 28730454 and dashboard_run_id = 2625190 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`=28730454 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550303, 0.06219491235228678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, '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 = 28730956 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': 4083491, 'mtr_portfolio_id': 28730956, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 59), 'result': '0.028716250443948738', 'result_long': None, 'result_double': None}] Qualite : 0.028716250443948738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28730956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730956_20-11-2025_06_10_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28730956 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_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, 'pht': 3726}}" where mtr_portfolio_id = 28730956 and dashboard_run_id = 2625190 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`=28730956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550304, 0.028716250443948738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, '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 = 28732283 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': 4083492, 'mtr_portfolio_id': 28732283, 'created_at': datetime.datetime(2025, 11, 20, 6, 10, 29), 'result': '0.0637085330401548', 'result_long': None, 'result_double': None}] Qualite : 0.0637085330401548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732283_20-11-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732283 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_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, 'pht': 3726}}" where mtr_portfolio_id = 28732283 and dashboard_run_id = 2625190 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`=28732283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550305, 0.0637085330401548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, '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 = 28732606 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': 4083493, 'mtr_portfolio_id': 28732606, 'created_at': datetime.datetime(2025, 11, 20, 6, 10, 58), 'result': '0.0530839223813962', 'result_long': None, 'result_double': None}] Qualite : 0.0530839223813962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732606_20-11-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732606 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_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, 'pht': 3726}}" where mtr_portfolio_id = 28732606 and dashboard_run_id = 2625190 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`=28732606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550306, 0.0530839223813962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, '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 = 28732937 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': 4083494, 'mtr_portfolio_id': 28732937, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 7), 'result': '0.04830138493187099', 'result_long': None, 'result_double': None}] Qualite : 0.04830138493187099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732937_20-11-2025_06_11_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732937 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_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, 'pht': 3726}}" where mtr_portfolio_id = 28732937 and dashboard_run_id = 2625190 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`=28732937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550307, 0.04830138493187099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, '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 = 28733416 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': 4083495, 'mtr_portfolio_id': 28733416, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 28), 'result': '0.044310430713162936', 'result_long': None, 'result_double': None}] Qualite : 0.044310430713162936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28733416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733416_20-11-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28733416 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_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, 'pht': 3726}}" where mtr_portfolio_id = 28733416 and dashboard_run_id = 2625190 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`=28733416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550308, 0.044310430713162936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, '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 = 28733691 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': 4083496, 'mtr_portfolio_id': 28733691, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 28), 'result': '0.06394866085328949', 'result_long': None, 'result_double': None}] Qualite : 0.06394866085328949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28733691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733691_20-11-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28733691 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_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, 'pht': 3726}}" where mtr_portfolio_id = 28733691 and dashboard_run_id = 2625190 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`=28733691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550309, 0.06394866085328949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, '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 = 28734257 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': 4083497, 'mtr_portfolio_id': 28734257, 'created_at': datetime.datetime(2025, 11, 20, 6, 12), 'result': '0.06501693880847081', 'result_long': None, 'result_double': None}] Qualite : 0.06501693880847081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28734257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734257_20-11-2025_06_12_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28734257 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_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, 'pht': 3726}}" where mtr_portfolio_id = 28734257 and dashboard_run_id = 2625190 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`=28734257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550310, 0.06501693880847081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, '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 = 28734699 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': 4083498, 'mtr_portfolio_id': 28734699, 'created_at': datetime.datetime(2025, 11, 20, 6, 12, 30), 'result': '0.034492618132727776', 'result_long': None, 'result_double': None}] Qualite : 0.034492618132727776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28734699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734699_20-11-2025_06_12_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28734699 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_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, 'pht': 3726}}" where mtr_portfolio_id = 28734699 and dashboard_run_id = 2625190 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`=28734699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550311, 0.034492618132727776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, '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 = 28735407 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': 4083499, 'mtr_portfolio_id': 28735407, 'created_at': datetime.datetime(2025, 11, 20, 6, 12, 59), 'result': '0.051680025933597946', 'result_long': None, 'result_double': None}] Qualite : 0.051680025933597946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28735407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735407_20-11-2025_06_13_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28735407 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_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, 'pht': 3726}}" where mtr_portfolio_id = 28735407 and dashboard_run_id = 2625190 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`=28735407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550312, 0.051680025933597946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, '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 = 28735955 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': 4083500, 'mtr_portfolio_id': 28735955, 'created_at': datetime.datetime(2025, 11, 20, 6, 13, 31), 'result': '0.0421090861949604', 'result_long': None, 'result_double': None}] Qualite : 0.0421090861949604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28735955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735955_20-11-2025_06_13_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28735955 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_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, 'pht': 3726}}" where mtr_portfolio_id = 28735955 and dashboard_run_id = 2625190 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`=28735955 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550313, 0.0421090861949604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, '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 = 28736530 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': 4083501, 'mtr_portfolio_id': 28736530, 'created_at': datetime.datetime(2025, 11, 20, 6, 13, 30), 'result': '0.021800452178801957', 'result_long': None, 'result_double': None}] Qualite : 0.021800452178801957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28736530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736530_20-11-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28736530 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_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, 'pht': 3726}}" where mtr_portfolio_id = 28736530 and dashboard_run_id = 2625190 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`=28736530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550314, 0.021800452178801957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, '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 = 28736964 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': 4083502, 'mtr_portfolio_id': 28736964, 'created_at': datetime.datetime(2025, 11, 20, 6, 14), 'result': '0.033335769011512154', 'result_long': None, 'result_double': None}] Qualite : 0.033335769011512154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28736964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736964_20-11-2025_06_14_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28736964 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_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, 'pht': 3726}}" where mtr_portfolio_id = 28736964 and dashboard_run_id = 2625190 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`=28736964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550315, 0.033335769011512154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, '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 = 28740327 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 = 28740327 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 = 28740327 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740327 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 = 28740327 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 = 28740327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740327_20-11-2025_11_06_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740327 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_P28740327_20-11-2025_11_06_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740607, 'pht': 3726}}" where mtr_portfolio_id = 28740327 and dashboard_run_id = 2625190 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 = 28740329 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 = 28740329 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740329 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%28740329%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740329 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740580, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 28740329 and dashboard_run_id = 2625190 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 = 28740332 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 = 28740332 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740332 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%28740332%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740332 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740556, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 28740332 and dashboard_run_id = 2625190 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 = 28740348 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 = 28740348 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 = 28740348 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740348 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 = 28740348 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 = 28740348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740348_20-11-2025_11_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740348 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_P28740348_20-11-2025_11_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740517, 'pht': 3726}}" where mtr_portfolio_id = 28740348 and dashboard_run_id = 2625190 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 = 28740352 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 = 28740352 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 = 28740352 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740352 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 = 28740352 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 = 28740352 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740352_20-11-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740352 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_P28740352_20-11-2025_11_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740459, 'pht': 3726}}" where mtr_portfolio_id = 28740352 and dashboard_run_id = 2625190 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 = 28740373 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 = 28740373 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 = 28740373 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740373 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 = 28740373 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 = 28740373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740373_20-11-2025_11_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740373 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_P28740373_20-11-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28740424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740435, 'pht': 3726}}" where mtr_portfolio_id = 28740373 and dashboard_run_id = 2625190 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 = 28740377 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 = 28740377 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 = 28740377 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740377 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 = 28740377 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 = 28740377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740377_20-11-2025_11_02_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740377 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_P28740377_20-11-2025_11_02_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740411, 'pht': 3726}}" where mtr_portfolio_id = 28740377 and dashboard_run_id = 2625190 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 = 28743048 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': 4084305, 'mtr_portfolio_id': 28743048, 'created_at': datetime.datetime(2025, 11, 20, 13, 50, 30), 'result': '0.1643000290292006', 'result_long': None, 'result_double': None}] Qualite : 0.1643000290292006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743048 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743048_20-11-2025_13_50_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743048 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_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, 'pht': 3726}}" where mtr_portfolio_id = 28743048 and dashboard_run_id = 2625190 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`=28743048 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550323, 0.1643000290292006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, '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 = 28743363 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': 4084330, 'mtr_portfolio_id': 28743363, 'created_at': datetime.datetime(2025, 11, 20, 14, 6, 31), 'result': '0.04399569440713958', 'result_long': None, 'result_double': None}] Qualite : 0.04399569440713958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743363_20-11-2025_14_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743363 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_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, 'pht': 3726}}" where mtr_portfolio_id = 28743363 and dashboard_run_id = 2625190 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`=28743363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550324, 0.04399569440713958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, '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 = 28743751 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': 4084358, 'mtr_portfolio_id': 28743751, 'created_at': datetime.datetime(2025, 11, 20, 14, 16, 58), 'result': '0.037633621081997505', 'result_long': None, 'result_double': None}] Qualite : 0.037633621081997505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743751_20-11-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743751 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_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, 'pht': 3726}}" where mtr_portfolio_id = 28743751 and dashboard_run_id = 2625190 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`=28743751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550325, 0.037633621081997505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, '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 = 28744153 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': 4084429, 'mtr_portfolio_id': 28744153, 'created_at': datetime.datetime(2025, 11, 20, 14, 32, 58), 'result': '0.025496383854784737', 'result_long': None, 'result_double': None}] Qualite : 0.025496383854784737 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28744153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28744153 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_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, 'pht': 3726}}" where mtr_portfolio_id = 28744153 and dashboard_run_id = 2625190 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`=28744153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550326, 0.025496383854784737, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, '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 = 28744884 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': 4084528, 'mtr_portfolio_id': 28744884, 'created_at': datetime.datetime(2025, 11, 20, 14, 48, 57), 'result': '0.04578872373974785', 'result_long': None, 'result_double': None}] Qualite : 0.04578872373974785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28744884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744884_20-11-2025_14_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28744884 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_P28744884_20-11-2025_14_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28744889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744893, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744900, 'pht': 3726}}" where mtr_portfolio_id = 28744884 and dashboard_run_id = 2625190 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`=28744884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550327, 0.04578872373974785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744884_20-11-2025_14_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28744889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744893, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744900, '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 = 28745500 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': 4084658, 'mtr_portfolio_id': 28745500, 'created_at': datetime.datetime(2025, 11, 20, 15, 4, 58), 'result': '0.04081979646550034', 'result_long': None, 'result_double': None}] Qualite : 0.04081979646550034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28745500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28745500_20-11-2025_15_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28745500 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_P28745500_20-11-2025_15_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28745556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28745557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28745558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28745559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28745560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28745561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28745562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28745563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28745564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28745565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28745566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28745567, 'pht': 3726}}" where mtr_portfolio_id = 28745500 and dashboard_run_id = 2625190 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`=28745500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550328, 0.04081979646550034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28745500_20-11-2025_15_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28745556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28745557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28745558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28745559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28745560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28745561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28745562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28745563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28745564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28745565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28745566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28745567, '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 = 28746095 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': 4084795, 'mtr_portfolio_id': 28746095, 'created_at': datetime.datetime(2025, 11, 20, 15, 18, 57), 'result': '0.03714125369854887', 'result_long': None, 'result_double': None}] Qualite : 0.03714125369854887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28746095 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746095_20-11-2025_15_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28746095 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_P28746095_20-11-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28746179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746180, 'pht': 3726}}" where mtr_portfolio_id = 28746095 and dashboard_run_id = 2625190 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`=28746095 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550329, 0.03714125369854887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746095_20-11-2025_15_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28746179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746180, '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 = 28746646 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': 4084899, 'mtr_portfolio_id': 28746646, 'created_at': datetime.datetime(2025, 11, 20, 15, 34, 59), 'result': '0.01885337786494722', 'result_long': None, 'result_double': None}] Qualite : 0.01885337786494722 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28746646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746646_20-11-2025_15_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28746646 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_P28746646_20-11-2025_15_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28746689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746701, 'pht': 3726}}" where mtr_portfolio_id = 28746646 and dashboard_run_id = 2625190 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`=28746646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550331, 0.01885337786494722, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746646_20-11-2025_15_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28746689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746696, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746701, '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 = 28747374 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': 4085077, 'mtr_portfolio_id': 28747374, 'created_at': datetime.datetime(2025, 11, 20, 15, 48, 57), 'result': '0.02025483686563072', 'result_long': None, 'result_double': None}] Qualite : 0.02025483686563072 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28747374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28747374_20-11-2025_15_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28747374 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_P28747374_20-11-2025_15_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28747393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28747394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28747395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28747396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28747397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28747398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28747399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28747401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28747402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28747403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28747404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28747405, 'pht': 3726}}" where mtr_portfolio_id = 28747374 and dashboard_run_id = 2625190 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`=28747374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550333, 0.02025483686563072, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28747374_20-11-2025_15_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28747393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28747394, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28747395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28747396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28747397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28747398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28747399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28747401, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28747402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28747403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28747404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28747405, '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 = 28747973 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': 4085251, 'mtr_portfolio_id': 28747973, 'created_at': datetime.datetime(2025, 11, 20, 16, 2, 58), 'result': '0.034715606381581346', 'result_long': None, 'result_double': None}] Qualite : 0.034715606381581346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28747973 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28747973_20-11-2025_16_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28747973 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_P28747973_20-11-2025_16_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748042, 'pht': 3726}}" where mtr_portfolio_id = 28747973 and dashboard_run_id = 2625190 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`=28747973 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550334, 0.034715606381581346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28747973_20-11-2025_16_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748030, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748038, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748039, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748042, '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 = 28748629 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': 4085440, 'mtr_portfolio_id': 28748629, 'created_at': datetime.datetime(2025, 11, 20, 16, 16, 29), 'result': '0.026347927494119606', 'result_long': None, 'result_double': None}] Qualite : 0.026347927494119606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28748629 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28748629_20-11-2025_16_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28748629 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_P28748629_20-11-2025_16_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748710, 'pht': 3726}}" where mtr_portfolio_id = 28748629 and dashboard_run_id = 2625190 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`=28748629 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550336, 0.026347927494119606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28748629_20-11-2025_16_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28748699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28748700, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28748701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28748702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28748703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28748704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28748705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28748706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28748707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28748708, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28748709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28748710, '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 = 28749232 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': 4085591, 'mtr_portfolio_id': 28749232, 'created_at': datetime.datetime(2025, 11, 20, 16, 34, 59), 'result': '0.0421643320812765', 'result_long': None, 'result_double': None}] Qualite : 0.0421643320812765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28749232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28749232_20-11-2025_16_31_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28749232 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_P28749232_20-11-2025_16_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749248, 'pht': 3726}}" where mtr_portfolio_id = 28749232 and dashboard_run_id = 2625190 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`=28749232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550337, 0.0421643320812765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28749232_20-11-2025_16_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749248, '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 = 28749853 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': 4085689, 'mtr_portfolio_id': 28749853, 'created_at': datetime.datetime(2025, 11, 20, 16, 46, 28), 'result': '0.05009990285903928', 'result_long': None, 'result_double': None}] Qualite : 0.05009990285903928 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28749853 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28749853_20-11-2025_16_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28749853 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_P28749853_20-11-2025_16_46_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749876, 'pht': 3726}}" where mtr_portfolio_id = 28749853 and dashboard_run_id = 2625190 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`=28749853 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17550338, 0.05009990285903928, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28749853_20-11-2025_16_46_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28749865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28749866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28749867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28749868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28749869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28749870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28749871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28749872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28749873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28749874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28749875, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28749876, '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 (28729285,28729878,28730454,28730956,28732283,28732606,28732937,28733416,28733691,28734257,28734699,28735407,28735955,28736530,28736964,28740327,28740329,28740332,28740348,28740352,28740373,28740377,28743048,28743363,28743751,28744153,28744884,28745500,28746095,28746646,28747374,28747973,28748629,28749232,28749853) result : ((1395288892,), (1395288983,), (1395289751,), (1395289782,), (1395290131,), (1395290203,), (1395290270,), (1395290334,), (1395290691,), (1395290703,), (1395290705,), (1395290709,), (1395290712,), (1395290716,), (1395290731,), (1395290732,), (1395290760,), (1395290762,), (1395290765,), (1395290769,), (1395290772,), (1395290774,), (1395290819,), (1395290854,), (1395290898,), (1395291313,), (1395291346,), (1395291664,), (1395291671,), (1395291777,), (1395291779,), (1395291781,), (1395291784,), (1395292498,), (1395292500,), (1395292501,), (1395292777,), (1395292780,), (1395292782,), (1395292797,), (1395292799,), (1395292800,), (1395292803,), (1395292806,), (1395292825,), (1395292826,), (1395292827,), (1395292830,), (1395292851,), (1395292853,), (1395292856,), (1395292860,), (1395293706,), (1395293718,), (1395293722,), (1395293857,), (1395293891,), (1395293645,), (1395293696,), (1395293699,), (1395294062,), (1395294092,), (1395294124,), (1395294155,), (1395294572,), (1395294705,), (1395294861,), (1395295001,), (1395295144,), (1395295572,), (1395295574,), (1395295575,), (1395295601,), (1395295636,), (1395296088,), (1395296144,), (1395296177,), (1395296210,), (1395296252,), (1395296660,), (1395296674,), (1395296855,), (1395296889,), (1395296901,), (1395296904,), (1395296937,), (1395296952,), (1395296970,), (1395297005,), (1395297042,), (1395297080,), (1395297120,), (1395297485,), (1395297520,), (1395297560,), (1395297595,), (1395297961,), (1395297996,), (1395298047,), (1395298081,), (1395298622,), (1395298685,), (1395298748,), (1395298814,), (1395298881,), (1395298946,), (1395299017,), (1395299127,), (1395299135,), (1395299153,), (1395299186,), (1395300313,), (1395300346,), (1395300358,), (1395300366,), (1395300674,), (1395300709,), (1395300790,), (1395300875,), (1395300967,), (1395301065,), (1395301540,), (1395301574,), (1395301767,), (1395301798,), (1395301931,), (1395301632,), (1395301665,), (1395301699,), (1395301733,), (1395302054,), (1395302086,), (1395302117,), (1395302149,), (1395302184,), (1395302356,), (1395302359,), (1395302363,), (1395302377,), (1395302642,), (1395302701,), (1395303197,), (1395303228,), (1395303262,), (1395303296,), (1395303328,), (1395303535,), (1395303566,), (1395303599,), (1395303615,), (1395303624,), (1395303639,), (1395303683,), (1395303685,), (1395303690,), (1395303691,), (1395303692,), (1395304106,), (1395304141,), (1395304175,), (1395304216,), (1395304251,), (1395304286,), (1395304326,), (1395304358,), (1395304388,), (1395304428,), (1395304467,), (1395304601,), (1395304603,), (1395304622,), (1395304638,), (1395304659,), (1395304881,), (1395304909,), (1395304939,), (1395304970,), (1395304999,), (1395305150,), (1395305181,), (1395305213,), (1395305244,), (1395305278,), (1395305522,), (1395305523,), (1395305524,), (1395305976,), (1395306070,), (1395306183,), (1395306309,), (1395306876,), (1395306877,), (1395306879,), (1395306883,), (1395306886,), (1395306941,), (1395307170,), (1395307364,), (1395307277,), (1395307342,), (1395307356,), (1395307360,), (1395307374,), (1395307375,), (1395307376,), (1395307395,), (1395307396,), (1395307397,), (1395307725,), (1395307815,), (1395307922,), (1395308259,), (1395308286,), (1395308287,), (1395308288,), (1395308378,), (1395308412,), (1395308446,), (1395308770,), (1395308782,), (1395308811,), (1395308842,), (1395308943,), (1395308944,), (1395308945,), (1395308947,), (1395308966,), (1395308967,), (1395308983,), (1395308985,), (1395308987,), (1395308999,), (1395309002,), (1395309004,), (1395309008,), (1395309011,), (1395309014,), (1395309021,), (1395309023,), (1395309025,), (1395309026,), (1395309027,), (1395309028,), (1395309031,), (1395309045,), (1395309046,), (1395309047,), (1395309074,), (1395309078,), (1395309371,), (1395313362,), (1395313364,), (1395313365,), (1395313384,), (1395313386,), (1395313388,), (1395313391,), (1395313443,), (1395313446,), (1395313448,), (1395313450,), (1395313452,), (1395313475,), (1395313476,), (1395313478,), (1395313482,), (1395313486,), (1395313490,), (1395313497,), (1395313500,), (1395313503,), (1395313505,), (1395313607,), (1395313610,), (1395313611,), (1395313612,), (1395313631,), (1395313633,), (1395313635,), (1395313638,), (1395313642,), (1395313669,), (1395313671,), (1395313673,), (1395313675,), (1395313697,), (1395313699,), (1395313734,), (1395313739,), (1395313742,), (1395313756,), (1395313777,), (1395313779,), (1395313781,), (1395313783,), (1395313804,), (1395313805,), (1395313806,), (1395313809,), (1395313811,), (1395313828,), (1395313830,), (1395313832,), (1395313871,), (1395313901,), (1395313932,), (1395313961,), (1395313856,), (1395313857,), (1395313860,), (1395313865,), (1395313869,), (1395314100,), (1395314130,), (1395314162,), (1395314196,), (1395314230,), (1395314550,), (1395314582,), (1395314611,), (1395314641,), (1395314774,), (1395314806,), (1395314837,), (1395314865,), (1395314873,), (1395314998,), (1395314999,), (1395315000,), (1395315003,), (1395315008,), (1395315010,), (1395315020,), (1395315023,), (1395315043,), (1395315045,), (1395315047,), (1395315051,), (1395315076,), (1395315077,), (1395315078,), (1395315080,), (1395315084,), (1395315103,), (1395315104,), (1395315106,), (1395315108,), (1395315112,), (1395315132,), (1395315133,), (1395315135,), (1395315139,), (1395315142,), (1395315170,), (1395315172,), (1395315176,), (1395315180,), (1395315183,), (1395315185,), (1395315191,), (1395315195,), (1395315196,), (1395315199,), (1395315203,), (1395315218,), (1395315219,), (1395315220,), (1395315222,), (1395315224,), (1395315228,), (1395315239,), (1395315243,), (1395315248,), (1395315251,), (1395315258,), (1395315269,), (1395315271,), (1395315274,), (1395315278,), (1395315309,), (1395315310,), (1395315311,), (1395315340,), (1395315342,), (1395315300,), (1395315304,), (1395315307,), (1395315312,), (1395315314,), (1395315319,), (1395315323,), (1395315327,), (1395315330,), (1395315351,), (1395315353,), (1395315356,), (1395315377,), (1395315380,), (1395315383,), (1395315386,), (1395315389,), (1395315403,), (1395315404,), (1395315405,), (1395315407,), (1395315408,), (1395315412,), (1395315435,), (1395315436,), (1395315439,), (1395315443,), (1395315447,), (1395315450,), (1395315474,), (1395315476,), (1395315478,), (1395315479,), (1395315480,), (1395315481,), (1395315483,), (1395315487,), (1395315508,), (1395315510,), (1395315512,), (1395315533,), (1395315534,), (1395315535,), (1395315538,), (1395315567,), (1395315569,), (1395315572,), (1395315576,), (1395315587,), (1395315612,), (1395315614,), (1395315615,), (1395315618,), (1395315620,), (1395315641,), (1395315644,), (1395315646,), (1395315649,), (1395315654,), (1395315659,), (1395315669,), (1395315670,), (1395315671,), (1395315695,), (1395315697,), (1395315699,), (1395315702,), (1395315706,), (1395315710,), (1395315740,), (1395315742,), (1395315746,), (1395315752,), (1395315757,), (1395315789,), (1395315792,), (1395315859,), (1395315899,), (1395315935,), (1395315965,), (1395315993,), (1395316192,), (1395316197,), (1395315775,), (1395315777,), (1395315781,), (1395315785,), (1395315802,), (1395315806,), (1395315809,), (1395315811,), (1395315813,), (1395315815,), (1395315829,), (1395316121,), (1395316123,), (1395316155,), (1395316158,), (1395316180,), (1395316181,), (1395316184,), (1395316185,), (1395316188,), (1395316189,), (1395316269,), (1395316298,), (1395316300,), (1395316323,), (1395316326,), (1395316331,), (1395316355,), (1395316356,), (1395316357,), (1395316360,), (1395316365,), (1395316368,), (1395316388,), (1395316396,), (1395316399,), (1395316402,), (1395316422,), (1395316423,), (1395316424,), (1395316450,), (1395316457,), (1395316459,), (1395316463,), (1395316467,), (1395316482,), (1395316483,), (1395316484,), (1395316487,), (1395316516,), (1395316518,), (1395316520,), (1395316524,), (1395316528,), (1395316548,), (1395316550,), (1395316553,), (1395316557,), (1395316561,), (1395316563,), (1395316569,), (1395316571,), (1395316573,), (1395316575,), (1395316576,), (1395316579,), (1395316582,), (1395316587,), (1395316597,), (1395316644,), (1395316646,), (1395316702,), (1395316703,), (1395316704,), (1395316705,), (1395316707,), (1395316735,), (1395316738,), (1395316741,), (1395316744,), (1395316746,), (1395316749,), (1395316775,), (1395316780,), (1395316786,), (1395316796,), (1395316811,), (1395316814,), (1395316815,), (1395316772,), (1395316773,), (1395316817,), (1395316819,), (1395316854,), (1395316859,), (1395316861,), (1395316863,), (1395316880,), (1395316882,), (1395316884,), (1395316904,), (1395316905,), (1395316906,), (1395316911,), (1395316933,), (1395316934,), (1395316936,), (1395316940,), (1395316944,), (1395316952,), (1395316971,), (1395316972,), (1395316973,), (1395316976,), (1395316978,), (1395317001,), (1395317003,), (1395317005,), (1395317008,), (1395317027,), (1395317029,), (1395317033,), (1395317051,), (1395317052,), (1395317053,), (1395317079,), (1395317080,), (1395317081,), (1395317084,), (1395317100,), (1395317102,), (1395317104,), (1395317136,), (1395317137,), (1395317138,), (1395317140,), (1395317174,), (1395317175,), (1395317177,), (1395317198,), (1395317199,), (1395317201,), (1395317237,), (1395317241,), (1395317242,), (1395317252,), (1395317229,), (1395317230,), (1395317233,), (1395317258,), (1395317260,), (1395317262,), (1395317265,), (1395317286,), (1395317288,), (1395317291,), (1395317310,), (1395317311,), (1395317312,), (1395317314,), (1395317318,), (1395317320,), (1395317462,), (1395317492,), (1395317523,), (1395317554,), (1395317587,), (1395317872,), (1395317874,), (1395317891,), (1395317892,), (1395317893,), (1395317895,), (1395317908,), (1395317910,), (1395317912,), (1395317915,), (1395317919,), (1395317934,), (1395317935,), (1395317936,), (1395317939,), (1395317943,), (1395317945,), (1395318376,), (1395318442,), (1395318503,), (1395318552,), (1395318746,), (1395318750,), (1395318754,), (1395318781,), (1395318812,), (1395318820,), (1395318869,), (1395318883,), (1395318884,), (1395318887,), (1395318889,), (1395318892,), (1395318911,), (1395318950,), (1395319131,), (1395319162,), (1395319168,), (1395319185,), (1395319253,), (1395319255,), (1395319258,), (1395319271,), (1395319275,), (1395319277,), (1395319279,), (1395319307,), (1395319296,), (1395319298,), (1395319299,), (1395319303,), (1395319325,), (1395319327,), (1395319329,), (1395319535,), (1395319566,), (1395319597,), (1395319628,), (1395319659,), (1395319694,), (1395320287,), (1395320345,), (1395320998,), (1395321030,), (1395321431,), (1395321487,), (1395321522,), (1395321555,), (1395321589,), (1395321632,), (1395321883,), (1395321884,), (1395321886,), (1395321889,), (1395322163,), (1395322164,), (1395322165,), (1395322172,), (1395322185,), (1395322205,), (1395322207,), (1395322209,), (1395322245,), (1395322250,), (1395322253,), (1395322256,), (1395322259,), (1395322283,), (1395322286,), (1395322291,), (1395322296,), (1395322301,), (1395322304,), (1395322316,), (1395322318,), (1395322320,), (1395322324,), (1395322329,), (1395322363,), (1395322364,), (1395322365,), (1395322368,), (1395322373,), (1395322391,), (1395322393,), (1395322395,), (1395322399,), (1395322425,), (1395322427,), (1395322430,), (1395322433,), (1395322436,), (1395322440,), (1395322476,), (1395322559,), (1395322592,), (1395322622,), (1395322653,), (1395322684,), (1395322715,), (1395322462,), (1395322463,), (1395322465,), (1395322468,), (1395322472,), (1395322840,), (1395322876,), (1395322910,), (1395322948,), (1395322979,), (1395323213,), (1395323241,), (1395323439,), (1395323470,), (1395323500,), (1395323533,), (1395323655,), (1395323656,), (1395323657,), (1395323660,), (1395323705,), (1395324071,), (1395324101,), (1395324131,), (1395324163,), (1395324610,), (1395324640,), (1395324673,), (1395324705,), (1395324714,), (1395324716,), (1395324735,), (1395324736,), (1395324737,), (1395324749,), (1395324782,), (1395324817,), (1395324850,), (1395325079,), (1395325087,), (1395325089,), (1395325096,), (1395325101,), (1395325104,), (1395325128,), (1395325130,), (1395325132,), (1395325135,), (1395325138,), (1395325165,), (1395325166,), (1395325168,), (1395325172,), (1395325176,), (1395325179,), (1395325185,), (1395325186,), (1395325192,), (1395325195,), (1395325200,), (1395325205,), (1395325210,), (1395325235,), (1395325238,), (1395325240,), (1395325244,), (1395325247,), (1395325276,), (1395325278,), (1395325280,), (1395325284,), (1395325310,), (1395325314,), (1395325318,), (1395325321,), (1395325323,), (1395325326,), (1395325367,), (1395325372,), (1395325375,), (1395325383,), (1395325384,), (1395325385,), (1395325389,), (1395325357,), (1395325359,), (1395325363,), (1395325405,), (1395325410,), (1395325413,), (1395325507,), (1395325537,), (1395325570,), (1395325602,), (1395325839,), (1395325847,), (1395325877,), (1395325911,), (1395325947,), (1395326065,), (1395326067,), (1395326070,), (1395326073,), (1395326077,), (1395326090,), (1395326091,), (1395326093,), (1395326101,), (1395326105,), (1395326109,), (1395326117,), (1395326118,), (1395326119,), (1395326126,), (1395326130,), (1395326140,), (1395326143,), (1395326146,), (1395326185,), (1395326208,), (1395326217,), (1395326222,), (1395326227,), (1395326244,), (1395326245,), (1395326246,), (1395326263,), (1395326265,), (1395326267,), (1395326271,), (1395326282,), (1395326306,), (1395326307,), (1395326308,), (1395326314,), (1395326317,), (1395326340,), (1395326417,), (1395326418,), (1395326462,), (1395326470,), (1395326471,), (1395326450,), (1395326451,), (1395326453,), (1395326457,), (1395326460,), (1395326473,), (1395326474,), (1395326475,), (1395326547,), (1395326548,), (1395326549,), (1395326551,), (1395326555,), (1395326586,), (1395326587,), (1395326588,), (1395326590,), (1395326594,), (1395326596,), (1395326611,), (1395326613,), (1395326615,), (1395326619,), (1395326624,), (1395326628,), (1395326635,), (1395326637,), (1395326639,), (1395326642,), (1395326675,), (1395326677,), (1395326679,), (1395326682,), (1395326686,), (1395326690,), (1395326709,), (1395326711,), (1395326715,), (1395326720,), (1395326726,), (1395326745,), (1395326747,), (1395326749,), (1395326753,), (1395326756,), (1395326760,), (1395326779,), (1395326784,), (1395326785,), (1395326787,), (1395326791,), (1395326816,), (1395326818,), (1395326821,), (1395326831,), (1395326837,), (1395326841,), (1395326847,), (1395326848,), (1395326849,), (1395326855,), (1395326861,), (1395326865,), (1395326878,), (1395326879,), (1395326880,), (1395326882,), (1395326887,), (1395326926,), (1395326930,), (1395326935,), (1395326973,), (1395326978,), (1395326982,), (1395326987,), (1395326967,), (1395326970,), (1395327010,), (1395327013,), (1395327016,), (1395327020,), (1395327047,), (1395327048,), (1395327049,), (1395327052,), (1395327055,), (1395327089,), (1395327091,), (1395327093,), (1395327096,), (1395327101,), (1395327105,), (1395327123,), (1395327124,), (1395327125,), (1395327128,), (1395327154,), (1395327156,), (1395327159,), (1395327163,), (1395327167,), (1395327170,), (1395327178,), (1395327181,), (1395327191,), (1395327192,), (1395327193,), (1395327195,), (1395327199,), (1395327230,), (1395327232,), (1395327235,), (1395327282,), (1395327283,), (1395327284,), (1395327285,), (1395327310,), (1395327312,), (1395327314,), (1395327317,), (1395327320,), (1395327322,), (1395327348,), (1395327349,), (1395327350,), (1395327353,), (1395327355,), (1395327359,), (1395327378,), (1395336768,), (1395346827,), (1395346917,), (1395346940,), (1395346941,), (1395346944,), (1395346945,), (1395346969,), (1395346976,), (1395346991,), (1395346994,), (1395346996,), (1395346998,), (1395347000,), (1395347002,), (1395347025,), (1395347028,), (1395347030,), (1395347032,), (1395347035,), (1395347037,), (1395347232,), (1395347266,), (1395347321,), (1395347382,), (1395347455,), (1395347467,), (1395347492,), (1395347498,), (1395347504,), (1395347508,), (1395347512,), (1395347517,), (1395347524,), (1395347529,), (1395347533,), (1395347536,), (1395347540,), (1395347543,), (1395347555,), (1395347556,), (1395347558,), (1395347559,), (1395347561,), (1395347562,), (1395347569,), (1395347572,), (1395347583,), (1395347585,), (1395347588,), (1395347591,), (1395346189,), (1395346190,), (1395346191,), (1395346192,), (1395346193,), (1395346194,), (1395346211,), (1395346215,), (1395346219,), (1395346221,), (1395346223,), (1395346226,), (1395346238,), (1395346242,), (1395346246,), (1395346251,), (1395346256,), (1395346260,), (1395346265,), (1395346268,), (1395346270,), (1395346273,), (1395346276,), (1395346281,), (1395346297,), (1395346305,), (1395346309,), (1395346312,), (1395346314,), (1395346316,), (1395346335,), (1395346336,), (1395346340,), (1395346341,), (1395346346,), (1395346347,), (1395346351,), (1395346352,), (1395346355,), (1395346356,), (1395346359,), (1395346360,), (1395346369,), (1395346372,), (1395346375,), (1395346378,), (1395346381,), (1395346385,), (1395346391,), (1395346396,), (1395346401,), (1395346405,), (1395346410,), (1395346416,), (1395346442,), (1395346445,), (1395346449,), (1395346474,), (1395346484,), (1395346496,), (1395346548,), (1395346552,), (1395346558,), (1395346562,), (1395346568,), (1395346573,), (1395346581,), (1395346585,), (1395346588,), (1395346591,), (1395346594,), (1395346602,), (1395346631,), (1395346633,), (1395346637,), (1395346643,), (1395346648,), (1395346654,), (1395346712,), (1395346743,), (1395346761,), (1395346778,), (1395346786,), (1395346796,), (1395346812,), (1395346815,), (1395346818,), (1395346820,), (1395346823,), (1395346876,), (1395346890,), (1395346892,), (1395346905,), (1395346912,), (1395345472,), (1395345473,), (1395345474,), (1395345475,), (1395345476,), (1395345478,), (1395345507,), (1395345508,), (1395345509,), (1395345510,), (1395345513,), (1395345516,), (1395345536,), (1395345542,), (1395345545,), (1395345548,), (1395345550,), (1395345552,), (1395345566,), (1395345571,), (1395345575,), (1395345578,), (1395345582,), (1395345587,), (1395345605,), (1395345609,), (1395345613,), (1395345618,), (1395345621,), (1395345623,), (1395345631,), (1395345634,), (1395345637,), (1395345641,), (1395345645,), (1395345681,), (1395345713,), (1395345724,), (1395345733,), (1395345739,), (1395345743,), (1395345747,), (1395345758,), (1395345760,), (1395345762,), (1395345765,), (1395345776,), (1395345790,), (1395345945,), (1395345959,), (1395345969,), (1395345980,), (1395345991,), (1395346004,), (1395346043,), (1395346044,), (1395346045,), (1395346046,), (1395346047,), (1395346049,), (1395346064,), (1395346069,), (1395346072,), (1395346077,), (1395346079,), (1395346080,), (1395346125,), (1395346129,), (1395346135,), (1395346142,), (1395346149,), (1395346152,), (1395346153,), (1395346154,), (1395346156,), (1395346157,), (1395346159,), (1395346160,), (1395346162,), (1395346163,), (1395346165,), (1395346166,), (1395346168,), (1395346169,), (1395342157,), (1395342161,), (1395342165,), (1395342311,), (1395342313,), (1395342356,), (1395342364,), (1395342392,), (1395342399,), (1395342433,), (1395342439,), (1395342484,), (1395342485,), (1395342525,), (1395342527,), (1395342713,), (1395342746,), (1395342782,), (1395342823,), (1395342858,), (1395342893,), (1395343025,), (1395343060,), (1395343093,), (1395343126,), (1395343163,), (1395343200,), (1395343329,), (1395343365,), (1395343387,), (1395343390,), (1395343393,), (1395343396,), (1395343409,), (1395343416,), (1395343453,), (1395343490,), (1395343522,), (1395343557,), (1395343812,), (1395343813,), (1395343875,), (1395343878,), (1395343943,), (1395343947,), (1395344010,), (1395344019,), (1395344071,), (1395344077,), (1395344108,), (1395344115,), (1395344312,), (1395344376,), (1395344443,), (1395344488,), (1395344527,), (1395344857,), (1395344872,), (1395344877,), (1395345103,), (1395345111,), (1395345176,), (1395345182,), (1395345186,), (1395345192,), (1395345196,), (1395345200,), (1395345201,), (1395345205,), (1395345210,), (1395345214,), (1395345218,), (1395345228,), (1395345230,), (1395345234,), (1395345241,), (1395345247,), (1395345252,), (1395345262,), (1395345263,), (1395345264,), (1395345267,), (1395345268,), (1395345271,), (1395345287,), (1395345290,), (1395345293,), (1395345296,), (1395345299,), (1395345311,), (1395345421,), (1395345430,), (1395345438,), (1395345452,), (1395345455,), (1395345458,), (1395341259,), (1395341265,), (1395341270,), (1395341274,), (1395341279,), (1395341316,), (1395341319,), (1395341322,), (1395341325,), (1395341328,), (1395341329,), (1395341362,), (1395341363,), (1395341367,), (1395341369,), (1395341372,), (1395341373,), (1395341378,), (1395341380,), (1395341383,), (1395341385,), (1395341387,), (1395341389,), (1395341401,), (1395341404,), (1395341408,), (1395341412,), (1395341417,), (1395341422,), (1395341429,), (1395341431,), (1395341435,), (1395341439,), (1395341443,), (1395341462,), (1395341475,), (1395341500,), (1395341541,), (1395341579,), (1395341591,), (1395341641,), (1395341644,), (1395341647,), (1395341675,), (1395341690,), (1395341692,), (1395341705,), (1395341725,), (1395341734,), (1395341742,), (1395341745,), (1395341749,), (1395341758,), (1395341763,), (1395341766,), (1395341769,), (1395341772,), (1395341774,), (1395341821,), (1395341854,), (1395341885,), (1395341903,), (1395341911,), (1395341921,), (1395341991,), (1395342023,), (1395342038,), (1395342050,), (1395342055,), (1395342065,), (1395342078,), (1395342083,), (1395342088,), (1395342090,), (1395342094,), (1395342098,), (1395342121,), (1395342124,), (1395342128,), (1395342132,), (1395342136,), (1395342139,), (1395342146,), (1395342148,), (1395342153,), (1395340736,), (1395340742,), (1395340744,), (1395340749,), (1395340790,), (1395340793,), (1395340797,), (1395340800,), (1395340803,), (1395340818,), (1395340822,), (1395340825,), (1395340838,), (1395340839,), (1395340844,), (1395340852,), (1395340855,), (1395340859,), (1395340864,), (1395340868,), (1395340873,), (1395340896,), (1395340898,), (1395340900,), (1395340903,), (1395340910,), (1395340944,), (1395340975,), (1395340979,), (1395340983,), (1395340985,), (1395340989,), (1395341002,), (1395341013,), (1395341017,), (1395341021,), (1395341025,), (1395341028,), (1395341038,), (1395341052,), (1395341055,), (1395341059,), (1395341063,), (1395341069,), (1395341072,), (1395341092,), (1395341093,), (1395341094,), (1395341096,), (1395341097,), (1395341098,), (1395341102,), (1395341103,), (1395341107,), (1395341108,), (1395341112,), (1395341114,), (1395341126,), (1395341128,), (1395341130,), (1395341133,), (1395341150,), (1395341153,), (1395341162,), (1395341192,), (1395341229,), (1395341244,), (1395341247,), (1395341250,), (1395341257,), (1395340322,), (1395340323,), (1395340327,), (1395340329,), (1395340334,), (1395340335,), (1395340340,), (1395340341,), (1395340358,), (1395340365,), (1395340372,), (1395340379,), (1395340386,), (1395340387,), (1395340388,), (1395340389,), (1395340392,), (1395340399,), (1395340428,), (1395340432,), (1395340436,), (1395340438,), (1395340440,), (1395340443,), (1395340457,), (1395340460,), (1395340464,), (1395340466,), (1395340468,), (1395340470,), (1395340481,), (1395340485,), (1395340488,), (1395340492,), (1395340495,), (1395340496,), (1395340506,), (1395340511,), (1395340514,), (1395340519,), (1395340524,), (1395340528,), (1395340533,), (1395340537,), (1395340540,), (1395340543,), (1395340547,), (1395340551,), (1395340563,), (1395340566,), (1395340571,), (1395340574,), (1395340578,), (1395340580,), (1395340589,), (1395340590,), (1395340592,), (1395340593,), (1395340595,), (1395340597,), (1395340601,), (1395340602,), (1395340608,), (1395340611,), (1395340620,), (1395340626,), (1395340637,), (1395340639,), (1395340641,), (1395340643,), (1395340645,), (1395340649,), (1395340659,), (1395340664,), (1395340666,), (1395340669,), (1395340671,), (1395340674,), (1395340687,), (1395340689,), (1395340692,), (1395340696,), (1395340698,), (1395340701,), (1395340716,), (1395340719,), (1395361438,), (1395361512,), (1395361515,), (1395361519,), (1395361524,), (1395361561,), (1395361565,), (1395361569,), (1395361573,), (1395361578,), (1395361608,), (1395363125,), (1395364916,), (1395364842,), (1395365106,), (1395365188,), (1395365223,), (1395365259,), (1395365271,), (1395365293,), (1395365642,), (1395365698,), (1395365733,), (1395366002,), (1395366006,), (1395366202,), (1395366205,), (1395366207,), (1395366209,), (1395366595,), (1395366676,), (1395367253,), (1395366663,), (1395366667,), (1395366670,), (1395366673,), (1395366843,), (1395366890,), (1395366922,), (1395366961,), (1395366991,), (1395366997,), (1395367143,), (1395367149,), (1395367154,), (1395367159,), (1395367171,), (1395367217,), (1395367226,), (1395367230,), (1395367233,), (1395367238,), (1395367243,), (1395367246,), (1395367250,), (1395367251,), (1395367252,), (1395367273,), (1395367275,), (1395367276,), (1395367277,), (1395367279,), (1395367503,), (1395367506,), (1395367510,), (1395367514,), (1395367549,), (1395367587,), (1395367632,), (1395367634,), (1395367821,), (1395367826,), (1395367839,), (1395367856,), (1395367868,), (1395367881,), (1395367924,), (1395367928,), (1395367932,), (1395367934,), (1395367937,), (1395367941,), (1395368116,), (1395368133,), (1395368134,), (1395368135,), (1395368295,), (1395368300,), (1395368304,), (1395368309,), (1395368313,), (1395368335,), (1395368435,), (1395368455,), (1395368459,), (1395368462,), (1395368478,), (1395369132,), (1395369173,), (1395369213,), (1395369256,), (1395369294,), (1395369327,), (1395369592,), (1395369664,), (1395369738,), (1395369804,), (1395369864,), (1395369994,), (1395370027,), (1395370062,), (1395370103,), (1395370156,), (1395370161,), (1395370164,), (1395370194,), (1395370229,), (1395370640,), (1395370679,), (1395370712,), (1395370745,), (1395370807,), (1395371061,), (1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,), (1395374090,), (1395374070,), (1395374075,), (1395374079,), (1395374085,), (1395374113,), (1395374116,), (1395374130,), (1395374134,), (1395374138,), (1395374141,), (1395374332,), (1395374376,), (1395374396,), (1395374403,), (1395374410,), (1395374595,), (1395374598,), (1395374600,), (1395374602,), (1395374604,), (1395374662,), (1395374668,), (1395374670,), (1395374673,), (1395374677,), (1395374681,), (1395374776,), (1395374810,), (1395374826,), (1395374852,), (1395374856,), (1395374881,), (1395374887,), (1395374892,), (1395374910,), (1395374917,), (1395375092,), (1395375103,), (1395375132,), (1395375167,), (1395375306,), (1395375309,), (1395375312,), (1395375316,), (1395375322,), (1395375327,), (1395375361,), (1395375366,), (1395375368,), (1395375370,), (1395375418,), (1395375440,), (1395375476,), (1395375483,), (1395375689,), (1395375697,), (1395375711,), (1395375723,), (1395375729,), (1395375732,), (1395375756,), (1395375761,), (1395375766,), (1395375785,), (1395375821,), (1395375831,), (1395375833,), (1395375842,), (1395375850,), (1395375852,), (1395375855,), (1395375870,), (1395375872,), (1395375874,), (1395375876,), (1395376080,), (1395375919,), (1395375934,), (1395375972,), (1395376004,), (1395376040,), (1395376427,), (1395376462,), (1395376499,), (1395376532,), (1395376837,), (1395376870,), (1395376904,), (1395376936,), (1395376956,), (1395377119,), (1395377120,), (1395377121,), (1395377123,), (1395377185,), (1395377364,), (1395377370,), (1395377384,), (1395377388,), (1395377397,), (1395377682,), (1395377686,), (1395377687,), (1395377715,), (1395377743,), (1395377745,), (1395377847,), (1395377848,), (1395377849,), (1395377854,), (1395377996,), (1395378002,), (1395378007,), (1395378016,), (1395378468,), (1395378501,), (1395378518,), (1395378519,), (1395378546,), (1395378585,), (1395378771,), (1395378776,), (1395378780,), (1395378784,), (1395378788,), (1395378831,), (1395378833,), (1395378836,), (1395378840,), (1395378845,), (1395378850,), (1395379052,), (1395379104,), (1395379147,), (1395379191,), (1395379422,), (1395379427,), (1395379432,), (1395379456,), (1395379524,), (1395379800,), (1395379806,), (1395379810,), (1395379840,), (1395379931,), (1395379932,), (1395379935,), (1395379936,), (1395379938,), (1395379939,), (1395379949,), (1395379953,), (1395379988,), (1395379990,), (1395380046,), (1395380303,), (1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,), (1395382203,), (1395382010,), (1395382057,), (1395382090,), (1395382129,), (1395382165,), (1395382395,), (1395382399,), (1395382434,), (1395382467,), (1395382511,), (1395382921,), (1395382955,), (1395382989,), (1395382992,), (1395382996,), (1395383189,), (1395383191,), (1395383193,), (1395383196,), (1395383225,), (1395383230,), (1395383232,), (1395383235,), (1395383238,), (1395383243,), (1395383457,), (1395383462,), (1395383493,), (1395383502,), (1395383511,), (1395383575,), (1395383577,), (1395383579,), (1395383582,), (1395383586,), (1395383719,), (1395383741,), (1395383744,), (1395383768,), (1395383778,), (1395383779,), (1395383788,), (1395383791,), (1395383794,), (1395383808,), (1395383810,), (1395383811,), (1395383821,), (1395383852,), (1395383856,), (1395383860,), (1395385234,), (1395385141,), (1395385204,), (1395385355,), (1395385426,), (1395385430,), (1395385433,), (1395385466,), (1395385470,), (1395385472,), (1395385481,), (1395385491,), (1395385502,), (1395385589,), (1395385592,), (1395385595,), (1395385598,), (1395385718,), (1395385720,), (1395385722,), (1395385724,), (1395385728,), (1395385754,), (1395385758,), (1395385762,), (1395385766,), (1395385775,), (1395385784,), (1395385880,), (1395385938,), (1395385950,), (1395385969,), (1395386053,), (1395386058,), (1395386062,), (1395386067,), (1395386072,), (1395386076,), (1395386162,), (1395386179,), (1395386182,), (1395386215,), (1395386222,), (1395386224,), (1395386263,), (1395386267,), (1395386272,), (1395386304,), (1395386332,), (1395386346,), (1395386348,), (1395386371,), (1395386376,), (1395386379,), (1395386400,), (1395386401,), (1395386419,), (1395386454,), (1395386727,), (1395386647,), (1395386653,), (1395386656,), (1395386659,), (1395386684,), (1395387159,), (1395387194,), (1395387196,), (1395387381,), (1395387383,), (1395387385,), (1395387567,), (1395387750,), (1395387755,), (1395387758,), (1395387761,), (1395387765,), (1395387877,), (1395387981,), (1395388020,), (1395388056,), (1395388088,), (1395388124,), (1395388163,), (1395388165,), (1395388176,), (1395388196,), (1395388200,), (1395388204,), (1395388207,), (1395388210,), (1395388214,), (1395388234,), (1395388237,), (1395388246,), (1395388256,), (1395388260,), (1395388264,), (1395388302,), (1395388303,), (1395388304,), (1395388305,), (1395388309,), (1395388342,), (1395388351,), (1395388363,), (1395388367,), (1395388425,), (1395388439,), (1395388444,), (1395388446,), (1395388449,), (1395388451,), (1395388616,), (1395388621,), (1395388626,), (1395388640,), (1395388644,), (1395388646,), (1395388647,), (1395388651,), (1395388674,), (1395388667,), (1395388670,), (1395388672,), (1395388718,), (1395388721,), (1395388724,), (1395388728,), (1395388732,), (1395388737,), (1395388805,), (1395388807,), (1395388838,), (1395388849,), (1395388860,), (1395388867,), (1395388893,), (1395388900,), (1395388923,), (1395388925,), (1395388946,), (1395388948,), (1395388950,), (1395388953,), (1395388956,), (1395388957,), (1395388982,), (1395388986,), (1395388993,), (1395388998,), (1395389034,), (1395389037,), (1395389039,), (1395389043,), (1395389047,), (1395389080,), (1395389082,), (1395389083,), (1395389089,), (1395389110,), (1395389152,), (1395389154,), (1395389157,), (1395389161,), (1395389165,), (1395389205,), (1395389207,), (1395389209,), (1395389211,), (1395389215,), (1395389244,), (1395389248,), (1395389251,), (1395389255,), (1395389259,), (1395389314,), (1395389316,), (1395389317,), (1395389319,), (1395389324,), (1395389329,), (1395389364,), (1395389369,), (1395389382,), (1395389394,), (1395389426,), (1395389428,), (1395389434,), (1395389437,), (1395389446,), (1395389448,), (1395389460,), (1395389464,), (1395389466,), (1395389471,), (1395389474,), (1395389518,), (1395389520,), (1395389551,), (1395389586,), (1395389630,), (1395389633,), (1395389636,), (1395389641,), (1395389674,), (1395389679,), (1395389693,), (1395389697,), (1395389702,), (1395389706,), (1395389716,), (1395389718,), (1395389725,), (1395389728,), (1395389732,), (1395389736,), (1395389740,), (1395389742,), (1395389826,), (1395389829,), (1395389832,), (1395389835,), (1395389838,), (1395389870,), (1395389872,), (1395389873,), (1395389874,), (1395389876,), (1395389915,), (1395389919,), (1395389925,), (1395389929,), (1395389933,), (1395389938,), (1395389972,), (1395389974,), (1395389994,), (1395390029,), (1395390033,), (1395390037,), (1395390042,), (1395390045,), (1395390049,), (1395390079,), (1395390081,), (1395390086,), (1395390090,), (1395390183,), (1395390236,), (1395390240,), (1395390243,), (1395390247,), (1395390257,), (1395390263,), (1395390279,), (1395390283,), (1395390292,), (1395390296,), (1395390359,), (1395390365,), (1395390369,), (1395390373,), (1395390394,), (1395390525,), (1395390495,), (1395390503,), (1395390509,), (1395390520,), (1395390541,), (1395390545,), (1395390550,), (1395390553,), (1395390558,), (1395390563,), (1395390586,), (1395390609,), (1395390614,), (1395390617,), (1395390620,), (1395390621,), (1395390630,), (1395390633,), (1395390637,), (1395390641,), (1395390647,), (1395390650,), (1395390653,), (1395390710,), (1395390723,), (1395390725,), (1395390729,), (1395390732,), (1395390999,), (1395391013,), (1395391015,), (1395391034,), (1395391036,), (1395391038,), (1395391047,), (1395391048,), (1395391055,), (1395391059,), (1395391062,), (1395391064,), (1395391086,), (1395391090,), (1395391092,), (1395391094,), (1395391098,), (1395391100,), (1395391151,), (1395391153,), (1395391155,), (1395391158,), (1395391161,), (1395391205,), (1395391240,), (1395391270,), (1395391305,), (1395391337,), (1395391341,), (1395391358,), (1395391367,), (1395391370,), (1395391375,), (1395391456,), (1395391466,), (1395391495,), (1395391500,), (1395391510,), (1395391511,), (1395391531,), (1395391534,), (1395391537,), (1395391558,), (1395391567,), (1395391572,), (1395391596,), (1395391602,), (1395391604,), (1395391665,), (1395391754,), (1395391793,), (1395391834,), (1395391873,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20112025': {'nb_upload': 81, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28749853]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558] map_info['map_portfolio_photo'] : {28749853: [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558, 1395391537, 1395391534, 1395391531, 1395391511, 1395391510, 1395391500, 1395391495, 1395391466, 1395391456, 1395391375, 1395391370, 1395391367, 1395391358, 1395391341, 1395391337, 1395391305, 1395391270, 1395391240, 1395391205, 1395391161, 1395391158, 1395391155, 1395391153, 1395391151, 1395391100, 1395391098, 1395391094, 1395391092, 1395391090, 1395391086, 1395391064, 1395391062, 1395391059, 1395391055, 1395391048, 1395391047, 1395391038, 1395391036, 1395391034, 1395391015, 1395391013, 1395390999, 1395390732, 1395390729, 1395390725, 1395390723, 1395390710, 1395390653, 1395390650, 1395390647, 1395390641, 1395390637, 1395390633, 1395390630, 1395390621, 1395390620, 1395390617, 1395390614, 1395390609, 1395390586, 1395390563, 1395390558, 1395390553, 1395390550, 1395390545, 1395390541, 1395390520, 1395390509, 1395390503, 1395390495]} final : True mtd_id 4302 list_pids : [1395391873, 1395391834, 1395391793, 1395391754, 1395391665, 1395391604, 1395391602, 1395391596, 1395391572, 1395391567, 1395391558] Looping around the photos to save general results len do output : 1 /28749853Didn'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, '4085689') ('4302', '28749853', '1395391873', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391834', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391793', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391754', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391665', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391604', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391602', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391596', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391572', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391567', None, None, None, None, None, '4085689') ('4302', None, None, None, None, None, None, None, '4085689') ('4302', '28749853', '1395391558', None, None, None, None, None, '4085689') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28749853', 'None', None, None, None, None, '4085689'), ('4302', '28749853', '1395391873', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391834', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391793', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391754', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391665', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391604', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391602', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391596', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391572', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391567', None, None, None, None, None, '4085689'), ('4302', '28749853', '1395391558', None, None, None, None, None, '4085689')] time used for this insertion : 0.015228033065795898 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.55492091178894 time spend to save output : 0.015523195266723633 total time spend for step 5 : 4.570444107055664 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 (4085689) 2.31user 2.14system 0:15.13elapsed 29%CPU (0avgtext+0avgdata 159484maxresident)k 1088inputs+14536outputs (10major+76967minor)pagefaults 0swaps