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 : 320945 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 (3396384) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3396384) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495527 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3396384'] with mtr_portfolio_ids : ['25495527'] and first list_photo_ids : [] new path : /proc/320945/ Name: python3 Umask: 0002 State: R (running) Tgid: 320945 Ngid: 0 Pid: 320945 PPid: 320944 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 320945 NSpid: 320945 NSpgid: 319036 NSsid: 319036 VmPeak: 1106864 kB VmSize: 1106864 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99436 kB VmRSS: 99436 kB RssAnon: 59816 kB RssFile: 39620 kB RssShmem: 0 kB VmData: 865616 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 51 nonvoluntary_ctxt_switches: 83 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '320945', 'Ngid': '0', 'Pid': '320945', 'PPid': '320944', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '320945', 'NSpid': '320945', 'NSpgid': '319036', 'NSsid': '319036', 'VmPeak': '1106864 kB', 'VmSize': '1106864 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99436 kB', 'VmRSS': '99436 kB', 'RssAnon': '59816 kB', 'RssFile': '39620 kB', 'RssShmem': '0 kB', 'VmData': '865616 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '51', 'nonvoluntary_ctxt_switches': '83'} ('datou_batch_current', '320945', '1106864', '0', '1106864', '865616', '99436', b'', 'marlene', '3396384') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25495527) 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 (3396384 ) ) 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 (25495527) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374428083, 'portfolio_id': 25495527}, {'photo_id': 1374428054, 'portfolio_id': 25495527}, {'photo_id': 1374428052, 'portfolio_id': 25495527}, {'photo_id': 1374428050, 'portfolio_id': 25495527}, {'photo_id': 1374428049, 'portfolio_id': 25495527}, {'photo_id': 1374428048, 'portfolio_id': 25495527}, {'photo_id': 1374428046, 'portfolio_id': 25495527}, {'photo_id': 1374428017, 'portfolio_id': 25495527}, {'photo_id': 1374427893, 'portfolio_id': 25495527}, {'photo_id': 1374427881, 'portfolio_id': 25495527}, {'photo_id': 1374427880, 'portfolio_id': 25495527}, {'photo_id': 1374427879, 'portfolio_id': 25495527}, {'photo_id': 1374427878, 'portfolio_id': 25495527}, {'photo_id': 1374427877, 'portfolio_id': 25495527}, {'photo_id': 1374427611, 'portfolio_id': 25495527}, {'photo_id': 1374427574, 'portfolio_id': 25495527}, {'photo_id': 1374427570, 'portfolio_id': 25495527}, {'photo_id': 1374427558, 'portfolio_id': 25495527}, {'photo_id': 1374427552, 'portfolio_id': 25495527}, {'photo_id': 1374427511, 'portfolio_id': 25495527}, {'photo_id': 1374427483, 'portfolio_id': 25495527}, {'photo_id': 1374427412, 'portfolio_id': 25495527}, {'photo_id': 1374427407, 'portfolio_id': 25495527}, {'photo_id': 1374427399, 'portfolio_id': 25495527}, {'photo_id': 1374427389, 'portfolio_id': 25495527}, {'photo_id': 1374427349, 'portfolio_id': 25495527}, {'photo_id': 1374427311, 'portfolio_id': 25495527}, {'photo_id': 1374427038, 'portfolio_id': 25495527}, {'photo_id': 1374427035, 'portfolio_id': 25495527}, {'photo_id': 1374427033, 'portfolio_id': 25495527}, {'photo_id': 1374427032, 'portfolio_id': 25495527}, {'photo_id': 1374427030, 'portfolio_id': 25495527}, {'photo_id': 1374427027, 'portfolio_id': 25495527}, {'photo_id': 1374427005, 'portfolio_id': 25495527}, {'photo_id': 1374427001, 'portfolio_id': 25495527}, {'photo_id': 1374426998, 'portfolio_id': 25495527}, {'photo_id': 1374426997, 'portfolio_id': 25495527}, {'photo_id': 1374426995, 'portfolio_id': 25495527}, {'photo_id': 1374426983, 'portfolio_id': 25495527}, {'photo_id': 1374426870, 'portfolio_id': 25495527}, {'photo_id': 1374426867, 'portfolio_id': 25495527}, {'photo_id': 1374426866, 'portfolio_id': 25495527}, {'photo_id': 1374426864, 'portfolio_id': 25495527}, {'photo_id': 1374426862, 'portfolio_id': 25495527}, {'photo_id': 1374426860, 'portfolio_id': 25495527}, {'photo_id': 1374426770, 'portfolio_id': 25495527}, {'photo_id': 1374426767, 'portfolio_id': 25495527}, {'photo_id': 1374426766, 'portfolio_id': 25495527}, {'photo_id': 1374426764, 'portfolio_id': 25495527}, {'photo_id': 1374426754, 'portfolio_id': 25495527}, {'photo_id': 1374426741, 'portfolio_id': 25495527}, {'photo_id': 1374426726, 'portfolio_id': 25495527}, {'photo_id': 1374426721, 'portfolio_id': 25495527}, {'photo_id': 1374426719, 'portfolio_id': 25495527}, {'photo_id': 1374426718, 'portfolio_id': 25495527}, {'photo_id': 1374426715, 'portfolio_id': 25495527}, {'photo_id': 1374426712, 'portfolio_id': 25495527}, {'photo_id': 1374426497, 'portfolio_id': 25495527}, {'photo_id': 1374426473, 'portfolio_id': 25495527}, {'photo_id': 1374426442, 'portfolio_id': 25495527}, {'photo_id': 1374426403, 'portfolio_id': 25495527}, {'photo_id': 1374426356, 'portfolio_id': 25495527}, {'photo_id': 1374426319, 'portfolio_id': 25495527}, {'photo_id': 1374425837, 'portfolio_id': 25495527}, {'photo_id': 1374425183, 'portfolio_id': 25495527}, {'photo_id': 1374425141, 'portfolio_id': 25495527}, {'photo_id': 1374425093, 'portfolio_id': 25495527}, {'photo_id': 1374425040, 'portfolio_id': 25495527}, {'photo_id': 1374424978, 'portfolio_id': 25495527}, {'photo_id': 1374424923, 'portfolio_id': 25495527}] map_portfolio_id_photo_id: {25495527: [1374428083, 1374428054, 1374428052, 1374428050, 1374428049, 1374428048, 1374428046, 1374428017, 1374427893, 1374427881, 1374427880, 1374427879, 1374427878, 1374427877, 1374427611, 1374427574, 1374427570, 1374427558, 1374427552, 1374427511, 1374427483, 1374427412, 1374427407, 1374427399, 1374427389, 1374427349, 1374427311, 1374427038, 1374427035, 1374427033, 1374427032, 1374427030, 1374427027, 1374427005, 1374427001, 1374426998, 1374426997, 1374426995, 1374426983, 1374426870, 1374426867, 1374426866, 1374426864, 1374426862, 1374426860, 1374426770, 1374426767, 1374426766, 1374426764, 1374426754, 1374426741, 1374426726, 1374426721, 1374426719, 1374426718, 1374426715, 1374426712, 1374426497, 1374426473, 1374426442, 1374426403, 1374426356, 1374426319, 1374425837, 1374425183, 1374425141, 1374425093, 1374425040, 1374424978, 1374424923]} ##### 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.01439356803894043 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jul 30 10:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25495527) 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 : 25495527 get user id for portfolio 25495527 get sub ptf for main ptf 25495527, type 3726 and hashtags ['flou', 'Teint_Dans_La_Masse', 'plastique', 'kraft', 'Carton_brun', 'Carton_gris', 'mal_croppe', 'cartonnette', 'autre_refus', 'papier', 'environnement', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25495527 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','plastique','kraft','Carton_brun','Carton_gris','mal_croppe','cartonnette','autre_refus','papier','environnement','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25495527 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','plastique','kraft','Carton_brun','Carton_gris','mal_croppe','cartonnette','autre_refus','papier','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25495527, 'sub_port_id': 25495535, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193467, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'autre_refus': {'main_port_id': 25495527, 'sub_port_id': 25495536, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193468, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'kraft': {'main_port_id': 25495527, 'sub_port_id': 25495537, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193469, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'Carton_brun': {'main_port_id': 25495527, 'sub_port_id': 25495538, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193470, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'mal_croppe': {'main_port_id': 25495527, 'sub_port_id': 25495539, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193471, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'Carton_gris': {'main_port_id': 25495527, 'sub_port_id': 25495540, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193472, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'metal': {'main_port_id': 25495527, 'sub_port_id': 25495541, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193473, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'environnement': {'main_port_id': 25495527, 'sub_port_id': 25495542, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193474, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'flou': {'main_port_id': 25495527, 'sub_port_id': 25495543, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193475, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'cartonnette': {'main_port_id': 25495527, 'sub_port_id': 25495544, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193476, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'plastique': {'main_port_id': 25495527, 'sub_port_id': 25495546, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193477, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}, 'Teint_Dans_La_Masse': {'main_port_id': 25495527, 'sub_port_id': 25495547, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193478, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 55)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495535 , 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=25495527 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 (25495535) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495536 , 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=25495527 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 (25495536) result : ((1374427489,), (1374427868,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495537 , 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=25495527 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 (25495537) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495538 , 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=25495527 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 (25495538) result : ((1374428103,), (1374428104,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495539 , 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=25495527 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 (25495539) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495540 , 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=25495527 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 (25495540) result : ((1374427875,), (1374427876,), (1374428041,), (1374428042,), (1374428043,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495541 , 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=25495527 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 (25495541) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495542 , 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=25495527 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 (25495542) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495543 , 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=25495527 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 (25495543) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495544 , 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=25495527 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 (25495544) result : ((1374427497,), (1374428100,), (1374428101,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495546 , 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=25495527 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 (25495546) result : ((1374428044,), (1374428045,), (1374428107,), (1374428108,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25495547 , 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=25495527 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 (25495547) result : ((1374427479,), (1374427481,), (1374427859,), (1374427861,), (1374428038,), (1374428039,), (1374428098,), (1374428099,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25495527) result : ((1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25495527 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','plastique','kraft','Carton_brun','Carton_gris','mal_croppe','cartonnette','autre_refus','papier','environnement','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25495527 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Teint_Dans_La_Masse','plastique','kraft','Carton_brun','Carton_gris','mal_croppe','cartonnette','autre_refus','papier','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25495527, 'sub_port_id': 25495548, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193479, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'autre_refus': {'main_port_id': 25495527, 'sub_port_id': 25495549, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193480, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'kraft': {'main_port_id': 25495527, 'sub_port_id': 25495550, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193481, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'Carton_brun': {'main_port_id': 25495527, 'sub_port_id': 25495551, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193482, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'mal_croppe': {'main_port_id': 25495527, 'sub_port_id': 25495552, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193483, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'Carton_gris': {'main_port_id': 25495527, 'sub_port_id': 25495553, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193484, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'metal': {'main_port_id': 25495527, 'sub_port_id': 25495554, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193485, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'environnement': {'main_port_id': 25495527, 'sub_port_id': 25495555, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193486, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'flou': {'main_port_id': 25495527, 'sub_port_id': 25495556, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193487, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'cartonnette': {'main_port_id': 25495527, 'sub_port_id': 25495557, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193488, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'plastique': {'main_port_id': 25495527, 'sub_port_id': 25495558, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193489, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 25495527, 'sub_port_id': 25495559, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17193490, 'last_updated_at': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 30, 10, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 30, 10, 2, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25495559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25495547 lien utilise dans velours : https://www.fotonower.com/velours/25495548,25495549,25495550,25495551,25495552,25495553,25495554,25495555,25495556,25495557,25495558,25495559?tags=papier,autre_refus,kraft,Carton_brun,mal_croppe,Carton_gris,metal,environnement,flou,cartonnette,plastique,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25495527]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374428083] map_info['map_portfolio_photo'] : {25495527: [1374428083, 1374428054, 1374428052, 1374428050, 1374428049, 1374428048, 1374428046, 1374428017, 1374427893, 1374427881, 1374427880, 1374427879, 1374427878, 1374427877, 1374427611, 1374427574, 1374427570, 1374427558, 1374427552, 1374427511, 1374427483, 1374427412, 1374427407, 1374427399, 1374427389, 1374427349, 1374427311, 1374427038, 1374427035, 1374427033, 1374427032, 1374427030, 1374427027, 1374427005, 1374427001, 1374426998, 1374426997, 1374426995, 1374426983, 1374426870, 1374426867, 1374426866, 1374426864, 1374426862, 1374426860, 1374426770, 1374426767, 1374426766, 1374426764, 1374426754, 1374426741, 1374426726, 1374426721, 1374426719, 1374426718, 1374426715, 1374426712, 1374426497, 1374426473, 1374426442, 1374426403, 1374426356, 1374426319, 1374425837, 1374425183, 1374425141, 1374425093, 1374425040, 1374424978, 1374424923]} final : False mtd_id 4302 list_pids : [1374428083] Looping around the photos to save general results len do output : 1 /25495527. 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, '3396384') ('4302', '25495527', '1374428083', None, None, None, None, None, '3396384') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '25495527', "{'papier': 25495535, 'autre_refus': 25495536, 'kraft': 25495537, 'Carton_brun': 25495538, 'mal_croppe': 25495539, 'Carton_gris': 25495540, 'metal': 25495541, 'environnement': 25495542, 'flou': 25495543, 'cartonnette': 25495544, 'plastique': 25495546, 'Teint_Dans_La_Masse': 25495547}", None, None, None, None, '3396384'), ('4302', '25495527', '1374428083', None, None, None, None, None, '3396384')] time used for this insertion : 0.01805877685546875 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5968880653381348 time spend to save output : 0.018272876739501953 total time spend for step 1 : 1.6151609420776367 step2:final Wed Jul 30 10:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (25495527) 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 25495527 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374425183,1374425141,1374425093,1374425040,1374424978,1374424923,1374425837,1374426497,1374426473,1374426442,1374426403,1374426356,1374426319,1374426726,1374426721,1374426719,1374426718,1374426715,1374426712,1374426770,1374426767,1374426766,1374426764,1374426754,1374426741,1374426870,1374426867,1374426866,1374426864,1374426862,1374426860,1374427005,1374427001,1374426998,1374426997,1374426995,1374426983,1374427038,1374427035,1374427033,1374427032,1374427030,1374427027,1374427412,1374427407,1374427399,1374427389,1374427349,1374427311,1374427574,1374427570,1374427558,1374427552,1374427511,1374427483,1374427611,1374427893,1374427881,1374427880,1374427879,1374427878,1374427877,1374428017,1374428054,1374428052,1374428050,1374428049,1374428048,1374428046,1374428083); 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([25495527]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374428083: ('0.06516936520983498',)} new output for save of step final : {1374428083: ('0.06516936520983498',)} [1374428083] map_info['map_portfolio_photo'] : {25495527: [1374428083, 1374428054, 1374428052, 1374428050, 1374428049, 1374428048, 1374428046, 1374428017, 1374427893, 1374427881, 1374427880, 1374427879, 1374427878, 1374427877, 1374427611, 1374427574, 1374427570, 1374427558, 1374427552, 1374427511, 1374427483, 1374427412, 1374427407, 1374427399, 1374427389, 1374427349, 1374427311, 1374427038, 1374427035, 1374427033, 1374427032, 1374427030, 1374427027, 1374427005, 1374427001, 1374426998, 1374426997, 1374426995, 1374426983, 1374426870, 1374426867, 1374426866, 1374426864, 1374426862, 1374426860, 1374426770, 1374426767, 1374426766, 1374426764, 1374426754, 1374426741, 1374426726, 1374426721, 1374426719, 1374426718, 1374426715, 1374426712, 1374426497, 1374426473, 1374426442, 1374426403, 1374426356, 1374426319, 1374425837, 1374425183, 1374425141, 1374425093, 1374425040, 1374424978, 1374424923]} final : False mtd_id 4302 list_pids : [1374428083] Looping around the photos to save general results len do output : 1 /1374428083.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, '3396384') ('4302', '25495527', '1374428083', None, None, None, None, None, '3396384') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '25495527', '1374428083', '0.06516936520983498', None, None, None, None, '3396384')] time used for this insertion : 0.014462471008300781 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07124972343444824 time spend to save output : 0.014634847640991211 total time spend for step 2 : 0.08588457107543945 step3:velours_tree Wed Jul 30 10:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25495527: [{'papier': 25495535, 'autre_refus': 25495536, 'kraft': 25495537, 'Carton_brun': 25495538, 'mal_croppe': 25495539, 'Carton_gris': 25495540, 'metal': 25495541, 'environnement': 25495542, 'flou': 25495543, 'cartonnette': 25495544, 'plastique': 25495546, 'Teint_Dans_La_Masse': 25495547}]} input_args_next_step : {25495527: ()} output_args : {25495527: [{'papier': 25495535, 'autre_refus': 25495536, 'kraft': 25495537, 'Carton_brun': 25495538, 'mal_croppe': 25495539, 'Carton_gris': 25495540, 'metal': 25495541, 'environnement': 25495542, 'flou': 25495543, 'cartonnette': 25495544, 'plastique': 25495546, 'Teint_Dans_La_Masse': 25495547}]} args : 25495527 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 : ({'papier': 25495535, 'autre_refus': 25495536, 'kraft': 25495537, 'Carton_brun': 25495538, 'mal_croppe': 25495539, 'Carton_gris': 25495540, 'metal': 25495541, 'environnement': 25495542, 'flou': 25495543, 'cartonnette': 25495544, 'plastique': 25495546, 'Teint_Dans_La_Masse': 25495547},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25495527) 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([25495527]) 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.27321720123291016 time spend to save output : 5.125999450683594e-05 total time spend for step 3 : 0.273268461227417 step4:send_mail_cod Wed Jul 30 10:16:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1374428083: ('0.06516936520983498',)} input_args_next_step : {1374428083: ()} output_args : {1374428083: ('0.06516936520983498',)} args : 1374428083 depend.output_id : 0 complete output_args for input 3 : {25495527: [{'papier': 25495535, 'autre_refus': 25495536, 'kraft': 25495537, 'Carton_brun': 25495538, 'mal_croppe': 25495539, 'Carton_gris': 25495540, 'metal': 25495541, 'environnement': 25495542, 'flou': 25495543, 'cartonnette': 25495544, 'plastique': 25495546, 'Teint_Dans_La_Masse': 25495547}]} input_args_next_step : {1374428083: ('0.06516936520983498',), 25495527: ()} output_args : {25495527: [{'papier': 25495535, 'autre_refus': 25495536, 'kraft': 25495537, 'Carton_brun': 25495538, 'mal_croppe': 25495539, 'Carton_gris': 25495540, 'metal': 25495541, 'environnement': 25495542, 'flou': 25495543, 'cartonnette': 25495544, 'plastique': 25495546, 'Teint_Dans_La_Masse': 25495547}]} args : 25495527 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 :2, first value : ('0.06516936520983498',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25495527) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1374428083) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374428083 download finish for photo 1374428083 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 : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P25495527_30-07-2025_10_16_59.pdf 25495536 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374427489: '1753862967_2543850_1374426860_1adc5b596207932c51219d222e51da3a_rle_crop_3898148245_0.png', 1374427868: '1753863085_2546959_1374427035_b1d22d94e17528ec93fc119d7c88c64f_rle_crop_3898148727_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/17a830d69f9a6925c6bfad2a16c1f2be_6507339.png change filename to text .imagette254955361753863419/ imagette254955361753863419/1753862967_2543850_1374426860_1adc5b596207932c51219d222e51da3a_rle_crop_3898148245_0.png.png imagette254955361753863419/1753863085_2546959_1374427035_b1d22d94e17528ec93fc119d7c88c64f_rle_crop_3898148727_0.png.png imagette254955371753863419/ imagette254955391753863419/ imagette254955411753863419/ imagette254955431753863419/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/8965b3680e33532ee4b14ba0fa2796e0_63002946.png imagette254955361753863419 25495537 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254955371753863419 25495539 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254955391753863419 25495541 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254955411753863419 25495543 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette254955431753863419 25495544 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374427497: '1753862967_2543850_1374426860_1adc5b596207932c51219d222e51da3a_rle_crop_3898148246_0.png', 1374428100: '1753863325_2552864_1374427878_ef8fc1373879c47d7348c80ed1656430_rle_crop_3898149736_0.png', 1374428101: '1753863325_2552864_1374427877_eb8f188fe44b8c386ac8a1849c119bbf_rle_crop_3898149749_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/a84afe528b43e29f4fe9fc44275615e3_67127570.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/c1ff9f45f80738e099bbdb7e5ff4a873_84431660.png change filename to text .imagette254955441753863419/ imagette254955441753863419/1753862967_2543850_1374426860_1adc5b596207932c51219d222e51da3a_rle_crop_3898148246_0.png.png imagette254955441753863419/1753863325_2552864_1374427877_eb8f188fe44b8c386ac8a1849c119bbf_rle_crop_3898149749_0.png.png imagette254955441753863419/1753863325_2552864_1374427878_ef8fc1373879c47d7348c80ed1656430_rle_crop_3898149736_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/b194b53b04abc35ad5e8165615c9b4a3_29983517.png imagette254955441753863419 25495546 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374428044: '1753863204_2550107_1374427349_80f9ba5449d50c96b3ec3f8f0ea4d34b_rle_crop_3898149482_0.png', 1374428045: '1753863204_2550107_1374427311_cf878825e1c395ae56b34e061828f5e5_rle_crop_3898149492_0.png', 1374428107: '1753863325_2552864_1374427880_6dc6572fcb9c1ae59d5d8be60b7cda7b_rle_crop_3898149702_0.png', 1374428108: '1753863325_2552864_1374427879_cd1bb79ddd66292b0e227ab9f8fc9fd0_rle_crop_3898149727_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/464fd78fa32e165b2143879252f0a9d5_39077178.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/2a4b5a9016188487c45c285b3147e3ef_98663757.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/b924b5929e7fff5fc01648935b4ba50a_32666364.png change filename to text .imagette254955461753863420/ imagette254955461753863420/1753863325_2552864_1374427880_6dc6572fcb9c1ae59d5d8be60b7cda7b_rle_crop_3898149702_0.png.png imagette254955461753863420/1753863204_2550107_1374427311_cf878825e1c395ae56b34e061828f5e5_rle_crop_3898149492_0.png.png imagette254955461753863420/1753863325_2552864_1374427879_cd1bb79ddd66292b0e227ab9f8fc9fd0_rle_crop_3898149727_0.png.png imagette254955461753863420/1753863204_2550107_1374427349_80f9ba5449d50c96b3ec3f8f0ea4d34b_rle_crop_3898149482_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/84033bcb6e570788b17d3d1e0184d394_51166373.png imagette254955461753863420 25495538 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495538 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374428103: '1753863325_2552864_1374427880_6dc6572fcb9c1ae59d5d8be60b7cda7b_rle_crop_3898149706_0.png', 1374428104: '1753863325_2552864_1374427879_cd1bb79ddd66292b0e227ab9f8fc9fd0_rle_crop_3898149730_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/5678c20e01c9d686e2c685fc583cdd51_98436341.png change filename to text .imagette254955381753863420/ imagette254955381753863420/1753863325_2552864_1374427880_6dc6572fcb9c1ae59d5d8be60b7cda7b_rle_crop_3898149706_0.png.png imagette254955381753863420/1753863325_2552864_1374427879_cd1bb79ddd66292b0e227ab9f8fc9fd0_rle_crop_3898149730_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/cf3260fa888535b373441c784934a8a8_57298279.png imagette254955381753863420 25495540 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374427875: '1753863085_2546959_1374427038_bc20654a3a588b8e4d6ca0cb50ef5e09_rle_crop_3898148715_0.png', 1374427876: '1753863085_2546959_1374427035_b1d22d94e17528ec93fc119d7c88c64f_rle_crop_3898148729_0.png', 1374428041: '1753863204_2550107_1374427389_2d6ceaea1e44cea56b4779bbfe8caf1d_rle_crop_3898149446_0.png', 1374428042: '1753863204_2550107_1374427349_80f9ba5449d50c96b3ec3f8f0ea4d34b_rle_crop_3898149483_0.png', 1374428043: '1753863204_2550107_1374427311_cf878825e1c395ae56b34e061828f5e5_rle_crop_3898149495_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/6ea74bf93af0adf37bae99b9df029375_23690410.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/9e3cd9674c4750e1c47124de52b190f9_12912393.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/c6cee0c320828f0cdf975ec194353cf4_55155115.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/1c6b9f47b7c57b97ee58cf83e7ea94cb_5644649.png change filename to text .imagette254955401753863420/ imagette254955401753863420/1753863085_2546959_1374427038_bc20654a3a588b8e4d6ca0cb50ef5e09_rle_crop_3898148715_0.png.png imagette254955401753863420/1753863204_2550107_1374427349_80f9ba5449d50c96b3ec3f8f0ea4d34b_rle_crop_3898149483_0.png.png imagette254955401753863420/1753863204_2550107_1374427389_2d6ceaea1e44cea56b4779bbfe8caf1d_rle_crop_3898149446_0.png.png imagette254955401753863420/1753863204_2550107_1374427311_cf878825e1c395ae56b34e061828f5e5_rle_crop_3898149495_0.png.png imagette254955401753863420/1753863085_2546959_1374427035_b1d22d94e17528ec93fc119d7c88c64f_rle_crop_3898148729_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/93aa9d1122473e283ed5d00e374a256a_16807840.png imagette254955401753863420 25495547 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374427479: '1753862967_2543850_1374426867_e6d756cca6ff691b0d5f12bbd4aba710_rle_crop_3898148214_0.png', 1374427481: '1753862967_2543850_1374426860_1adc5b596207932c51219d222e51da3a_rle_crop_3898148253_0.png', 1374427859: '1753863085_2546959_1374427035_b1d22d94e17528ec93fc119d7c88c64f_rle_crop_3898148730_0.png', 1374427861: '1753863085_2546959_1374427033_411f0a0b52491cd9db3ef459bfeb7233_rle_crop_3898148738_0.png', 1374428038: '1753863204_2550107_1374427399_df8f2d466a61e9d40847979e3165375e_rle_crop_3898149430_0.png', 1374428039: '1753863204_2550107_1374427311_cf878825e1c395ae56b34e061828f5e5_rle_crop_3898149494_0.png', 1374428098: '1753863325_2552864_1374427880_6dc6572fcb9c1ae59d5d8be60b7cda7b_rle_crop_3898149705_0.png', 1374428099: '1753863325_2552864_1374427879_cd1bb79ddd66292b0e227ab9f8fc9fd0_rle_crop_3898149728_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/1a882838d5948ed3219e0763cc88291b_71036830.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/1c382024e0ce8d7eb22bc186adba19b8_51695321.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/00f394142ffdbcdd68f51416d10d66df_21300001.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/7f6f46f89a4ed206b329950ff0835a47_87622979.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/d897e2dd839016cc42d0b1cbdb0cbbe0_97150279.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/2f1fa8fc5cbbadc3d8acc8114f3d8625_86901301.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/3472961ec91bd613d2c9c0889b07e72a_94554851.png change filename to text .imagette254955471753863420/ imagette254955471753863420/1753863085_2546959_1374427035_b1d22d94e17528ec93fc119d7c88c64f_rle_crop_3898148730_0.png.png imagette254955471753863420/1753863325_2552864_1374427880_6dc6572fcb9c1ae59d5d8be60b7cda7b_rle_crop_3898149705_0.png.png imagette254955471753863420/1753863325_2552864_1374427879_cd1bb79ddd66292b0e227ab9f8fc9fd0_rle_crop_3898149728_0.png.png imagette254955471753863420/1753863204_2550107_1374427311_cf878825e1c395ae56b34e061828f5e5_rle_crop_3898149494_0.png.png imagette254955471753863420/1753862967_2543850_1374426860_1adc5b596207932c51219d222e51da3a_rle_crop_3898148253_0.png.png imagette254955471753863420/1753863204_2550107_1374427399_df8f2d466a61e9d40847979e3165375e_rle_crop_3898149430_0.png.png imagette254955471753863420/1753863085_2546959_1374427033_411f0a0b52491cd9db3ef459bfeb7233_rle_crop_3898148738_0.png.png imagette254955471753863420/1753862967_2543850_1374426867_e6d756cca6ff691b0d5f12bbd4aba710_rle_crop_3898148214_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/56c4720464749aba3daae2d2d77cc53a_81408327.png imagette254955471753863420 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25495527 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25495548,25495549,25495550,25495551,25495552,25495553,25495554,25495555,25495556,25495557,25495558,25495559?tags=papier,autre_refus,kraft,Carton_brun,mal_croppe,Carton_gris,metal,environnement,flou,cartonnette,plastique,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1374428083] : ('0.06516936520983498',) no score found for photo 1374428083 We are sending mail with results at report@fotonower.com refus_total : 0.06516936520983498 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495527 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_P25495527_30-07-2025_10_16_59.pdf results_Auto_P25495527_30-07-2025_10_16_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495527_30-07-2025_10_16_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25495527','results_Auto_P25495527_30-07-2025_10_16_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495527_30-07-2025_10_16_59.pdf','pdf','','0.12','0.06516936520983498') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25495527]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374428083] map_info['map_portfolio_photo'] : {25495527: [1374428083, 1374428054, 1374428052, 1374428050, 1374428049, 1374428048, 1374428046, 1374428017, 1374427893, 1374427881, 1374427880, 1374427879, 1374427878, 1374427877, 1374427611, 1374427574, 1374427570, 1374427558, 1374427552, 1374427511, 1374427483, 1374427412, 1374427407, 1374427399, 1374427389, 1374427349, 1374427311, 1374427038, 1374427035, 1374427033, 1374427032, 1374427030, 1374427027, 1374427005, 1374427001, 1374426998, 1374426997, 1374426995, 1374426983, 1374426870, 1374426867, 1374426866, 1374426864, 1374426862, 1374426860, 1374426770, 1374426767, 1374426766, 1374426764, 1374426754, 1374426741, 1374426726, 1374426721, 1374426719, 1374426718, 1374426715, 1374426712, 1374426497, 1374426473, 1374426442, 1374426403, 1374426356, 1374426319, 1374425837, 1374425183, 1374425141, 1374425093, 1374425040, 1374424978, 1374424923]} final : False mtd_id 4302 list_pids : [1374428083] 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, '3396384') ('4302', '25495527', '1374428083', None, None, None, None, None, '3396384') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '25495527', '1374428083', None, None, None, None, None, '3396384')] time used for this insertion : 0.01560211181640625 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.464693546295166 time spend to save output : 0.015753746032714844 total time spend for step 4 : 2.480447292327881 step5:split_time_score Wed Jul 30 10:17:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25495527'] 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 : [('25495527',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25495527) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374428083: {'path': 'temp/1753863419_320945_1374428083_b3bf9ced94b906dc5def9e18448224be.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 = 25495527; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25495527 group by h (('10', 70),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25495527 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 (25495527) 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 (25495527) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30072025 25495527 Nombre de photos uploadées : 70 / 23040 (0%) 30072025 25495527 Nombre de photos taguées (types de déchets): 0 / 70 (0%) 30072025 25495527 Nombre de photos taguées (volume) : 0 / 70 (0%) [{'photo_id': 1374425183, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/b6c3b689f69e5e9f1f97e6c872a858f1.jpg', 'username': None, 'uploaded_at': 1753862462, 'text': 'image_30072025_10_00_04_10152.jpg'}, {'photo_id': 1374425141, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/4db1aadfba924550b3e3b19135f786f3.jpg', 'username': None, 'uploaded_at': 1753862462, 'text': 'image_30072025_10_00_14_10137.jpg'}, {'photo_id': 1374425093, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/65069af590246f1e39a25ffc19317830.jpg', 'username': None, 'uploaded_at': 1753862462, 'text': 'image_30072025_10_00_25_10135.jpg'}, {'photo_id': 1374425040, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/30/1bf2ab01f88c25e2a7ee1ad8389f4cbc.jpg', 'username': None, 'uploaded_at': 1753862462, 'text': 'image_30072025_10_00_34_9126.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ?????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003937721252441406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25495527, '2025-07-30' ) 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-07-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2027315,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20395517349243164 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= 2027315 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25479976, 'dashboard_result_id': 13352560, '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_P25479976_30-07-2025_06_35_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25480144, 'dashboard_result_id': 13352561, '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_P25480144_30-07-2025_06_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25480540, 'dashboard_result_id': 13352562, '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_P25480540_30-07-2025_06_36_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25480974, 'dashboard_result_id': 13352563, '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_P25480974_30-07-2025_06_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25481445, 'dashboard_result_id': 13352564, '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_P25481445_30-07-2025_06_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25482072, 'dashboard_result_id': 13352565, '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_P25482072_30-07-2025_06_38_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25482427, 'dashboard_result_id': 13352566, '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_P25482427_30-07-2025_06_39_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25482774, 'dashboard_result_id': 13352567, '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_P25482774_30-07-2025_06_40_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25483286, 'dashboard_result_id': 13352568, '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_P25483286_30-07-2025_06_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25483646, 'dashboard_result_id': 13352569, '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_P25483646_30-07-2025_06_40_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25483956, 'dashboard_result_id': 13352570, '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_P25483956_30-07-2025_06_41_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25484328, 'dashboard_result_id': 13352571, '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_P25484328_30-07-2025_06_42_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25484572, 'dashboard_result_id': 13352572, '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_P25484572_30-07-2025_06_42_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25485118, 'dashboard_result_id': 13352573, '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_P25485118_30-07-2025_06_43_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25485550, 'dashboard_result_id': 13352574, '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_P25485550_30-07-2025_06_44_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25485885, 'dashboard_result_id': 13352575, '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_P25485885_30-07-2025_06_44_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25486150, 'dashboard_result_id': 13352576, '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_P25486150_30-07-2025_06_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25486575, 'dashboard_result_id': 13352577, '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_P25486575_30-07-2025_06_45_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486595, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25486903, 'dashboard_result_id': 13352578, '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_P25486903_30-07-2025_06_46_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486939, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25487222, 'dashboard_result_id': 13352579, '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_P25487222_30-07-2025_06_46_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487242, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25487542, 'dashboard_result_id': 13352580, '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_P25487542_30-07-2025_06_47_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487597, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25488105, 'dashboard_result_id': 13352581, '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_P25488105_30-07-2025_06_48_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488120, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25488405, 'dashboard_result_id': 13352582, '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_P25488405_30-07-2025_05_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488429, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25488777, 'dashboard_result_id': 13352583, '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_P25488777_30-07-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488792, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25489181, 'dashboard_result_id': 13352584, '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_P25489181_30-07-2025_06_17_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489197, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25489527, 'dashboard_result_id': 13352585, '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_P25489527_30-07-2025_06_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489539, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25489884, 'dashboard_result_id': 13352586, '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_P25489884_30-07-2025_06_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25489888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489899, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25490190, 'dashboard_result_id': 13352587, '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_P25490190_30-07-2025_07_01_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25490191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490202, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25490549, 'dashboard_result_id': 13352588, '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_P25490549_30-07-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25490570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490576, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25490989, 'dashboard_result_id': 13352589, '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_P25490989_30-07-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25491015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491026, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25491261, 'dashboard_result_id': 13352590, '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_P25491261_30-07-2025_07_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491277, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25491582, 'dashboard_result_id': 13352591, '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_P25491582_30-07-2025_08_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491619, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25491851, 'dashboard_result_id': 13352592, '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_P25491851_30-07-2025_08_16_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491888, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25492444, 'dashboard_result_id': 13352593, '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_P25492444_30-07-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492456, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25492753, 'dashboard_result_id': 13352594, '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_P25492753_30-07-2025_08_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492789, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25493139, 'dashboard_result_id': 13352595, '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_P25493139_30-07-2025_09_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493207, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25493772, 'dashboard_result_id': 13352596, '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_P25493772_30-07-2025_09_16_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493824, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25494415, 'dashboard_result_id': 13352597, '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_P25494415_30-07-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25494420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494431, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25494860, 'dashboard_result_id': 13352598, '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_P25494860_30-07-2025_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25494896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494906, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25495225, 'dashboard_result_id': 13352599, '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_P25495225_30-07-2025_10_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495245, 'pht': 3726}}"}, {'dashboat_entry_day': 2027315, 'dashboard_run_id': 2037713, 'mtr_portfolio_id': 25495527, 'dashboard_result_id': 13352600, '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_P25495527_30-07-2025_10_15_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495547, '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 = 25479976 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': 3394534, 'mtr_portfolio_id': 25479976, 'created_at': datetime.datetime(2025, 7, 30, 6, 35, 40), 'result': '0.03451935459707663', 'result_long': None, 'result_double': None}] Qualite : 0.03451935459707663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25479976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_06_35_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25479976 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_P25479976_30-07-2025_06_35_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, 'pht': 3726}}" where mtr_portfolio_id = 25479976 and dashboard_run_id = 2037713 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`=25479976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352560, 0.03451935459707663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_06_35_43.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, '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 = 25480144 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': 3394535, 'mtr_portfolio_id': 25480144, 'created_at': datetime.datetime(2025, 7, 30, 6, 35, 56), 'result': '0.03664504757201986', 'result_long': None, 'result_double': None}] Qualite : 0.03664504757201986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_06_36_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480144 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_P25480144_30-07-2025_06_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, 'pht': 3726}}" where mtr_portfolio_id = 25480144 and dashboard_run_id = 2037713 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`=25480144 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352561, 0.03664504757201986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_06_36_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, '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 = 25480540 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': 3394536, 'mtr_portfolio_id': 25480540, 'created_at': datetime.datetime(2025, 7, 30, 6, 36, 30), 'result': '0.03073406846853507', 'result_long': None, 'result_double': None}] Qualite : 0.03073406846853507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480540_30-07-2025_06_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480540 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_P25480540_30-07-2025_06_36_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, 'pht': 3726}}" where mtr_portfolio_id = 25480540 and dashboard_run_id = 2037713 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`=25480540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352562, 0.03073406846853507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480540_30-07-2025_06_36_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, '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 = 25480974 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': 3394537, 'mtr_portfolio_id': 25480974, 'created_at': datetime.datetime(2025, 7, 30, 6, 37, 29), 'result': '0.03237570023229501', 'result_long': None, 'result_double': None}] Qualite : 0.03237570023229501 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25480974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480974_30-07-2025_06_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25480974 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_P25480974_30-07-2025_06_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, 'pht': 3726}}" where mtr_portfolio_id = 25480974 and dashboard_run_id = 2037713 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`=25480974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352563, 0.03237570023229501, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480974_30-07-2025_06_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, '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 = 25481445 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': 3394538, 'mtr_portfolio_id': 25481445, 'created_at': datetime.datetime(2025, 7, 30, 6, 37, 58), 'result': '0.02869571822244944', 'result_long': None, 'result_double': None}] Qualite : 0.02869571822244944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25481445 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25481445_30-07-2025_06_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25481445 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_P25481445_30-07-2025_06_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, 'pht': 3726}}" where mtr_portfolio_id = 25481445 and dashboard_run_id = 2037713 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`=25481445 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352564, 0.02869571822244944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25481445_30-07-2025_06_38_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, '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 = 25482072 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': 3394539, 'mtr_portfolio_id': 25482072, 'created_at': datetime.datetime(2025, 7, 30, 6, 38, 31), 'result': '0.02461677058410563', 'result_long': None, 'result_double': None}] Qualite : 0.02461677058410563 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482072_30-07-2025_06_38_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482072 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_P25482072_30-07-2025_06_38_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, 'pht': 3726}}" where mtr_portfolio_id = 25482072 and dashboard_run_id = 2037713 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`=25482072 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352565, 0.02461677058410563, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482072_30-07-2025_06_38_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, '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 = 25482427 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': 3394540, 'mtr_portfolio_id': 25482427, 'created_at': datetime.datetime(2025, 7, 30, 6, 39, 27), 'result': '0.027443203188583346', 'result_long': None, 'result_double': None}] Qualite : 0.027443203188583346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482427_30-07-2025_06_39_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482427 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_P25482427_30-07-2025_06_39_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, 'pht': 3726}}" where mtr_portfolio_id = 25482427 and dashboard_run_id = 2037713 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`=25482427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352566, 0.027443203188583346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482427_30-07-2025_06_39_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, '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 = 25482774 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': 3394541, 'mtr_portfolio_id': 25482774, 'created_at': datetime.datetime(2025, 7, 30, 6, 39, 58), 'result': '0.035568930806638456', 'result_long': None, 'result_double': None}] Qualite : 0.035568930806638456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25482774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482774_30-07-2025_06_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25482774 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_P25482774_30-07-2025_06_40_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, 'pht': 3726}}" where mtr_portfolio_id = 25482774 and dashboard_run_id = 2037713 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`=25482774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352567, 0.035568930806638456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482774_30-07-2025_06_40_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, '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 = 25483286 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': 3394542, 'mtr_portfolio_id': 25483286, 'created_at': datetime.datetime(2025, 7, 30, 6, 40, 30), 'result': '0.06036606587230913', 'result_long': None, 'result_double': None}] Qualite : 0.06036606587230913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483286_30-07-2025_06_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483286 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_P25483286_30-07-2025_06_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, 'pht': 3726}}" where mtr_portfolio_id = 25483286 and dashboard_run_id = 2037713 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`=25483286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352568, 0.06036606587230913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483286_30-07-2025_06_40_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, '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 = 25483646 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': 3394543, 'mtr_portfolio_id': 25483646, 'created_at': datetime.datetime(2025, 7, 30, 6, 40, 37), 'result': '0.0673795810394603', 'result_long': None, 'result_double': None}] Qualite : 0.0673795810394603 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483646_30-07-2025_06_40_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483646 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_P25483646_30-07-2025_06_40_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, 'pht': 3726}}" where mtr_portfolio_id = 25483646 and dashboard_run_id = 2037713 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`=25483646 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352569, 0.0673795810394603, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483646_30-07-2025_06_40_40.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25483651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483654, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483662, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483663, '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 = 25483956 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': 3394544, 'mtr_portfolio_id': 25483956, 'created_at': datetime.datetime(2025, 7, 30, 6, 41, 32), 'result': '0.041671998847643325', 'result_long': None, 'result_double': None}] Qualite : 0.041671998847643325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25483956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483956_30-07-2025_06_41_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25483956 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_P25483956_30-07-2025_06_41_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, 'pht': 3726}}" where mtr_portfolio_id = 25483956 and dashboard_run_id = 2037713 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`=25483956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352570, 0.041671998847643325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483956_30-07-2025_06_41_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25483957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483964, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483968, '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 = 25484328 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': 3394545, 'mtr_portfolio_id': 25484328, 'created_at': datetime.datetime(2025, 7, 30, 6, 42), 'result': '0.04847739858172795', 'result_long': None, 'result_double': None}] Qualite : 0.04847739858172795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25484328 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484328_30-07-2025_06_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25484328 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_P25484328_30-07-2025_06_42_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, 'pht': 3726}}" where mtr_portfolio_id = 25484328 and dashboard_run_id = 2037713 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`=25484328 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352571, 0.04847739858172795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484328_30-07-2025_06_42_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25484333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484335, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484344, '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 = 25484572 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': 3394546, 'mtr_portfolio_id': 25484572, 'created_at': datetime.datetime(2025, 7, 30, 6, 42, 28), 'result': '0.026403362924540007', 'result_long': None, 'result_double': None}] Qualite : 0.026403362924540007 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25484572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484572_30-07-2025_06_42_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25484572 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_P25484572_30-07-2025_06_42_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, 'pht': 3726}}" where mtr_portfolio_id = 25484572 and dashboard_run_id = 2037713 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`=25484572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352572, 0.026403362924540007, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25484572_30-07-2025_06_42_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25484582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25484583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25484584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25484585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25484586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25484587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25484588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25484589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25484590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25484591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25484592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25484593, '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 = 25485118 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': 3394547, 'mtr_portfolio_id': 25485118, 'created_at': datetime.datetime(2025, 7, 30, 6, 43, 27), 'result': '0.04199806887953368', 'result_long': None, 'result_double': None}] Qualite : 0.04199806887953368 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485118_30-07-2025_06_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485118 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_P25485118_30-07-2025_06_43_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, 'pht': 3726}}" where mtr_portfolio_id = 25485118 and dashboard_run_id = 2037713 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`=25485118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352573, 0.04199806887953368, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485118_30-07-2025_06_43_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25485136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485138, '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 = 25485550 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': 3394548, 'mtr_portfolio_id': 25485550, 'created_at': datetime.datetime(2025, 7, 30, 6, 44, 1), 'result': '0.00940761595292549', 'result_long': None, 'result_double': None}] Qualite : 0.00940761595292549 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485550_30-07-2025_06_44_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485550 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_P25485550_30-07-2025_06_44_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, 'pht': 3726}}" where mtr_portfolio_id = 25485550 and dashboard_run_id = 2037713 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`=25485550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352574, 0.00940761595292549, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485550_30-07-2025_06_44_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485567, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485570, '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 = 25485885 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': 3394549, 'mtr_portfolio_id': 25485885, 'created_at': datetime.datetime(2025, 7, 30, 6, 44, 27), 'result': '0.0737239971511342', 'result_long': None, 'result_double': None}] Qualite : 0.0737239971511342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25485885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485885_30-07-2025_06_44_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25485885 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_P25485885_30-07-2025_06_44_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, 'pht': 3726}}" where mtr_portfolio_id = 25485885 and dashboard_run_id = 2037713 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`=25485885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352575, 0.0737239971511342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25485885_30-07-2025_06_44_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25485894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25485895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25485896, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25485897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25485898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25485899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25485900, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25485901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25485902, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25485903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25485904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25485905, '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 = 25486150 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': 3394550, 'mtr_portfolio_id': 25486150, 'created_at': datetime.datetime(2025, 7, 30, 6, 45, 27), 'result': '0.06050800799818245', 'result_long': None, 'result_double': None}] Qualite : 0.06050800799818245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25486150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486150_30-07-2025_06_45_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25486150 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_P25486150_30-07-2025_06_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, 'pht': 3726}}" where mtr_portfolio_id = 25486150 and dashboard_run_id = 2037713 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`=25486150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352576, 0.06050800799818245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486150_30-07-2025_06_45_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486176, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486180, '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 = 25486575 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': 3394551, 'mtr_portfolio_id': 25486575, 'created_at': datetime.datetime(2025, 7, 30, 6, 45, 36), 'result': '0.01992595296241453', 'result_long': None, 'result_double': None}] Qualite : 0.01992595296241453 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25486575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486575_30-07-2025_06_45_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25486575 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_P25486575_30-07-2025_06_45_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486595, 'pht': 3726}}" where mtr_portfolio_id = 25486575 and dashboard_run_id = 2037713 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`=25486575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352577, 0.01992595296241453, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486575_30-07-2025_06_45_39.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486595, '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 = 25486903 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': 3394552, 'mtr_portfolio_id': 25486903, 'created_at': datetime.datetime(2025, 7, 30, 6, 45, 57), 'result': '0.02937322358798463', 'result_long': None, 'result_double': None}] Qualite : 0.02937322358798463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25486903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486903_30-07-2025_06_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25486903 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_P25486903_30-07-2025_06_46_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486939, 'pht': 3726}}" where mtr_portfolio_id = 25486903 and dashboard_run_id = 2037713 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`=25486903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352578, 0.02937322358798463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25486903_30-07-2025_06_46_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25486928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25486929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25486930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25486931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25486932, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25486933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25486934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25486935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25486936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25486937, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25486938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25486939, '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 = 25487222 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': 3394553, 'mtr_portfolio_id': 25487222, 'created_at': datetime.datetime(2025, 7, 30, 6, 46, 31), 'result': '0.1079298888596298', 'result_long': None, 'result_double': None}] Qualite : 0.1079298888596298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25487222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487222_30-07-2025_06_46_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25487222 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_P25487222_30-07-2025_06_46_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487242, 'pht': 3726}}" where mtr_portfolio_id = 25487222 and dashboard_run_id = 2037713 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`=25487222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352579, 0.1079298888596298, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487222_30-07-2025_06_46_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487242, '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 = 25487542 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': 3394554, 'mtr_portfolio_id': 25487542, 'created_at': datetime.datetime(2025, 7, 30, 6, 47, 32), 'result': '0.04919211086913888', 'result_long': None, 'result_double': None}] Qualite : 0.04919211086913888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25487542 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487542_30-07-2025_06_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25487542 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_P25487542_30-07-2025_06_47_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487597, 'pht': 3726}}" where mtr_portfolio_id = 25487542 and dashboard_run_id = 2037713 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`=25487542 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352580, 0.04919211086913888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25487542_30-07-2025_06_47_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25487586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25487587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25487588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25487589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25487590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25487591, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25487592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25487593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25487594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25487595, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25487596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25487597, '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 = 25488105 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': 3394555, 'mtr_portfolio_id': 25488105, 'created_at': datetime.datetime(2025, 7, 30, 6, 47, 59), 'result': '0.049854037341182884', 'result_long': None, 'result_double': None}] Qualite : 0.049854037341182884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25488105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488105_30-07-2025_06_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25488105 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_P25488105_30-07-2025_06_48_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488120, 'pht': 3726}}" where mtr_portfolio_id = 25488105 and dashboard_run_id = 2037713 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`=25488105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352581, 0.049854037341182884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488105_30-07-2025_06_48_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488120, '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 = 25488405 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': 3394434, 'mtr_portfolio_id': 25488405, 'created_at': datetime.datetime(2025, 7, 30, 5, 47), 'result': '0.04376102654571132', 'result_long': None, 'result_double': None}] Qualite : 0.04376102654571132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25488405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488405_30-07-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25488405 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_P25488405_30-07-2025_05_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488429, 'pht': 3726}}" where mtr_portfolio_id = 25488405 and dashboard_run_id = 2037713 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`=25488405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352582, 0.04376102654571132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488405_30-07-2025_05_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488414, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488419, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488429, '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 = 25488777 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': 3394652, 'mtr_portfolio_id': 25488777, 'created_at': datetime.datetime(2025, 7, 30, 6, 2, 58), 'result': '0.04996696609710109', 'result_long': None, 'result_double': None}] Qualite : 0.04996696609710109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25488777 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488777_30-07-2025_06_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25488777 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_P25488777_30-07-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488792, 'pht': 3726}}" where mtr_portfolio_id = 25488777 and dashboard_run_id = 2037713 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`=25488777 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352583, 0.04996696609710109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25488777_30-07-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25488781, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25488782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25488783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25488784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25488785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25488786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25488787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25488788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25488789, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25488790, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25488791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25488792, '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 = 25489181 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': 3394753, 'mtr_portfolio_id': 25489181, 'created_at': datetime.datetime(2025, 7, 30, 6, 17, 34), 'result': '0.049704741373645785', 'result_long': None, 'result_double': None}] Qualite : 0.049704741373645785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25489181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489181_30-07-2025_06_17_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25489181 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_P25489181_30-07-2025_06_17_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489197, 'pht': 3726}}" where mtr_portfolio_id = 25489181 and dashboard_run_id = 2037713 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`=25489181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352584, 0.049704741373645785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489181_30-07-2025_06_17_35.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489190, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489191, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489193, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489197, '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 = 25489527 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': 3394819, 'mtr_portfolio_id': 25489527, 'created_at': datetime.datetime(2025, 7, 30, 6, 33, 29), 'result': '0.05408252116947864', 'result_long': None, 'result_double': None}] Qualite : 0.05408252116947864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25489527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489527_30-07-2025_06_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25489527 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_P25489527_30-07-2025_06_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489539, 'pht': 3726}}" where mtr_portfolio_id = 25489527 and dashboard_run_id = 2037713 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`=25489527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352585, 0.05408252116947864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489527_30-07-2025_06_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25489535, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489539, '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 = 25489884 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': 3394893, 'mtr_portfolio_id': 25489884, 'created_at': datetime.datetime(2025, 7, 30, 6, 47, 27), 'result': '0.05810583847315051', 'result_long': None, 'result_double': None}] Qualite : 0.05810583847315051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25489884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489884_30-07-2025_06_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25489884 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_P25489884_30-07-2025_06_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25489888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489899, 'pht': 3726}}" where mtr_portfolio_id = 25489884 and dashboard_run_id = 2037713 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`=25489884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352586, 0.05810583847315051, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25489884_30-07-2025_06_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25489888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25489889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25489890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25489891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25489892, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25489893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25489894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25489895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25489896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25489897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25489898, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25489899, '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 = 25490190 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': 3394963, 'mtr_portfolio_id': 25490190, 'created_at': datetime.datetime(2025, 7, 30, 7, 1, 1), 'result': '0.047138625556918015', 'result_long': None, 'result_double': None}] Qualite : 0.047138625556918015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25490190 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490190_30-07-2025_07_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25490190 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_P25490190_30-07-2025_07_01_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25490191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490202, 'pht': 3726}}" where mtr_portfolio_id = 25490190 and dashboard_run_id = 2037713 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`=25490190 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352587, 0.047138625556918015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490190_30-07-2025_07_01_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25490191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490201, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490202, '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 = 25490549 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': 3395061, 'mtr_portfolio_id': 25490549, 'created_at': datetime.datetime(2025, 7, 30, 7, 19), 'result': '0.03174586237778476', 'result_long': None, 'result_double': None}] Qualite : 0.03174586237778476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25490549 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490549_30-07-2025_07_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25490549 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_P25490549_30-07-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25490570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490576, 'pht': 3726}}" where mtr_portfolio_id = 25490549 and dashboard_run_id = 2037713 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`=25490549 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352588, 0.03174586237778476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490549_30-07-2025_07_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25490565, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25490566, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25490567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25490568, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25490569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25490570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25490571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25490572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25490573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25490574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25490575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25490576, '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 = 25490989 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': 3395159, 'mtr_portfolio_id': 25490989, 'created_at': datetime.datetime(2025, 7, 30, 7, 30, 57), 'result': '0.09657178697817131', 'result_long': None, 'result_double': None}] Qualite : 0.09657178697817131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25490989 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490989_30-07-2025_07_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25490989 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_P25490989_30-07-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25491015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491026, 'pht': 3726}}" where mtr_portfolio_id = 25490989 and dashboard_run_id = 2037713 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`=25490989 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352589, 0.09657178697817131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25490989_30-07-2025_07_30_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25491015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491020, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491025, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491026, '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 = 25491261 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': 3395235, 'mtr_portfolio_id': 25491261, 'created_at': datetime.datetime(2025, 7, 30, 7, 46, 59), 'result': '0.033857557928719716', 'result_long': None, 'result_double': None}] Qualite : 0.033857557928719716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25491261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491261_30-07-2025_07_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25491261 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_P25491261_30-07-2025_07_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491277, 'pht': 3726}}" where mtr_portfolio_id = 25491261 and dashboard_run_id = 2037713 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`=25491261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352590, 0.033857557928719716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491261_30-07-2025_07_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491277, '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 = 25491582 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': 3395334, 'mtr_portfolio_id': 25491582, 'created_at': datetime.datetime(2025, 7, 30, 8, 2, 58), 'result': '0.04469105505580487', 'result_long': None, 'result_double': None}] Qualite : 0.04469105505580487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25491582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491582_30-07-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25491582 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_P25491582_30-07-2025_08_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491619, 'pht': 3726}}" where mtr_portfolio_id = 25491582 and dashboard_run_id = 2037713 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`=25491582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352591, 0.04469105505580487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491582_30-07-2025_08_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491613, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491619, '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 = 25491851 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': 3395436, 'mtr_portfolio_id': 25491851, 'created_at': datetime.datetime(2025, 7, 30, 8, 16, 31), 'result': '0.053902655910142094', 'result_long': None, 'result_double': None}] Qualite : 0.053902655910142094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25491851 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491851_30-07-2025_08_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25491851 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_P25491851_30-07-2025_08_16_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491888, 'pht': 3726}}" where mtr_portfolio_id = 25491851 and dashboard_run_id = 2037713 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`=25491851 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352592, 0.053902655910142094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25491851_30-07-2025_08_16_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25491877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25491878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25491879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25491880, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25491881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25491882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25491883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25491884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25491885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25491886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25491887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25491888, '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 = 25492444 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': 3395547, 'mtr_portfolio_id': 25492444, 'created_at': datetime.datetime(2025, 7, 30, 8, 32, 59), 'result': '0.05356137486829114', 'result_long': None, 'result_double': None}] Qualite : 0.05356137486829114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25492444 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492444_30-07-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25492444 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_P25492444_30-07-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492456, 'pht': 3726}}" where mtr_portfolio_id = 25492444 and dashboard_run_id = 2037713 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`=25492444 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352593, 0.05356137486829114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492444_30-07-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492448, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492455, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492456, '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 = 25492753 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': 3395652, 'mtr_portfolio_id': 25492753, 'created_at': datetime.datetime(2025, 7, 30, 8, 46, 57), 'result': '0.03498319511776285', 'result_long': None, 'result_double': None}] Qualite : 0.03498319511776285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25492753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492753_30-07-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25492753 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_P25492753_30-07-2025_08_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492789, 'pht': 3726}}" where mtr_portfolio_id = 25492753 and dashboard_run_id = 2037713 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`=25492753 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352594, 0.03498319511776285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25492753_30-07-2025_08_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25492778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25492779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25492780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25492781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25492782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25492783, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25492784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25492785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25492786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25492787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25492788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25492789, '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 = 25493139 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': 3395793, 'mtr_portfolio_id': 25493139, 'created_at': datetime.datetime(2025, 7, 30, 9, 0, 56), 'result': '0.07371516384188316', 'result_long': None, 'result_double': None}] Qualite : 0.07371516384188316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25493139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493139_30-07-2025_09_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25493139 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_P25493139_30-07-2025_09_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493207, 'pht': 3726}}" where mtr_portfolio_id = 25493139 and dashboard_run_id = 2037713 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`=25493139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352595, 0.07371516384188316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493139_30-07-2025_09_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493196, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493199, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493200, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493201, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493203, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493207, '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 = 25493772 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': 3395952, 'mtr_portfolio_id': 25493772, 'created_at': datetime.datetime(2025, 7, 30, 9, 16, 30), 'result': '0.03456542358178976', 'result_long': None, 'result_double': None}] Qualite : 0.03456542358178976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25493772 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493772_30-07-2025_09_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25493772 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_P25493772_30-07-2025_09_16_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493824, 'pht': 3726}}" where mtr_portfolio_id = 25493772 and dashboard_run_id = 2037713 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`=25493772 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352596, 0.03456542358178976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25493772_30-07-2025_09_16_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25493813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25493814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25493815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25493816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25493817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25493818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25493819, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25493821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25493822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25493823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25493824, '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 = 25494415 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': 3396058, 'mtr_portfolio_id': 25494415, 'created_at': datetime.datetime(2025, 7, 30, 9, 32, 58), 'result': '0.05836133942362286', 'result_long': None, 'result_double': None}] Qualite : 0.05836133942362286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25494415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494415_30-07-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25494415 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_P25494415_30-07-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25494420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494431, 'pht': 3726}}" where mtr_portfolio_id = 25494415 and dashboard_run_id = 2037713 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`=25494415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352597, 0.05836133942362286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494415_30-07-2025_09_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25494420, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494422, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494426, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494431, '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 = 25494860 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': 3396165, 'mtr_portfolio_id': 25494860, 'created_at': datetime.datetime(2025, 7, 30, 9, 46, 58), 'result': '0.07321217713720464', 'result_long': None, 'result_double': None}] Qualite : 0.07321217713720464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25494860 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494860_30-07-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25494860 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_P25494860_30-07-2025_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25494896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494906, 'pht': 3726}}" where mtr_portfolio_id = 25494860 and dashboard_run_id = 2037715 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`=25494860 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352598, 0.07321217713720464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25494860_30-07-2025_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25494895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25494896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25494897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25494898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25494899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25494900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25494901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25494902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25494903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25494904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25494905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25494906, '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 = 25495225 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': 3396278, 'mtr_portfolio_id': 25495225, 'created_at': datetime.datetime(2025, 7, 30, 10, 0, 58), 'result': '0.04148593058404206', 'result_long': None, 'result_double': None}] Qualite : 0.04148593058404206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25495225 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495225_30-07-2025_10_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25495225 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_P25495225_30-07-2025_10_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495245, 'pht': 3726}}" where mtr_portfolio_id = 25495225 and dashboard_run_id = 2037715 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`=25495225 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352599, 0.04148593058404206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495225_30-07-2025_10_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495243, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495245, '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 = 25495527 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': 3396384, 'mtr_portfolio_id': 25495527, 'created_at': datetime.datetime(2025, 7, 30, 10, 16, 59), 'result': '0.06516936520983498', 'result_long': None, 'result_double': None}] Qualite : 0.06516936520983498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25495527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495527_30-07-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25495527 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_P25495527_30-07-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495547, 'pht': 3726}}" where mtr_portfolio_id = 25495527 and dashboard_run_id = 2037715 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`=25495527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13352600, 0.06516936520983498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25495527_30-07-2025_10_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25495535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25495536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25495537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25495538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25495539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25495540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25495541, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25495542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25495543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25495544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25495546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25495547, '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 (25479976,25480144,25480540,25480974,25481445,25482072,25482427,25482774,25483286,25483646,25483956,25484328,25484572,25485118,25485550,25485885,25486150,25486575,25486903,25487222,25487542,25488105,25488405,25488777,25489181,25489527,25489884,25490190,25490549,25490989,25491261,25491582,25491851,25492444,25492753,25493139,25493772,25494415,25494860,25495225,25495527) result : ((1374372764,), (1374372795,), (1374372823,), (1374372841,), (1374372865,), (1374373025,), (1374373026,), (1374373027,), (1374373028,), (1374373029,), (1374373031,), (1374373050,), (1374373051,), (1374373052,), (1374373053,), (1374373055,), (1374373057,), (1374373069,), (1374373070,), (1374373071,), (1374373072,), (1374373073,), (1374373075,), (1374373102,), (1374373108,), (1374373109,), (1374373110,), (1374373112,), (1374373114,), (1374373138,), (1374373140,), (1374373142,), (1374373145,), (1374373149,), (1374373151,), (1374373154,), (1374373156,), (1374373157,), (1374373158,), (1374373159,), (1374373162,), (1374373166,), (1374373176,), (1374373177,), (1374373178,), (1374373179,), (1374373181,), (1374373182,), (1374373221,), (1374373240,), (1374373241,), (1374373243,), (1374373245,), (1374373248,), (1374373252,), (1374373332,), (1374373334,), (1374373335,), (1374373350,), (1374373364,), (1374373366,), (1374373391,), (1374373397,), (1374373403,), (1374373404,), (1374373405,), (1374373408,), (1374373417,), (1374373418,), (1374373419,), (1374373420,), (1374373422,), (1374373424,), (1374373448,), (1374373452,), (1374373453,), (1374373454,), (1374373455,), (1374373457,), (1374373479,), (1374373480,), (1374373482,), (1374373483,), (1374373484,), (1374373486,), (1374373502,), (1374373508,), (1374373515,), (1374373516,), (1374373518,), (1374373519,), (1374373535,), (1374373537,), (1374373538,), (1374373539,), (1374373540,), (1374373542,), (1374373562,), (1374373567,), (1374373568,), (1374373569,), (1374373571,), (1374373574,), (1374373591,), (1374373627,), (1374373628,), (1374373629,), (1374373630,), (1374373633,), (1374373635,), (1374373641,), (1374373642,), (1374373643,), (1374373644,), (1374373646,), (1374373647,), (1374373665,), (1374373671,), (1374373678,), (1374373679,), (1374373680,), (1374373682,), (1374373693,), (1374373694,), (1374373695,), (1374373696,), (1374373698,), (1374373700,), (1374373710,), (1374373718,), (1374373724,), (1374373725,), (1374373727,), (1374373728,), (1374373752,), (1374373753,), (1374373754,), (1374373755,), (1374373757,), (1374373759,), (1374373771,), (1374373781,), (1374373782,), (1374373783,), (1374373785,), (1374373787,), (1374373794,), (1374373795,), (1374373796,), (1374373797,), (1374373798,), (1374373800,), (1374373826,), (1374373828,), (1374373829,), (1374373831,), (1374373834,), (1374373837,), (1374373843,), (1374373844,), (1374373845,), (1374373846,), (1374373848,), (1374373850,), (1374373898,), (1374373910,), (1374373912,), (1374373914,), (1374373915,), (1374373917,), (1374373919,), (1374373928,), (1374373930,), (1374373932,), (1374373933,), (1374373935,), (1374373937,), (1374373944,), (1374373955,), (1374373966,), (1374373967,), (1374373968,), (1374373971,), (1374373984,), (1374373994,), (1374373996,), (1374373997,), (1374373998,), (1374374000,), (1374374010,), (1374374012,), (1374374013,), (1374374014,), (1374374015,), (1374374017,), (1374374039,), (1374374045,), (1374374047,), (1374374048,), (1374374049,), (1374374051,), (1374374061,), (1374374068,), (1374374075,), (1374374077,), (1374374079,), (1374374082,), (1374374104,), (1374374105,), (1374374106,), (1374374108,), (1374374111,), (1374374115,), (1374374123,), (1374374130,), (1374374162,), (1374374169,), (1374374171,), (1374374172,), (1374374174,), (1374374177,), (1374374197,), (1374374222,), (1374374231,), (1374374232,), (1374374234,), (1374374235,), (1374374237,), (1374374249,), (1374374250,), (1374374252,), (1374374253,), (1374374254,), (1374374256,), (1374374283,), (1374374284,), (1374374286,), (1374374288,), (1374374291,), (1374374300,), (1374374320,), (1374374327,), (1374374328,), (1374374329,), (1374374331,), (1374374332,), (1374374356,), (1374374363,), (1374374364,), (1374374365,), (1374374367,), (1374374370,), (1374374378,), (1374374379,), (1374374380,), (1374374381,), (1374374383,), (1374374385,), (1374374400,), (1374374407,), (1374374408,), (1374374409,), (1374374411,), (1374374414,), (1374374469,), (1374374502,), (1374374508,), (1374374511,), (1374374512,), (1374374515,), (1374374518,), (1374374530,), (1374374540,), (1374374546,), (1374374547,), (1374374549,), (1374374551,), (1374374572,), (1374374581,), (1374374582,), (1374374583,), (1374374584,), (1374374586,), (1374374607,), (1374374616,), (1374374618,), (1374374619,), (1374374621,), (1374374624,), (1374374634,), (1374374635,), (1374374636,), (1374374637,), (1374374639,), (1374374642,), (1374374669,), (1374374670,), (1374374671,), (1374374672,), (1374374674,), (1374374676,), (1374374688,), (1374374689,), (1374374699,), (1374374724,), (1374374748,), (1374374775,), (1374375287,), (1374375321,), (1374375366,), (1374375412,), (1374375464,), (1374375515,), (1374376023,), (1374376385,), (1374376395,), (1374376422,), (1374376434,), (1374376435,), (1374376436,), (1374376460,), (1374376464,), (1374376465,), (1374376466,), (1374376468,), (1374376471,), (1374376491,), (1374376492,), (1374376493,), (1374376494,), (1374376496,), (1374376499,), (1374376506,), (1374376507,), (1374376508,), (1374376509,), (1374376511,), (1374376514,), (1374376532,), (1374376533,), (1374376534,), (1374376535,), (1374376537,), (1374376538,), (1374376576,), (1374376582,), (1374376583,), (1374376584,), (1374376586,), (1374376589,), (1374376597,), (1374376604,), (1374376610,), (1374376611,), (1374376613,), (1374376616,), (1374376643,), (1374376661,), (1374376666,), (1374376667,), (1374376668,), (1374376670,), (1374376672,), (1374376727,), (1374376742,), (1374376752,), (1374376757,), (1374376758,), (1374376760,), (1374376763,), (1374376778,), (1374376787,), (1374376788,), (1374376789,), (1374376790,), (1374376793,), (1374376802,), (1374376813,), (1374376819,), (1374376820,), (1374376821,), (1374376824,), (1374376837,), (1374376845,), (1374376856,), (1374376857,), (1374376858,), (1374376860,), (1374376885,), (1374376891,), (1374376892,), (1374376893,), (1374376895,), (1374376898,), (1374376926,), (1374376927,), (1374376928,), (1374376929,), (1374376931,), (1374376933,), (1374376951,), (1374376957,), (1374376958,), (1374376959,), (1374376961,), (1374376964,), (1374376980,), (1374376983,), (1374376984,), (1374376985,), (1374376986,), (1374376988,), (1374377005,), (1374377017,), (1374377018,), (1374377019,), (1374377021,), (1374377023,), (1374377029,), (1374377050,), (1374377058,), (1374377063,), (1374377064,), (1374377065,), (1374377067,), (1374377086,), (1374377092,), (1374377093,), (1374377094,), (1374377095,), (1374377097,), (1374377110,), (1374377120,), (1374377121,), (1374377122,), (1374377123,), (1374377125,), (1374377142,), (1374377148,), (1374377149,), (1374377150,), (1374377151,), (1374377154,), (1374377174,), (1374377175,), (1374377176,), (1374377177,), (1374377179,), (1374377181,), (1374377199,), (1374377207,), (1374377208,), (1374377209,), (1374377211,), (1374377213,), (1374377230,), (1374377235,), (1374377236,), (1374377237,), (1374377239,), (1374377242,), (1374377252,), (1374377253,), (1374377254,), (1374377255,), (1374377257,), (1374377258,), (1374377271,), (1374377272,), (1374377274,), (1374377275,), (1374377277,), (1374377280,), (1374377323,), (1374377331,), (1374377332,), (1374377333,), (1374377337,), (1374377346,), (1374377347,), (1374377359,), (1374377360,), (1374377361,), (1374377362,), (1374377363,), (1374377365,), (1374377378,), (1374377379,), (1374377380,), (1374377381,), (1374377382,), (1374377383,), (1374377403,), (1374377409,), (1374377410,), (1374377411,), (1374377413,), (1374377415,), (1374377425,), (1374377426,), (1374377427,), (1374377428,), (1374377429,), (1374377432,), (1374377453,), (1374377454,), (1374377455,), (1374377456,), (1374377457,), (1374377460,), (1374377483,), (1374377491,), (1374377501,), (1374377507,), (1374377508,), (1374377509,), (1374377511,), (1374377517,), (1374377518,), (1374377527,), (1374377532,), (1374377533,), (1374377535,), (1374377550,), (1374377574,), (1374377581,), (1374377587,), (1374377588,), (1374377589,), (1374377591,), (1374377599,), (1374377600,), (1374377609,), (1374377615,), (1374377616,), (1374377618,), (1374377625,), (1374377632,), (1374377638,), (1374377639,), (1374377641,), (1374377643,), (1374377649,), (1374377650,), (1374377651,), (1374377653,), (1374377655,), (1374377657,), (1374377664,), (1374377665,), (1374377674,), (1374377678,), (1374377680,), (1374377682,), (1374377722,), (1374377724,), (1374377725,), (1374377726,), (1374377728,), (1374377730,), (1374377738,), (1374377745,), (1374377747,), (1374377748,), (1374377749,), (1374377751,), (1374377753,), (1374377768,), (1374377774,), (1374377775,), (1374377776,), (1374377777,), (1374377778,), (1374377797,), (1374377827,), (1374377833,), (1374377834,), (1374377835,), (1374377837,), (1374377839,), (1374377848,), (1374377870,), (1374377871,), (1374377872,), (1374377874,), (1374377876,), (1374377878,), (1374377896,), (1374377897,), (1374377898,), (1374377899,), (1374377901,), (1374377903,), (1374377910,), (1374377911,), (1374377912,), (1374377913,), (1374377915,), (1374377917,), (1374377926,), (1374377927,), (1374377944,), (1374377966,), (1374377989,), (1374378012,), (1374378259,), (1374378261,), (1374378262,), (1374378279,), (1374378304,), (1374378327,), (1374379312,), (1374379727,), (1374379757,), (1374379758,), (1374379759,), (1374379761,), (1374379763,), (1374379766,), (1374379776,), (1374379810,), (1374379816,), (1374379819,), (1374379820,), (1374379822,), (1374379824,), (1374379833,), (1374379940,), (1374379961,), (1374379988,), (1374380011,), (1374380039,), (1374380063,), (1374380231,), (1374380233,), (1374380234,), (1374380235,), (1374380237,), (1374380239,), (1374380253,), (1374380261,), (1374380265,), (1374380266,), (1374380268,), (1374380271,), (1374380283,), (1374380284,), (1374380285,), (1374380286,), (1374380287,), (1374380289,), (1374380306,), (1374380315,), (1374380318,), (1374380319,), (1374380321,), (1374380323,), (1374380336,), (1374380350,), (1374380357,), (1374380363,), (1374380372,), (1374380376,), (1374380377,), (1374380381,), (1374380382,), (1374380383,), (1374380384,), (1374380385,), (1374380387,), (1374380404,), (1374380409,), (1374380410,), (1374380417,), (1374380419,), (1374380422,), (1374380434,), (1374380435,), (1374380436,), (1374380438,), (1374380440,), (1374380442,), (1374389470,), (1374380452,), (1374380459,), (1374380465,), (1374380467,), (1374380469,), (1374380472,), (1374380506,), (1374380525,), (1374380534,), (1374380539,), (1374380540,), (1374380542,), (1374380545,), (1374380559,), (1374380560,), (1374380561,), (1374380562,), (1374380564,), (1374380567,), (1374380581,), (1374380582,), (1374380583,), (1374380584,), (1374380586,), (1374380589,), (1374380601,), (1374380622,), (1374380623,), (1374380624,), (1374380625,), (1374380627,), (1374380630,), (1374380649,), (1374380686,), (1374380687,), (1374380688,), (1374380689,), (1374380691,), (1374380694,), (1374380705,), (1374380706,), (1374380707,), (1374380708,), (1374380709,), (1374380711,), (1374380727,), (1374380728,), (1374380734,), (1374380735,), (1374380737,), (1374380740,), (1374380743,), (1374380744,), (1374380745,), (1374380746,), (1374380747,), (1374380749,), (1374380766,), (1374380769,), (1374380770,), (1374380771,), (1374380773,), (1374380776,), (1374380786,), (1374380792,), (1374380799,), (1374380800,), (1374380802,), (1374380803,), (1374380811,), (1374380819,), (1374380823,), (1374380824,), (1374380826,), (1374380830,), (1374380845,), (1374380877,), (1374380886,), (1374380891,), (1374380895,), (1374380896,), (1374380898,), (1374380910,), (1374380915,), (1374380916,), (1374380917,), (1374380918,), (1374380920,), (1374380933,), (1374380934,), (1374380935,), (1374380936,), (1374380938,), (1374380940,), (1374380950,), (1374380951,), (1374380952,), (1374380953,), (1374380955,), (1374380957,), (1374380972,), (1374380974,), (1374380975,), (1374380976,), (1374380978,), (1374380981,), (1374381008,), (1374381009,), (1374381010,), (1374381011,), (1374381013,), (1374381014,), (1374381029,), (1374381030,), (1374381031,), (1374381032,), (1374381034,), (1374381036,), (1374381052,), (1374381055,), (1374381056,), (1374381057,), (1374381058,), (1374381060,), (1374381070,), (1374381071,), (1374381072,), (1374381073,), (1374381075,), (1374381077,), (1374381086,), (1374381106,), (1374381107,), (1374381108,), (1374381109,), (1374381110,), (1374381111,), (1374381116,), (1374381124,), (1374381133,), (1374381136,), (1374381138,), (1374381141,), (1374381146,), (1374381154,), (1374381163,), (1374381164,), (1374381165,), (1374381167,), (1374381180,), (1374381181,), (1374381182,), (1374381184,), (1374381186,), (1374381188,), (1374381210,), (1374381216,), (1374381217,), (1374381218,), (1374381219,), (1374381221,), (1374381251,), (1374381258,), (1374381261,), (1374381262,), (1374381263,), (1374381264,), (1374381275,), (1374381276,), (1374381278,), (1374381280,), (1374381282,), (1374381285,), (1374381292,), (1374381293,), (1374381295,), (1374381297,), (1374381299,), (1374381301,), (1374381309,), (1374381319,), (1374381329,), (1374381337,), (1374381338,), (1374381339,), (1374381359,), (1374381393,), (1374381402,), (1374381404,), (1374381405,), (1374381406,), (1374381408,), (1374381424,), (1374381426,), (1374381428,), (1374381429,), (1374381430,), (1374381431,), (1374381450,), (1374381458,), (1374381460,), (1374381461,), (1374381462,), (1374381463,), (1374381478,), (1374381484,), (1374381486,), (1374381487,), (1374381488,), (1374381489,), (1374381502,), (1374381504,), (1374381505,), (1374381506,), (1374381507,), (1374381508,), (1374381546,), (1374381547,), (1374381548,), (1374381549,), (1374381550,), (1374381551,), (1374381558,), (1374381559,), (1374381560,), (1374381561,), (1374381563,), (1374381565,), (1374382034,), (1374382106,), (1374382175,), (1374382245,), (1374382325,), (1374382397,), (1374382995,), (1374382997,), (1374383000,), (1374383039,), (1374383086,), (1374383143,), (1374383518,), (1374383532,), (1374383553,), (1374383554,), (1374383555,), (1374383556,), (1374383557,), (1374383558,), (1374383571,), (1374383572,), (1374383573,), (1374383574,), (1374383575,), (1374383579,), (1374383600,), (1374383601,), (1374383602,), (1374383603,), (1374383604,), (1374383606,), (1374383635,), (1374383637,), (1374383639,), (1374383641,), (1374383644,), (1374383647,), (1374383663,), (1374383666,), (1374383668,), (1374383670,), (1374383672,), (1374383674,), (1374383692,), (1374383708,), (1374383710,), (1374383711,), (1374383712,), (1374383714,), (1374383717,), (1374383737,), (1374383756,), (1374383757,), (1374383758,), (1374383759,), (1374383760,), (1374383762,), (1374383777,), (1374383778,), (1374383779,), (1374383780,), (1374383782,), (1374383785,), (1374383798,), (1374383799,), (1374383800,), (1374383801,), (1374383802,), (1374383804,), (1374383820,), (1374383821,), (1374383823,), (1374383824,), (1374383825,), (1374383828,), (1374383838,), (1374383839,), (1374383840,), (1374383841,), (1374383843,), (1374383844,), (1374383856,), (1374383857,), (1374383858,), (1374383859,), (1374383861,), (1374383863,), (1374383877,), (1374383879,), (1374383880,), (1374383881,), (1374383883,), (1374383885,), (1374383891,), (1374383902,), (1374383911,), (1374383919,), (1374383920,), (1374383922,), (1374383924,), (1374383946,), (1374383980,), (1374383992,), (1374383997,), (1374383998,), (1374384000,), (1374384002,), (1374384017,), (1374384027,), (1374384032,), (1374384038,), (1374384039,), (1374384041,), (1374384053,), (1374384054,), (1374384055,), (1374384056,), (1374384057,), (1374384060,), (1374384076,), (1374384077,), (1374384078,), (1374384079,), (1374384081,), (1374384082,), (1374384103,), (1374384104,), (1374384105,), (1374384106,), (1374384108,), (1374384111,), (1374384142,), (1374384163,), (1374384170,), (1374384175,), (1374384176,), (1374384178,), (1374384180,), (1374384199,), (1374384207,), (1374384214,), (1374384215,), (1374384217,), (1374384219,), (1374384238,), (1374384248,), (1374384254,), (1374384255,), (1374384258,), (1374384261,), (1374384287,), (1374384309,), (1374384319,), (1374384325,), (1374384326,), (1374384327,), (1374384329,), (1374384341,), (1374384342,), (1374384343,), (1374384344,), (1374384345,), (1374384348,), (1374384363,), (1374384364,), (1374384365,), (1374384366,), (1374384368,), (1374384372,), (1374384379,), (1374384407,), (1374384409,), (1374384419,), (1374384422,), (1374384424,), (1374384425,), (1374384455,), (1374384456,), (1374384457,), (1374384458,), (1374384460,), (1374384462,), (1374384480,), (1374384483,), (1374384484,), (1374384485,), (1374384487,), (1374384490,), (1374384498,), (1374384505,), (1374384506,), (1374384507,), (1374384509,), (1374384511,), (1374384521,), (1374384527,), (1374384528,), (1374384529,), (1374384530,), (1374384532,), (1374384554,), (1374384555,), (1374384556,), (1374384557,), (1374384558,), (1374384560,), (1374384578,), (1374384585,), (1374384593,), (1374384597,), (1374384601,), (1374384605,), (1374384609,), (1374384612,), (1374384619,), (1374384620,), (1374384621,), (1374384624,), (1374384627,), (1374384641,), (1374384652,), (1374384653,), (1374384654,), (1374384655,), (1374384656,), (1374384659,), (1374384668,), (1374384669,), (1374384670,), (1374384671,), (1374384672,), (1374384674,), (1374384689,), (1374384690,), (1374384691,), (1374384692,), (1374384694,), (1374384696,), (1374384715,), (1374384717,), (1374384718,), (1374384719,), (1374384721,), (1374384723,), (1374384731,), (1374384732,), (1374384733,), (1374384734,), (1374384736,), (1374384738,), (1374384753,), (1374384794,), (1374384795,), (1374384796,), (1374384797,), (1374384799,), (1374384802,), (1374384809,), (1374384814,), (1374384815,), (1374384816,), (1374384817,), (1374384819,), (1374384822,), (1374384831,), (1374384849,), (1374384851,), (1374384855,), (1374384856,), (1374384857,), (1374384861,), (1374384878,), (1374384893,), (1374384894,), (1374384895,), (1374384896,), (1374384898,), (1374384900,), (1374385440,), (1374385481,), (1374385527,), (1374385561,), (1374385584,), (1374385607,), (1374386116,), (1374386597,), (1374386599,), (1374386600,), (1374386619,), (1374386640,), (1374386663,), (1374386845,), (1374386846,), (1374386847,), (1374386849,), (1374386851,), (1374386854,), (1374386870,), (1374386872,), (1374386873,), (1374386874,), (1374386875,), (1374386876,), (1374386886,), (1374386888,), (1374386889,), (1374386895,), (1374386896,), (1374386899,), (1374386924,), (1374386926,), (1374386928,), (1374386929,), (1374386930,), (1374386932,), (1374386967,), (1374386969,), (1374386971,), (1374386973,), (1374386976,), (1374386980,), (1374387001,), (1374387002,), (1374387003,), (1374387004,), (1374387005,), (1374387006,), (1374387017,), (1374387066,), (1374387067,), (1374387068,), (1374387069,), (1374387079,), (1374387088,), (1374387117,), (1374387137,), (1374387142,), (1374387143,), (1374387144,), (1374387146,), (1374387149,), (1374387161,), (1374387162,), (1374387163,), (1374387164,), (1374387173,), (1374387174,), (1374387187,), (1374387189,), (1374387191,), (1374387193,), (1374387199,), (1374387214,), (1374387226,), (1374387228,), (1374387230,), (1374387231,), (1374387232,), (1374387234,), (1374387249,), (1374387250,), (1374387258,), (1374387268,), (1374387269,), (1374387271,), (1374387300,), (1374387301,), (1374387302,), (1374387303,), (1374387305,), (1374387306,), (1374387322,), (1374387324,), (1374387326,), (1374387329,), (1374387332,), (1374387336,), (1374387351,), (1374387359,), (1374387360,), (1374387361,), (1374387363,), (1374387365,), (1374387393,), (1374387411,), (1374387430,), (1374387432,), (1374387434,), (1374387435,), (1374387436,), (1374387453,), (1374387483,), (1374387484,), (1374387485,), (1374387491,), (1374387500,), (1374387501,), (1374387514,), (1374387522,), (1374387527,), (1374387528,), (1374387529,), (1374387531,), (1374387549,), (1374387567,), (1374387568,), (1374387586,), (1374387591,), (1374387592,), (1374387594,), (1374387608,), (1374387609,), (1374387610,), (1374387611,), (1374387613,), (1374387614,), (1374387625,), (1374387636,), (1374387646,), (1374387648,), (1374387651,), (1374387654,), (1374387670,), (1374387671,), (1374387672,), (1374387673,), (1374387674,), (1374387677,), (1374387691,), (1374387692,), (1374387705,), (1374387707,), (1374387708,), (1374387709,), (1374387782,), (1374389441,), (1374387799,), (1374387808,), (1374387821,), (1374387822,), (1374387823,), (1374387825,), (1374387835,), (1374387838,), (1374387845,), (1374387846,), (1374387848,), (1374387849,), (1374387864,), (1374387866,), (1374387868,), (1374387870,), (1374387873,), (1374387878,), (1374387884,), (1374387885,), (1374387887,), (1374387890,), (1374387893,), (1374387896,), (1374387911,), (1374387913,), (1374387914,), (1374387915,), (1374387916,), (1374387919,), (1374387930,), (1374387932,), (1374387933,), (1374387934,), (1374387935,), (1374387937,), (1374387961,), (1374387963,), (1374387964,), (1374387965,), (1374387967,), (1374387969,), (1374387981,), (1374387983,), (1374387984,), (1374387985,), (1374387986,), (1374387987,), (1374388002,), (1374388009,), (1374388010,), (1374388011,), (1374388013,), (1374388016,), (1374388037,), (1374388056,), (1374388057,), (1374388058,), (1374388059,), (1374388061,), (1374388063,), (1374388079,), (1374388096,), (1374388099,), (1374388101,), (1374388103,), (1374388105,), (1374388107,), (1374388122,), (1374388144,), (1374388145,), (1374388146,), (1374388152,), (1374388155,), (1374388158,), (1374388171,), (1374388173,), (1374388175,), (1374388176,), (1374388177,), (1374388180,), (1374388194,), (1374388196,), (1374388197,), (1374388198,), (1374388200,), (1374388203,), (1374388219,), (1374388244,), (1374388245,), (1374388249,), (1374388260,), (1374388262,), (1374388264,), (1374388317,), (1374388335,), (1374388336,), (1374388337,), (1374388338,), (1374388347,), (1374388356,), (1374388376,), (1374388377,), (1374388381,), (1374388388,), (1374388390,), (1374388403,), (1374388423,), (1374388424,), (1374388425,), (1374388427,), (1374388437,), (1374388439,), (1374388454,), (1374388456,), (1374388458,), (1374388460,), (1374388462,), (1374388465,), (1374388486,), (1374388487,), (1374388488,), (1374388489,), (1374388491,), (1374388494,), (1374388508,), (1374388509,), (1374388510,), (1374388511,), (1374388517,), (1374388542,), (1374388798,), (1374388820,), (1374388844,), (1374388867,), (1374388889,), (1374388911,), (1374389405,), (1374389931,), (1374390485,), (1374390508,), (1374390519,), (1374390526,), (1374390528,), (1374390538,), (1374390661,), (1374390687,), (1374390721,), (1374390736,), (1374390743,), (1374390749,), (1374390810,), (1374390811,), (1374390812,), (1374390813,), (1374390815,), (1374390817,), (1374390829,), (1374390831,), (1374390832,), (1374390839,), (1374390845,), (1374390864,), (1374390876,), (1374390879,), (1374390886,), (1374390889,), (1374390908,), (1374390912,), (1374390955,), (1374390956,), (1374390957,), (1374390958,), (1374390960,), (1374390963,), (1374390983,), (1374390984,), (1374390985,), (1374390986,), (1374390988,), (1374390990,), (1374391009,), (1374391010,), (1374391011,), (1374391019,), (1374391020,), (1374391034,), (1374391061,), (1374391070,), (1374391072,), (1374391073,), (1374391074,), (1374391076,), (1374391128,), (1374391157,), (1374391159,), (1374391169,), (1374391179,), (1374391180,), (1374391183,), (1374391209,), (1374391249,), (1374391250,), (1374391261,), (1374391263,), (1374391265,), (1374391267,), (1374391285,), (1374391305,), (1374391307,), (1374391314,), (1374391315,), (1374391316,), (1374391318,), (1374391322,), (1374391327,), (1374391328,), (1374391329,), (1374391331,), (1374391332,), (1374391344,), (1374391347,), (1374391355,), (1374391356,), (1374391358,), (1374391361,), (1374391371,), (1374391390,), (1374391391,), (1374391392,), (1374391399,), (1374391406,), (1374391413,), (1374391432,), (1374391439,), (1374391440,), (1374391441,), (1374391442,), (1374391444,), (1374391479,), (1374391499,), (1374391501,), (1374391502,), (1374391503,), (1374391505,), (1374391506,), (1374391523,), (1374391525,), (1374391532,), (1374391539,), (1374391547,), (1374391550,), (1374391558,), (1374391559,), (1374391560,), (1374391561,), (1374391563,), (1374391566,), (1374391585,), (1374391593,), (1374391598,), (1374391602,), (1374391604,), (1374391606,), (1374391613,), (1374391615,), (1374391616,), (1374391617,), (1374391618,), (1374391620,), (1374391636,), (1374391641,), (1374391643,), (1374391645,), (1374391646,), (1374391648,), (1374391664,), (1374391665,), (1374391666,), (1374391667,), (1374391669,), (1374391672,), (1374391682,), (1374391686,), (1374391694,), (1374391695,), (1374391697,), (1374391701,), (1374391739,), (1374391740,), (1374391741,), (1374391742,), (1374391743,), (1374391745,), (1374391762,), (1374391788,), (1374391789,), (1374391790,), (1374391791,), (1374391810,), (1374391820,), (1374391838,), (1374391840,), (1374391842,), (1374391843,), (1374391845,), (1374391847,), (1374391863,), (1374391883,), (1374391884,), (1374391885,), (1374391886,), (1374391888,), (1374391890,), (1374391903,), (1374391904,), (1374391905,), (1374391906,), (1374391907,), (1374391910,), (1374391931,), (1374391936,), (1374391941,), (1374391942,), (1374391945,), (1374391948,), (1374391960,), (1374391962,), (1374391963,), (1374391964,), (1374391965,), (1374391967,), (1374391984,), (1374391989,), (1374391994,), (1374391999,), (1374392001,), (1374392004,), (1374392061,), (1374392095,), (1374392096,), (1374392103,), (1374392108,), (1374392110,), (1374392114,), (1374392129,), (1374392133,), (1374392134,), (1374392135,), (1374392137,), (1374392139,), (1374392156,), (1374392159,), (1374392161,), (1374392162,), (1374392163,), (1374392166,), (1374392176,), (1374392178,), (1374392179,), (1374392180,), (1374392183,), (1374392185,), (1374392206,), (1374392212,), (1374392220,), (1374392222,), (1374392224,), (1374392226,), (1374392235,), (1374392236,), (1374392237,), (1374392238,), (1374392240,), (1374392242,), (1374392249,), (1374392257,), (1374392264,), (1374392265,), (1374392267,), (1374392269,), (1374392282,), (1374392289,), (1374392295,), (1374392297,), (1374392298,), (1374392300,), (1374392308,), (1374392309,), (1374392312,), (1374392313,), (1374392319,), (1374392320,), (1374392384,), (1374392407,), (1374392408,), (1374392416,), (1374392417,), (1374392419,), (1374392420,), (1374392439,), (1374392462,), (1374392478,), (1374392479,), (1374392480,), (1374392481,), (1374392483,), (1374392486,), (1374392494,), (1374392495,), (1374392496,), (1374392497,), (1374392499,), (1374392502,), (1374392525,), (1374392791,), (1374392819,), (1374392845,), (1374392867,), (1374392890,), (1374392914,), (1374393078,), (1374393079,), (1374393082,), (1374393084,), (1374393087,), (1374393090,), (1374393144,), (1374393481,), (1374393503,), (1374393529,), (1374393552,), (1374393602,), (1374393628,), (1374393759,), (1374393760,), (1374393767,), (1374393775,), (1374393780,), (1374393810,), (1374394275,), (1374394498,), (1374394522,), (1374394530,), (1374394531,), (1374394532,), (1374394551,), (1374394599,), (1374394608,), (1374394612,), (1374394619,), (1374394625,), (1374394628,), (1374394634,), (1374394636,), (1374394637,), (1374394638,), (1374394640,), (1374394643,), (1374394655,), (1374394659,), (1374394665,), (1374394667,), (1374394668,), (1374394670,), (1374394679,), (1374394686,), (1374394691,), (1374394692,), (1374394695,), (1374394698,), (1374394712,), (1374394714,), (1374394715,), (1374394716,), (1374394718,), (1374394720,), (1374394776,), (1374394777,), (1374394778,), (1374394779,), (1374394780,), (1374394782,), (1374394797,), (1374394815,), (1374394817,), (1374394818,), (1374394819,), (1374394821,), (1374394823,), (1374394832,), (1374394833,), (1374394843,), (1374394844,), (1374394845,), (1374394849,), (1374394863,), (1374394864,), (1374394866,), (1374394867,), (1374394868,), (1374394870,), (1374394888,), (1374394893,), (1374394899,), (1374394900,), (1374394901,), (1374394904,), (1374394925,), (1374394928,), (1374394932,), (1374394935,), (1374394940,), (1374394943,), (1374394947,), (1374394949,), (1374394950,), (1374394951,), (1374394953,), (1374394970,), (1374394986,), (1374394993,), (1374395000,), (1374395001,), (1374395002,), (1374395004,), (1374395059,), (1374395080,), (1374395086,), (1374395094,), (1374395096,), (1374395098,), (1374395101,), (1374395110,), (1374395111,), (1374395112,), (1374395113,), (1374395115,), (1374395116,), (1374395123,), (1374395135,), (1374395141,), (1374395142,), (1374395144,), (1374395147,), (1374395166,), (1374395197,), (1374395218,), (1374395219,), (1374395220,), (1374395221,), (1374395223,), (1374395226,), (1374395241,), (1374395253,), (1374395258,), (1374395259,), (1374395261,), (1374395263,), (1374395271,), (1374395272,), (1374395273,), (1374395274,), (1374395275,), (1374395277,), (1374395290,), (1374395291,), (1374395292,), (1374395293,), (1374395296,), (1374395298,), (1374395370,), (1374395387,), (1374395388,), (1374395389,), (1374395390,), (1374395392,), (1374395396,), (1374395410,), (1374395411,), (1374395412,), (1374395413,), (1374395414,), (1374395416,), (1374395427,), (1374395429,), (1374395431,), (1374395432,), (1374395433,), (1374395436,), (1374395453,), (1374395454,), (1374395462,), (1374395467,), (1374395468,), (1374395470,), (1374395490,), (1374395500,), (1374395503,), (1374395504,), (1374395505,), (1374395507,), (1374395525,), (1374395527,), (1374395529,), (1374395530,), (1374395532,), (1374395534,), (1374395549,), (1374395555,), (1374395561,), (1374395564,), (1374395567,), (1374395570,), (1374395586,), (1374395593,), (1374395598,), (1374395599,), (1374395601,), (1374395603,), (1374395612,), (1374395615,), (1374395620,), (1374395627,), (1374395629,), (1374395633,), (1374395642,), (1374395671,), (1374395674,), (1374395675,), (1374395676,), (1374395677,), (1374395678,), (1374395686,), (1374395687,), (1374395694,), (1374395699,), (1374395700,), (1374395702,), (1374395724,), (1374395729,), (1374395730,), (1374395731,), (1374395733,), (1374395737,), (1374395751,), (1374395753,), (1374395754,), (1374395755,), (1374395757,), (1374395761,), (1374395777,), (1374395778,), (1374395781,), (1374395787,), (1374395789,), (1374395791,), (1374395803,), (1374395807,), (1374395813,), (1374395814,), (1374395815,), (1374395817,), (1374395838,), (1374395857,), (1374395858,), (1374395859,), (1374395860,), (1374395861,), (1374395863,), (1374395881,), (1374395883,), (1374395888,), (1374395891,), (1374395892,), (1374395894,), (1374395914,), (1374395960,), (1374395961,), (1374395964,), (1374395967,), (1374395968,), (1374395971,), (1374395991,), (1374396011,), (1374396013,), (1374396017,), (1374396022,), (1374396023,), (1374396026,), (1374396049,), (1374396051,), (1374396053,), (1374396054,), (1374396056,), (1374396058,), (1374396077,), (1374396079,), (1374396081,), (1374396083,), (1374396086,), (1374396089,), (1374396107,), (1374396110,), (1374396111,), (1374396112,), (1374396113,), (1374396115,), (1374396139,), (1374396141,), (1374396142,), (1374396144,), (1374396147,), (1374396151,), (1374397168,), (1374397198,), (1374397224,), (1374397248,), (1374397274,), (1374397297,), (1374397767,), (1374398282,), (1374398305,), (1374398329,), (1374398355,), (1374398359,), (1374398362,), (1374398549,), (1374398592,), (1374398643,), (1374398687,), (1374398723,), (1374398739,), (1374398908,), (1374398919,), (1374398921,), (1374398923,), (1374398946,), (1374398971,), (1374399022,), (1374399024,), (1374399025,), (1374399026,), (1374399028,), (1374399030,), (1374399050,), (1374399051,), (1374399054,), (1374399055,), (1374399057,), (1374399061,), (1374399097,), (1374399125,), (1374399128,), (1374399131,), (1374399132,), (1374399134,), (1374399136,), (1374399155,), (1374399179,), (1374399182,), (1374399184,), (1374399185,), (1374399186,), (1374399188,), (1374399204,), (1374399250,), (1374399252,), (1374399254,), (1374399256,), (1374399258,), (1374399261,), (1374399282,), (1374399285,), (1374399287,), (1374399288,), (1374399289,), (1374399291,), (1374399309,), (1374399311,), (1374399313,), (1374399315,), (1374399317,), (1374399321,), (1374399342,), (1374399377,), (1374399379,), (1374399381,), (1374399383,), (1374399386,), (1374399389,), (1374399421,), (1374399423,), (1374399424,), (1374399425,), (1374399426,), (1374399429,), (1374399462,), (1374399499,), (1374399504,), (1374399506,), (1374399507,), (1374399508,), (1374399511,), (1374399528,), (1374399531,), (1374399533,), (1374399535,), (1374399537,), (1374399541,), (1374399552,), (1374399591,), (1374399593,), (1374399604,), (1374399611,), (1374399613,), (1374399617,), (1374399640,), (1374399649,), (1374399655,), (1374399663,), (1374399665,), (1374399667,), (1374399693,), (1374399694,), (1374399695,), (1374399696,), (1374399698,), (1374399702,), (1374399725,), (1374399726,), (1374399727,), (1374399728,), (1374399730,), (1374399731,), (1374399753,), (1374399755,), (1374399756,), (1374399757,), (1374399758,), (1374399761,), (1374399783,), (1374399827,), (1374399833,), (1374399838,), (1374399840,), (1374399841,), (1374399843,), (1374399860,), (1374399861,), (1374399862,), (1374399863,), (1374399864,), (1374399866,), (1374399889,), (1374399892,), (1374399894,), (1374399895,), (1374399896,), (1374399900,), (1374399928,), (1374399953,), (1374399954,), (1374399955,), (1374399956,), (1374399957,), (1374399959,), (1374399969,), (1374399970,), (1374399971,), (1374399972,), (1374399974,), (1374399978,), (1374399984,), (1374399986,), (1374399990,), (1374399998,), (1374400003,), (1374400007,), (1374400030,), (1374400062,), (1374400064,), (1374400069,), (1374400070,), (1374400071,), (1374400073,), (1374400111,), (1374400112,), (1374400113,), (1374400114,), (1374400115,), (1374400118,), (1374400143,), (1374400144,), (1374400145,), (1374400146,), (1374400147,), (1374400149,), (1374400168,), (1374400170,), (1374400174,), (1374400182,), (1374400189,), (1374400191,), (1374400209,), (1374400211,), (1374400217,), (1374400218,), (1374400219,), (1374400222,), (1374400238,), (1374400262,), (1374400264,), (1374400267,), (1374400272,), (1374400276,), (1374400279,), (1374400304,), (1374400307,), (1374400315,), (1374400316,), (1374400318,), (1374400321,), (1374400339,), (1374400340,), (1374400341,), (1374400342,), (1374400343,), (1374400346,), (1374400361,), (1374400398,), (1374400399,), (1374400405,), (1374400412,), (1374400420,), (1374400423,), (1374400444,), (1374400448,), (1374400455,), (1374400456,), (1374400457,), (1374400461,), (1374400481,), (1374400482,), (1374400483,), (1374400484,), (1374400486,), (1374400490,), (1374400515,), (1374400517,), (1374400518,), (1374400519,), (1374400520,), (1374400524,), (1374400541,), (1374400544,), (1374400546,), (1374400548,), (1374400549,), (1374400551,), (1374400578,), (1374400601,), (1374400610,), (1374400611,), (1374400613,), (1374400614,), (1374400616,), (1374400630,), (1374400632,), (1374400634,), (1374400635,), (1374400637,), (1374400640,), (1374400659,), (1374400661,), (1374400663,), (1374400664,), (1374400666,), (1374400669,), (1374400689,), (1374400701,), (1374400704,), (1374400705,), (1374400706,), (1374400709,), (1374400725,), (1374400727,), (1374400730,), (1374400732,), (1374400733,), (1374400736,), (1374400758,), (1374400780,), (1374400782,), (1374400784,), (1374400785,), (1374400786,), (1374400789,), (1374401522,), (1374401523,), (1374401573,), (1374401578,), (1374401639,), (1374401651,), (1374401709,), (1374401724,), (1374401770,), (1374401786,), (1374401819,), (1374401835,), (1374402060,), (1374402857,), (1374402903,), (1374402950,), (1374403021,), (1374403092,), (1374403165,), (1374403437,), (1374403486,), (1374403512,), (1374403542,), (1374403565,), (1374403589,), (1374403995,), (1374404040,), (1374404087,), (1374404133,), (1374404184,), (1374404223,), (1374404472,), (1374404524,), (1374404552,), (1374404577,), (1374404580,), (1374404595,), (1374404790,), (1374404813,), (1374404827,), (1374404829,), (1374404832,), (1374404833,), (1374404851,), (1374404874,), (1374404875,), (1374404876,), (1374404877,), (1374404879,), (1374404882,), (1374404903,), (1374404905,), (1374404906,), (1374404907,), (1374404908,), (1374404910,), (1374404933,), (1374404939,), (1374404948,), (1374404952,), (1374404955,), (1374404958,), (1374404975,), (1374404980,), (1374404990,), (1374404991,), (1374404993,), (1374404995,), (1374405041,), (1374405079,), (1374405108,), (1374405109,), (1374405110,), (1374405111,), (1374405112,), (1374405114,), (1374405128,), (1374405135,), (1374405141,), (1374405142,), (1374405144,), (1374405148,), (1374405171,), (1374405175,), (1374405178,), (1374405179,), (1374405181,), (1374405185,), (1374405198,), (1374405199,), (1374405200,), (1374405201,), (1374405202,), (1374405204,), (1374405232,), (1374405233,), (1374405234,), (1374405235,), (1374405236,), (1374405238,), (1374405264,), (1374405303,), (1374405352,), (1374405353,), (1374405354,), (1374405355,), (1374405356,), (1374405358,), (1374405388,), (1374405415,), (1374405421,), (1374405423,), (1374405425,), (1374405428,), (1374405431,), (1374405458,), (1374405461,), (1374405463,), (1374405465,), (1374405467,), (1374405470,), (1374405488,), (1374405494,), (1374405496,), (1374405498,), (1374405500,), (1374405503,), (1374405528,), (1374405530,), (1374405532,), (1374405534,), (1374405537,), (1374405538,), (1374405574,), (1374405576,), (1374405577,), (1374405578,), (1374405579,), (1374405581,), (1374405601,), (1374405602,), (1374405603,), (1374405604,), (1374405605,), (1374405607,), (1374405636,), (1374405640,), (1374405657,), (1374405658,), (1374405660,), (1374405664,), (1374405676,), (1374405679,), (1374405680,), (1374405681,), (1374405684,), (1374405686,), (1374405718,), (1374405733,), (1374405735,), (1374405737,), (1374405738,), (1374405739,), (1374405743,), (1374405757,), (1374405759,), (1374405761,), (1374405762,), (1374405764,), (1374405766,), (1374405783,), (1374405784,), (1374405785,), (1374405786,), (1374405788,), (1374405792,), (1374405803,), (1374405804,), (1374405805,), (1374405806,), (1374405807,), (1374405809,), (1374405836,), (1374405837,), (1374405838,), (1374405839,), (1374405841,), (1374405845,), (1374405952,), (1374406316,), (1374406342,), (1374406366,), (1374406389,), (1374406412,), (1374406437,), (1374406720,), (1374406744,), (1374406768,), (1374406793,), (1374406816,), (1374406842,), (1374406951,), (1374406960,), (1374406964,), (1374406965,), (1374406966,), (1374406968,), (1374407024,), (1374407052,), (1374407094,), (1374407120,), (1374407145,), (1374407168,), (1374407438,), (1374407528,), (1374407560,), (1374407588,), (1374407612,), (1374407637,), (1374407665,), (1374407859,), (1374407886,), (1374407912,), (1374407935,), (1374407962,), (1374407996,), (1374408580,), (1374409146,), (1374409182,), (1374409217,), (1374409242,), (1374409265,), (1374409290,), (1374409622,), (1374409658,), (1374409690,), (1374409713,), (1374409719,), (1374409721,), (1374409738,), (1374409739,), (1374409740,), (1374409741,), (1374409743,), (1374409745,), (1374409996,), (1374410043,), (1374410096,), (1374410141,), (1374410189,), (1374410237,), (1374410500,), (1374410523,), (1374410548,), (1374410560,), (1374410564,), (1374410567,), (1374411090,), (1374411482,), (1374411506,), (1374411554,), (1374411582,), (1374411607,), (1374411632,), (1374411793,), (1374411795,), (1374411797,), (1374411798,), (1374411799,), (1374411820,), (1374412047,), (1374412050,), (1374412052,), (1374412075,), (1374412103,), (1374412117,), (1374412165,), (1374412169,), (1374412170,), (1374412171,), (1374412172,), (1374412174,), (1374412190,), (1374412192,), (1374412194,), (1374412196,), (1374412197,), (1374412199,), (1374412221,), (1374412451,), (1374412475,), (1374412501,), (1374412526,), (1374412551,), (1374412575,), (1374413343,), (1374413717,), (1374414186,), (1374414211,), (1374414240,), (1374414275,), (1374414324,), (1374414370,), (1374414777,), (1374414804,), (1374414824,), (1374414882,), (1374414924,), (1374414961,), (1374415156,), (1374415164,), (1374415169,), (1374415172,), (1374415176,), (1374415181,), (1374415191,), (1374415421,), (1374415429,), (1374415430,), (1374415439,), (1374415469,), (1374415477,), (1374415526,), (1374415527,), (1374415528,), (1374415529,), (1374415532,), (1374415535,), (1374415551,), (1374415552,), (1374415553,), (1374415554,), (1374415555,), (1374415557,), (1374415572,), (1374415574,), (1374415575,), (1374415576,), (1374415577,), (1374415579,), (1374415602,), (1374415609,), (1374415610,), (1374415611,), (1374415612,), (1374415614,), (1374415649,), (1374415688,), (1374415696,), (1374415697,), (1374415698,), (1374415700,), (1374415703,), (1374415723,), (1374415735,), (1374415740,), (1374415741,), (1374415742,), (1374415744,), (1374416020,), (1374416090,), (1374416160,), (1374416227,), (1374416290,), (1374416356,), (1374416922,), (1374416972,), (1374417021,), (1374417070,), (1374417122,), (1374417171,), (1374417602,), (1374417634,), (1374417659,), (1374417684,), (1374417710,), (1374417741,), (1374418197,), (1374418226,), (1374418231,), (1374418232,), (1374418274,), (1374418306,), (1374418462,), (1374418499,), (1374418531,), (1374418556,), (1374418580,), (1374418608,), (1374418937,), (1374418960,), (1374419000,), (1374419045,), (1374419094,), (1374419120,), (1374419328,), (1374419329,), (1374419330,), (1374419331,), (1374419333,), (1374419337,), (1374419604,), (1374419758,), (1374419795,), (1374419831,), (1374419857,), (1374419883,), (1374419909,), (1374419970,), (1374419973,), (1374419976,), (1374419978,), (1374419981,), (1374419985,), (1374420027,), (1374420042,), (1374420060,), (1374420064,), (1374420066,), (1374420069,), (1374420140,), (1374420154,), (1374420163,), (1374420165,), (1374420167,), (1374420170,), (1374420188,), (1374420191,), (1374420194,), (1374420196,), (1374420198,), (1374420202,), (1374420226,), (1374420242,), (1374420250,), (1374420251,), (1374420252,), (1374420254,), (1374420275,), (1374420286,), (1374420293,), (1374420294,), (1374420295,), (1374420297,), (1374420310,), (1374420322,), (1374420330,), (1374420334,), (1374420336,), (1374420338,), (1374420352,), (1374420364,), (1374420372,), (1374420379,), (1374420381,), (1374420384,), (1374420424,), (1374420436,), (1374420438,), (1374420440,), (1374420441,), (1374420442,), (1374420444,), (1374420451,), (1374420466,), (1374420496,), (1374420505,), (1374420509,), (1374420510,), (1374420512,), (1374420514,), (1374420532,), (1374420540,), (1374420546,), (1374420549,), (1374420552,), (1374420555,), (1374420564,), (1374420568,), (1374420583,), (1374420591,), (1374420595,), (1374420597,), (1374420611,), (1374420614,), (1374420629,), (1374420639,), (1374420640,), (1374420642,), (1374420666,), (1374420671,), (1374420672,), (1374420673,), (1374420674,), (1374420676,), (1374420690,), (1374420714,), (1374420727,), (1374420733,), (1374420734,), (1374420736,), (1374420738,), (1374420785,), (1374420786,), (1374420787,), (1374420788,), (1374420789,), (1374420791,), (1374420811,), (1374420853,), (1374420884,), (1374420885,), (1374420886,), (1374420887,), (1374420888,), (1374420890,), (1374420953,), (1374420960,), (1374420963,), (1374420964,), (1374420965,), (1374420969,), (1374421138,), (1374421139,), (1374421148,), (1374421155,), (1374421168,), (1374421193,), (1374421263,), (1374421265,), (1374421267,), (1374421268,), (1374421287,), (1374421312,), (1374421379,), (1374421383,), (1374421389,), (1374421395,), (1374421414,), (1374421436,), (1374421622,), (1374421654,), (1374421683,), (1374421708,), (1374421732,), (1374421757,), (1374422021,), (1374422047,), (1374422076,), (1374422101,), (1374422136,), (1374422187,), (1374422736,), (1374422949,), (1374423130,), (1374423158,), (1374423183,), (1374423207,), (1374423232,), (1374423258,), (1374423462,), (1374423467,), (1374423469,), (1374423470,), (1374423471,), (1374423473,), (1374423637,), (1374423662,), (1374423680,), (1374423681,), (1374423682,), (1374423684,), (1374423738,), (1374423765,), (1374423789,), (1374423813,), (1374423837,), (1374423863,), (1374424034,), (1374424035,), (1374424036,), (1374424037,), (1374424038,), (1374424040,), (1374424061,), (1374424062,), (1374424064,), (1374424066,), (1374424068,), (1374424070,), (1374424414,), (1374424442,), (1374424473,), (1374424499,), (1374424524,), (1374424558,), (1374424923,), (1374424978,), (1374425040,), (1374425093,), (1374425141,), (1374425183,), (1374425837,), (1374426319,), (1374426356,), (1374426403,), (1374426442,), (1374426473,), (1374426497,), (1374426712,), (1374426715,), (1374426718,), (1374426719,), (1374426721,), (1374426726,), (1374426741,), (1374426754,), (1374426764,), (1374426766,), (1374426767,), (1374426770,), (1374426860,), (1374426862,), (1374426864,), (1374426866,), (1374426867,), (1374426870,), (1374426983,), (1374426995,), (1374426997,), (1374426998,), (1374427001,), (1374427005,), (1374427027,), (1374427030,), (1374427032,), (1374427033,), (1374427035,), (1374427038,), (1374427311,), (1374427349,), (1374427389,), (1374427399,), (1374427407,), (1374427412,), (1374427483,), (1374427511,), (1374427552,), (1374427558,), (1374427570,), (1374427574,), (1374427611,), (1374427877,), (1374427878,), (1374427879,), (1374427880,), (1374427881,), (1374427893,), (1374428017,), (1374428046,), (1374428048,), (1374428049,), (1374428050,), (1374428052,), (1374428054,), (1374428083,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30072025': {'nb_upload': 70, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25495527]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374428083] map_info['map_portfolio_photo'] : {25495527: [1374428083, 1374428054, 1374428052, 1374428050, 1374428049, 1374428048, 1374428046, 1374428017, 1374427893, 1374427881, 1374427880, 1374427879, 1374427878, 1374427877, 1374427611, 1374427574, 1374427570, 1374427558, 1374427552, 1374427511, 1374427483, 1374427412, 1374427407, 1374427399, 1374427389, 1374427349, 1374427311, 1374427038, 1374427035, 1374427033, 1374427032, 1374427030, 1374427027, 1374427005, 1374427001, 1374426998, 1374426997, 1374426995, 1374426983, 1374426870, 1374426867, 1374426866, 1374426864, 1374426862, 1374426860, 1374426770, 1374426767, 1374426766, 1374426764, 1374426754, 1374426741, 1374426726, 1374426721, 1374426719, 1374426718, 1374426715, 1374426712, 1374426497, 1374426473, 1374426442, 1374426403, 1374426356, 1374426319, 1374425837, 1374425183, 1374425141, 1374425093, 1374425040, 1374424978, 1374424923]} final : True mtd_id 4302 list_pids : [1374428083] Looping around the photos to save general results len do output : 1 /25495527Didn'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, '3396384') ('4302', '25495527', '1374428083', None, None, None, None, None, '3396384') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '25495527', 'None', None, None, None, None, '3396384'), ('4302', '25495527', '1374428083', None, None, None, None, None, '3396384')] time used for this insertion : 0.014767885208129883 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.7018797397613525 time spend to save output : 0.01491689682006836 total time spend for step 5 : 2.716796636581421 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 (3396384) 1.86user 2.43system 0:09.88elapsed 43%CPU (0avgtext+0avgdata 156284maxresident)k 56inputs+6056outputs (3major+62189minor)pagefaults 0swaps