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 : 2713044 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 (3326663) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3326663) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218980 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3326663'] with mtr_portfolio_ids : ['25218980'] and first list_photo_ids : [] new path : /proc/2713044/ Name: python3 Umask: 0002 State: R (running) Tgid: 2713044 Ngid: 0 Pid: 2713044 PPid: 2713043 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2713044 NSpid: 2713044 NSpgid: 2711756 NSsid: 2711756 VmPeak: 1106892 kB VmSize: 1106892 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99744 kB VmRSS: 99744 kB RssAnon: 59812 kB RssFile: 39932 kB RssShmem: 0 kB VmData: 865644 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 54 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2713044', 'Ngid': '0', 'Pid': '2713044', 'PPid': '2713043', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2713044', 'NSpid': '2713044', 'NSpgid': '2711756', 'NSsid': '2711756', 'VmPeak': '1106892 kB', 'VmSize': '1106892 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99744 kB', 'VmRSS': '99744 kB', 'RssAnon': '59812 kB', 'RssFile': '39932 kB', 'RssShmem': '0 kB', 'VmData': '865644 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '54', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '2713044', '1106892', '0', '1106892', '865644', '99744', b'', 'marlene', '3326663') 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 (25218980) 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 (3326663 ) ) 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 (25218980) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373332711, 'portfolio_id': 25218980}, {'photo_id': 1373332687, 'portfolio_id': 25218980}, {'photo_id': 1373332662, 'portfolio_id': 25218980}, {'photo_id': 1373332635, 'portfolio_id': 25218980}, {'photo_id': 1373332607, 'portfolio_id': 25218980}, {'photo_id': 1373332581, 'portfolio_id': 25218980}, {'photo_id': 1373332421, 'portfolio_id': 25218980}, {'photo_id': 1373332418, 'portfolio_id': 25218980}, {'photo_id': 1373332417, 'portfolio_id': 25218980}, {'photo_id': 1373332414, 'portfolio_id': 25218980}, {'photo_id': 1373332408, 'portfolio_id': 25218980}, {'photo_id': 1373332398, 'portfolio_id': 25218980}, {'photo_id': 1373332370, 'portfolio_id': 25218980}, {'photo_id': 1373332367, 'portfolio_id': 25218980}, {'photo_id': 1373332366, 'portfolio_id': 25218980}, {'photo_id': 1373332364, 'portfolio_id': 25218980}, {'photo_id': 1373332362, 'portfolio_id': 25218980}, {'photo_id': 1373332361, 'portfolio_id': 25218980}, {'photo_id': 1373332345, 'portfolio_id': 25218980}, {'photo_id': 1373332341, 'portfolio_id': 25218980}, {'photo_id': 1373332339, 'portfolio_id': 25218980}, {'photo_id': 1373332338, 'portfolio_id': 25218980}, {'photo_id': 1373332335, 'portfolio_id': 25218980}, {'photo_id': 1373332326, 'portfolio_id': 25218980}, {'photo_id': 1373332119, 'portfolio_id': 25218980}, {'photo_id': 1373332088, 'portfolio_id': 25218980}, {'photo_id': 1373332062, 'portfolio_id': 25218980}, {'photo_id': 1373332037, 'portfolio_id': 25218980}, {'photo_id': 1373332010, 'portfolio_id': 25218980}, {'photo_id': 1373331982, 'portfolio_id': 25218980}, {'photo_id': 1373331923, 'portfolio_id': 25218980}, {'photo_id': 1373331919, 'portfolio_id': 25218980}, {'photo_id': 1373331916, 'portfolio_id': 25218980}, {'photo_id': 1373331914, 'portfolio_id': 25218980}, {'photo_id': 1373331912, 'portfolio_id': 25218980}, {'photo_id': 1373331909, 'portfolio_id': 25218980}, {'photo_id': 1373331888, 'portfolio_id': 25218980}, {'photo_id': 1373331884, 'portfolio_id': 25218980}, {'photo_id': 1373331881, 'portfolio_id': 25218980}, {'photo_id': 1373331880, 'portfolio_id': 25218980}, {'photo_id': 1373331877, 'portfolio_id': 25218980}, {'photo_id': 1373331874, 'portfolio_id': 25218980}, {'photo_id': 1373331714, 'portfolio_id': 25218980}, {'photo_id': 1373331549, 'portfolio_id': 25218980}, {'photo_id': 1373331522, 'portfolio_id': 25218980}, {'photo_id': 1373331495, 'portfolio_id': 25218980}, {'photo_id': 1373331485, 'portfolio_id': 25218980}, {'photo_id': 1373331481, 'portfolio_id': 25218980}, {'photo_id': 1373331477, 'portfolio_id': 25218980}, {'photo_id': 1373331391, 'portfolio_id': 25218980}, {'photo_id': 1373331368, 'portfolio_id': 25218980}, {'photo_id': 1373331344, 'portfolio_id': 25218980}, {'photo_id': 1373331321, 'portfolio_id': 25218980}, {'photo_id': 1373331296, 'portfolio_id': 25218980}, {'photo_id': 1373331269, 'portfolio_id': 25218980}, {'photo_id': 1373331000, 'portfolio_id': 25218980}, {'photo_id': 1373330967, 'portfolio_id': 25218980}, {'photo_id': 1373330942, 'portfolio_id': 25218980}, {'photo_id': 1373330916, 'portfolio_id': 25218980}, {'photo_id': 1373330889, 'portfolio_id': 25218980}, {'photo_id': 1373330862, 'portfolio_id': 25218980}, {'photo_id': 1373330492, 'portfolio_id': 25218980}, {'photo_id': 1373330466, 'portfolio_id': 25218980}, {'photo_id': 1373330441, 'portfolio_id': 25218980}, {'photo_id': 1373330414, 'portfolio_id': 25218980}, {'photo_id': 1373330367, 'portfolio_id': 25218980}, {'photo_id': 1373330320, 'portfolio_id': 25218980}, {'photo_id': 1373329940, 'portfolio_id': 25218980}, {'photo_id': 1373329895, 'portfolio_id': 25218980}, {'photo_id': 1373329849, 'portfolio_id': 25218980}, {'photo_id': 1373329802, 'portfolio_id': 25218980}, {'photo_id': 1373329753, 'portfolio_id': 25218980}, {'photo_id': 1373329703, 'portfolio_id': 25218980}, {'photo_id': 1373329343, 'portfolio_id': 25218980}, {'photo_id': 1373329304, 'portfolio_id': 25218980}, {'photo_id': 1373329257, 'portfolio_id': 25218980}, {'photo_id': 1373329211, 'portfolio_id': 25218980}, {'photo_id': 1373329157, 'portfolio_id': 25218980}] map_portfolio_id_photo_id: {25218980: [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398, 1373332370, 1373332367, 1373332366, 1373332364, 1373332362, 1373332361, 1373332345, 1373332341, 1373332339, 1373332338, 1373332335, 1373332326, 1373332119, 1373332088, 1373332062, 1373332037, 1373332010, 1373331982, 1373331923, 1373331919, 1373331916, 1373331914, 1373331912, 1373331909, 1373331888, 1373331884, 1373331881, 1373331880, 1373331877, 1373331874, 1373331714, 1373331549, 1373331522, 1373331495, 1373331485, 1373331481, 1373331477, 1373331391, 1373331368, 1373331344, 1373331321, 1373331296, 1373331269, 1373331000, 1373330967, 1373330942, 1373330916, 1373330889, 1373330862, 1373330492, 1373330466, 1373330441, 1373330414, 1373330367, 1373330320, 1373329940, 1373329895, 1373329849, 1373329802, 1373329753, 1373329703, 1373329343, 1373329304, 1373329257, 1373329211, 1373329157]} ##### 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.016654014587402344 #### 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 23 12:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25218980) 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 : 25218980 get user id for portfolio 25218980 get sub ptf for main ptf 25218980, type 3726 and hashtags ['kraft', 'flou', 'papier', 'metal', 'Carton_gris', 'plastique', 'mal_croppe', 'cartonnette', 'Teint_Dans_La_Masse', 'environnement', 'Carton_brun', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25218980 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','papier','metal','Carton_gris','plastique','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25218980 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','papier','metal','Carton_gris','plastique','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 25218980, 'sub_port_id': 25218987, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011297, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'Carton_brun': {'main_port_id': 25218980, 'sub_port_id': 25218988, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011298, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'flou': {'main_port_id': 25218980, 'sub_port_id': 25218989, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011299, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 25218980, 'sub_port_id': 25218990, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011300, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'metal': {'main_port_id': 25218980, 'sub_port_id': 25218991, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011301, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'kraft': {'main_port_id': 25218980, 'sub_port_id': 25218992, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011302, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'mal_croppe': {'main_port_id': 25218980, 'sub_port_id': 25218993, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011303, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'papier': {'main_port_id': 25218980, 'sub_port_id': 25218994, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011304, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'Carton_gris': {'main_port_id': 25218980, 'sub_port_id': 25218995, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011305, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'cartonnette': {'main_port_id': 25218980, 'sub_port_id': 25218996, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011306, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'environnement': {'main_port_id': 25218980, 'sub_port_id': 25218997, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011307, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}, 'plastique': {'main_port_id': 25218980, 'sub_port_id': 25218998, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011308, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218987 , 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=25218980 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 (25218987) result : ((1373332356,), (1373332357,), (1373332358,), (1373332561,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218988 , 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=25218980 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 (25218988) result : ((1373332359,), (1373332360,), (1373332576,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218989 , 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=25218980 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 (25218989) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218990 , 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=25218980 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 (25218990) result : ((1373332550,), (1373332552,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218991 , 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=25218980 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 (25218991) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218992 , 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=25218980 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 (25218992) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218993 , 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=25218980 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 (25218993) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218994 , 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=25218980 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 (25218994) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218995 , 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=25218980 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 (25218995) result : ((1373331872,), (1373331972,), (1373332567,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218996 , 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=25218980 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 (25218996) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218997 , 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=25218980 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 (25218997) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25218998 , 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=25218980 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 (25218998) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25218980) result : ((1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) 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 (1373331000) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25218980 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','papier','metal','Carton_gris','plastique','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25218980 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','papier','metal','Carton_gris','plastique','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 25218980, 'sub_port_id': 25219000, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011309, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'Carton_brun': {'main_port_id': 25218980, 'sub_port_id': 25219001, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011310, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'flou': {'main_port_id': 25218980, 'sub_port_id': 25219002, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011311, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25218980, 'sub_port_id': 25219003, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011312, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'metal': {'main_port_id': 25218980, 'sub_port_id': 25219004, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011313, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'kraft': {'main_port_id': 25218980, 'sub_port_id': 25219005, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011314, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'mal_croppe': {'main_port_id': 25218980, 'sub_port_id': 25219006, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011315, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'papier': {'main_port_id': 25218980, 'sub_port_id': 25219007, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011316, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'Carton_gris': {'main_port_id': 25218980, 'sub_port_id': 25219008, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011317, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'cartonnette': {'main_port_id': 25218980, 'sub_port_id': 25219009, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011318, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'environnement': {'main_port_id': 25218980, 'sub_port_id': 25219010, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011319, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 2, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}, 'plastique': {'main_port_id': 25218980, 'sub_port_id': 25219011, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17011320, 'last_updated_at': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 23, 12, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 23, 12, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218987 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218988 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218989 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219003,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218990 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218991 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219005,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218992 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219006,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218993 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219007,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218994 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219008,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218995 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219009,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218996 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219010,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218997 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25219011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25218998 lien utilise dans velours : https://www.fotonower.com/velours/25219000,25219001,25219002,25219003,25219004,25219005,25219006,25219007,25219008,25219009,25219010,25219011?tags=autre_refus,Carton_brun,flou,Teint_Dans_La_Masse,metal,kraft,mal_croppe,papier,Carton_gris,cartonnette,environnement,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25218980]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398] map_info['map_portfolio_photo'] : {25218980: [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398, 1373332370, 1373332367, 1373332366, 1373332364, 1373332362, 1373332361, 1373332345, 1373332341, 1373332339, 1373332338, 1373332335, 1373332326, 1373332119, 1373332088, 1373332062, 1373332037, 1373332010, 1373331982, 1373331923, 1373331919, 1373331916, 1373331914, 1373331912, 1373331909, 1373331888, 1373331884, 1373331881, 1373331880, 1373331877, 1373331874, 1373331714, 1373331549, 1373331522, 1373331495, 1373331485, 1373331481, 1373331477, 1373331391, 1373331368, 1373331344, 1373331321, 1373331296, 1373331269, 1373331000, 1373330967, 1373330942, 1373330916, 1373330889, 1373330862, 1373330492, 1373330466, 1373330441, 1373330414, 1373330367, 1373330320, 1373329940, 1373329895, 1373329849, 1373329802, 1373329753, 1373329703, 1373329343, 1373329304, 1373329257, 1373329211, 1373329157]} final : False mtd_id 4302 list_pids : [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398] Looping around the photos to save general results len do output : 1 /25218980. 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, '3326663') ('4302', '25218980', '1373332711', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332687', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332662', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332635', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332607', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332581', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332421', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332418', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332417', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332414', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332408', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332398', None, None, None, None, None, '3326663') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25218980', "{'autre_refus': 25218987, 'Carton_brun': 25218988, 'flou': 25218989, 'Teint_Dans_La_Masse': 25218990, 'metal': 25218991, 'kraft': 25218992, 'mal_croppe': 25218993, 'papier': 25218994, 'Carton_gris': 25218995, 'cartonnette': 25218996, 'environnement': 25218997, 'plastique': 25218998}", None, None, None, None, '3326663'), ('4302', '25218980', '1373332711', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332687', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332662', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332635', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332607', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332581', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332421', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332418', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332417', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332414', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332408', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332398', None, None, None, None, None, '3326663')] time used for this insertion : 0.013665199279785156 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46134328842163086 time spend to save output : 0.01407313346862793 total time spend for step 1 : 0.4754164218902588 step2:final Wed Jul 23 12:14: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 (25218980) 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 25218980 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373329343,1373329304,1373329257,1373329211,1373329157,1373329940,1373329895,1373329849,1373329802,1373329753,1373329703,1373330492,1373330466,1373330441,1373330414,1373330367,1373330320,1373331000,1373330967,1373330942,1373330916,1373330889,1373330862,1373331391,1373331368,1373331344,1373331321,1373331296,1373331269,1373331549,1373331522,1373331495,1373331485,1373331481,1373331477,1373331714,1373331888,1373331884,1373331881,1373331880,1373331877,1373331874,1373331923,1373331919,1373331916,1373331914,1373331912,1373331909,1373332119,1373332088,1373332062,1373332037,1373332010,1373331982,1373332345,1373332341,1373332339,1373332338,1373332335,1373332326,1373332370,1373332367,1373332366,1373332364,1373332362,1373332361,1373332421,1373332418,1373332417,1373332414,1373332408,1373332398,1373332711,1373332687,1373332662,1373332635,1373332607,1373332581); 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([25218980]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} new output for save of step final : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398] map_info['map_portfolio_photo'] : {25218980: [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398, 1373332370, 1373332367, 1373332366, 1373332364, 1373332362, 1373332361, 1373332345, 1373332341, 1373332339, 1373332338, 1373332335, 1373332326, 1373332119, 1373332088, 1373332062, 1373332037, 1373332010, 1373331982, 1373331923, 1373331919, 1373331916, 1373331914, 1373331912, 1373331909, 1373331888, 1373331884, 1373331881, 1373331880, 1373331877, 1373331874, 1373331714, 1373331549, 1373331522, 1373331495, 1373331485, 1373331481, 1373331477, 1373331391, 1373331368, 1373331344, 1373331321, 1373331296, 1373331269, 1373331000, 1373330967, 1373330942, 1373330916, 1373330889, 1373330862, 1373330492, 1373330466, 1373330441, 1373330414, 1373330367, 1373330320, 1373329940, 1373329895, 1373329849, 1373329802, 1373329753, 1373329703, 1373329343, 1373329304, 1373329257, 1373329211, 1373329157]} final : False mtd_id 4302 list_pids : [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398] Looping around the photos to save general results len do output : 12 /1373332711.Didn't retrieve data . /1373332687.Didn't retrieve data . /1373332662.Didn't retrieve data . /1373332635.Didn't retrieve data . /1373332607.Didn't retrieve data . /1373332581.Didn't retrieve data . /1373332421.Didn't retrieve data . /1373332418.Didn't retrieve data . /1373332417.Didn't retrieve data . /1373332414.Didn't retrieve data . /1373332408.Didn't retrieve data . /1373332398.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, '3326663') ('4302', '25218980', '1373332711', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332687', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332662', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332635', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332607', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332581', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332421', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332418', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332417', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332414', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332408', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332398', None, None, None, None, None, '3326663') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '25218980', '1373332711', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332687', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332662', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332635', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332607', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332581', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332421', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332418', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332417', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332414', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332408', '0.04737230622135593', None, None, None, None, '3326663'), ('4302', '25218980', '1373332398', '0.04737230622135593', None, None, None, None, '3326663')] time used for this insertion : 0.015341997146606445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07202291488647461 time spend to save output : 0.01593804359436035 total time spend for step 2 : 0.08796095848083496 step3:velours_tree Wed Jul 23 12:14: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 : {25218980: [{'autre_refus': 25218987, 'Carton_brun': 25218988, 'flou': 25218989, 'Teint_Dans_La_Masse': 25218990, 'metal': 25218991, 'kraft': 25218992, 'mal_croppe': 25218993, 'papier': 25218994, 'Carton_gris': 25218995, 'cartonnette': 25218996, 'environnement': 25218997, 'plastique': 25218998}]} input_args_next_step : {25218980: ()} output_args : {25218980: [{'autre_refus': 25218987, 'Carton_brun': 25218988, 'flou': 25218989, 'Teint_Dans_La_Masse': 25218990, 'metal': 25218991, 'kraft': 25218992, 'mal_croppe': 25218993, 'papier': 25218994, 'Carton_gris': 25218995, 'cartonnette': 25218996, 'environnement': 25218997, 'plastique': 25218998}]} args : 25218980 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 : ({'autre_refus': 25218987, 'Carton_brun': 25218988, 'flou': 25218989, 'Teint_Dans_La_Masse': 25218990, 'metal': 25218991, 'kraft': 25218992, 'mal_croppe': 25218993, 'papier': 25218994, 'Carton_gris': 25218995, 'cartonnette': 25218996, 'environnement': 25218997, 'plastique': 25218998},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25218980) 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([25218980]) 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.2757227420806885 time spend to save output : 4.029273986816406e-05 total time spend for step 3 : 0.27576303482055664 step4:send_mail_cod Wed Jul 23 12:14: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 : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} input_args_next_step : {1373332711: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332711 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332687 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332662 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332635 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332607 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332581 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332421 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332418 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332417 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332414 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332408 depend.output_id : 0 input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ()} output_args : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',)} args : 1373332398 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {25218980: [{'autre_refus': 25218987, 'Carton_brun': 25218988, 'flou': 25218989, 'Teint_Dans_La_Masse': 25218990, 'metal': 25218991, 'kraft': 25218992, 'mal_croppe': 25218993, 'papier': 25218994, 'Carton_gris': 25218995, 'cartonnette': 25218996, 'environnement': 25218997, 'plastique': 25218998}]} input_args_next_step : {1373332711: ('0.04737230622135593',), 1373332687: ('0.04737230622135593',), 1373332662: ('0.04737230622135593',), 1373332635: ('0.04737230622135593',), 1373332607: ('0.04737230622135593',), 1373332581: ('0.04737230622135593',), 1373332421: ('0.04737230622135593',), 1373332418: ('0.04737230622135593',), 1373332417: ('0.04737230622135593',), 1373332414: ('0.04737230622135593',), 1373332408: ('0.04737230622135593',), 1373332398: ('0.04737230622135593',), 25218980: ()} output_args : {25218980: [{'autre_refus': 25218987, 'Carton_brun': 25218988, 'flou': 25218989, 'Teint_Dans_La_Masse': 25218990, 'metal': 25218991, 'kraft': 25218992, 'mal_croppe': 25218993, 'papier': 25218994, 'Carton_gris': 25218995, 'cartonnette': 25218996, 'environnement': 25218997, 'plastique': 25218998}]} args : 25218980 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 :13, first value : ('0.04737230622135593',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25218980) 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 (1373332711,1373332687,1373332662,1373332635,1373332607,1373332581,1373332421,1373332418,1373332417,1373332414,1373332408,1373332398) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373332398 begin to download photo : 1373332417 begin to download photo : 1373332581 begin to download photo : 1373332662 download finish for photo 1373332398 begin to download photo : 1373332408 download finish for photo 1373332662 begin to download photo : 1373332687 download finish for photo 1373332581 begin to download photo : 1373332607 download finish for photo 1373332417 begin to download photo : 1373332418 download finish for photo 1373332408 begin to download photo : 1373332414 download finish for photo 1373332687 begin to download photo : 1373332711 download finish for photo 1373332607 begin to download photo : 1373332635 download finish for photo 1373332418 begin to download photo : 1373332421 download finish for photo 1373332711 download finish for photo 1373332414 download finish for photo 1373332635 download finish for photo 1373332421 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 : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25218980_23-07-2025_12_14_59.pdf 25218987 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=25218987 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373332356: '1753265487_4100626_1373331485_9825646ed3f297b0096e060d9db73c5a_rle_crop_3891261138_0.png', 1373332357: '1753265487_4100626_1373331481_a7c77e8246e82e1f127b63ef2f075f42_rle_crop_3891261150_0.png', 1373332358: '1753265487_4100626_1373331481_a7c77e8246e82e1f127b63ef2f075f42_rle_crop_3891261153_0.png', 1373332561: '1753265607_4105804_1373331982_a964e6c09d67ec9772f4809fc20eda9c_rle_crop_3891261559_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/adaa9d51db5cd77e42a60e586ce5cd3c_54919013.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/179a9f61021f87ecb1b5e4eeb11cdb44_66711360.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/52679347357ae530515855b7855b7ca7_53636636.png change filename to text .imagette252189871753265699/ imagette252189871753265699/1753265487_4100626_1373331481_a7c77e8246e82e1f127b63ef2f075f42_rle_crop_3891261153_0.png.png imagette252189871753265699/1753265607_4105804_1373331982_a964e6c09d67ec9772f4809fc20eda9c_rle_crop_3891261559_0.png.png imagette252189871753265699/1753265487_4100626_1373331485_9825646ed3f297b0096e060d9db73c5a_rle_crop_3891261138_0.png.png imagette252189871753265699/1753265487_4100626_1373331481_a7c77e8246e82e1f127b63ef2f075f42_rle_crop_3891261150_0.png.png imagette252189891753265700/ imagette252189911753265700/ imagette252189921753265700/ imagette252189931753265700/ imagette252189961753265700/ imagette252189981753265700/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/f07168a9c9e6e07468d3ddf37e4dbd0d_61979314.png imagette252189871753265699 25218989 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=25218989 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252189891753265700 25218991 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=25218991 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252189911753265700 25218992 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=25218992 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252189921753265700 25218993 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=25218993 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252189931753265700 25218996 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=25218996 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252189961753265700 25218998 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=25218998 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252189981753265700 25218988 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=25218988 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373332359: '1753265487_4100626_1373331485_9825646ed3f297b0096e060d9db73c5a_rle_crop_3891261145_0.png', 1373332360: '1753265487_4100626_1373331481_a7c77e8246e82e1f127b63ef2f075f42_rle_crop_3891261157_0.png', 1373332576: '1753265607_4105804_1373332037_8e1773302721c9b4e56ffcebad6bc73b_rle_crop_3891261533_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/05a1e33ee523eeee813daf993378f22b_39630961.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/4257fadc78f909fe4cbfea0f231c36cf_75509099.png change filename to text .imagette252189881753265700/ imagette252189881753265700/1753265487_4100626_1373331481_a7c77e8246e82e1f127b63ef2f075f42_rle_crop_3891261157_0.png.png imagette252189881753265700/1753265487_4100626_1373331485_9825646ed3f297b0096e060d9db73c5a_rle_crop_3891261145_0.png.png imagette252189881753265700/1753265607_4105804_1373332037_8e1773302721c9b4e56ffcebad6bc73b_rle_crop_3891261533_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/501bfd85da10d7b5509bd1c2059c024d_73024475.png imagette252189881753265700 25218990 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=25218990 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373332550: '1753265607_4105804_1373332062_ae6ebcdf3f3f5eb3e5693ca0a871e396_rle_crop_3891261521_0.png', 1373332552: '1753265607_4105804_1373331982_a964e6c09d67ec9772f4809fc20eda9c_rle_crop_3891261565_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/d1c37b13aedc144cafeebd986010bbd7_86852816.png change filename to text .imagette252189901753265700/ imagette252189901753265700/1753265607_4105804_1373332062_ae6ebcdf3f3f5eb3e5693ca0a871e396_rle_crop_3891261521_0.png.png imagette252189901753265700/1753265607_4105804_1373331982_a964e6c09d67ec9772f4809fc20eda9c_rle_crop_3891261565_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/cd6242d08c702e3fbd9e4125ad99a24c_37492749.png imagette252189901753265700 25218995 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=25218995 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373331872: '1753265246_4092749_1373330862_5643097b4f91afd82a54be2a613ffde4_rle_crop_3891260050_0.png', 1373331972: '1753265365_4096190_1373331344_22a1b2db39df6a7208aed8160180d5f9_rle_crop_3891260573_0.png', 1373332567: '1753265607_4105804_1373332010_40d33c3198eb82517044889ecc662032_rle_crop_3891261547_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/9b22eb9f99c4e9d2b5d4e00cf15c9bd7_85276532.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/b6061f3b7887596a9c79aca903ba8c24_9706952.png change filename to text .imagette252189951753265700/ imagette252189951753265700/1753265607_4105804_1373332010_40d33c3198eb82517044889ecc662032_rle_crop_3891261547_0.png.png imagette252189951753265700/1753265365_4096190_1373331344_22a1b2db39df6a7208aed8160180d5f9_rle_crop_3891260573_0.png.png imagette252189951753265700/1753265246_4092749_1373330862_5643097b4f91afd82a54be2a613ffde4_rle_crop_3891260050_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/3f3b3f57705eab33db6feb596d78f5bd_38426487.png imagette252189951753265700 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25218980 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25219000,25219001,25219002,25219003,25219004,25219005,25219006,25219007,25219008,25219009,25219010,25219011?tags=autre_refus,Carton_brun,flou,Teint_Dans_La_Masse,metal,kraft,mal_croppe,papier,Carton_gris,cartonnette,environnement,plastique your option no_mail is active, we will not send the real mail to your client args[1373332711] : ('0.04737230622135593',) no score found for photo 1373332711 We are sending mail with results at report@fotonower.com args[1373332687] : ('0.04737230622135593',) no score found for photo 1373332687 We are sending mail with results at report@fotonower.com args[1373332662] : ('0.04737230622135593',) no score found for photo 1373332662 We are sending mail with results at report@fotonower.com args[1373332635] : ('0.04737230622135593',) no score found for photo 1373332635 We are sending mail with results at report@fotonower.com args[1373332607] : ('0.04737230622135593',) no score found for photo 1373332607 We are sending mail with results at report@fotonower.com args[1373332581] : ('0.04737230622135593',) no score found for photo 1373332581 We are sending mail with results at report@fotonower.com args[1373332421] : ('0.04737230622135593',) no score found for photo 1373332421 We are sending mail with results at report@fotonower.com args[1373332418] : ('0.04737230622135593',) no score found for photo 1373332418 We are sending mail with results at report@fotonower.com args[1373332417] : ('0.04737230622135593',) no score found for photo 1373332417 We are sending mail with results at report@fotonower.com args[1373332414] : ('0.04737230622135593',) no score found for photo 1373332414 We are sending mail with results at report@fotonower.com args[1373332408] : ('0.04737230622135593',) no score found for photo 1373332408 We are sending mail with results at report@fotonower.com args[1373332398] : ('0.04737230622135593',) no score found for photo 1373332398 We are sending mail with results at report@fotonower.com refus_total : 0.04737230622135593 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=25218980 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_P25218980_23-07-2025_12_14_59.pdf results_Auto_P25218980_23-07-2025_12_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25218980_23-07-2025_12_14_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','25218980','results_Auto_P25218980_23-07-2025_12_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25218980_23-07-2025_12_14_59.pdf','pdf','','0.13','0.04737230622135593') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25218980]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398] map_info['map_portfolio_photo'] : {25218980: [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398, 1373332370, 1373332367, 1373332366, 1373332364, 1373332362, 1373332361, 1373332345, 1373332341, 1373332339, 1373332338, 1373332335, 1373332326, 1373332119, 1373332088, 1373332062, 1373332037, 1373332010, 1373331982, 1373331923, 1373331919, 1373331916, 1373331914, 1373331912, 1373331909, 1373331888, 1373331884, 1373331881, 1373331880, 1373331877, 1373331874, 1373331714, 1373331549, 1373331522, 1373331495, 1373331485, 1373331481, 1373331477, 1373331391, 1373331368, 1373331344, 1373331321, 1373331296, 1373331269, 1373331000, 1373330967, 1373330942, 1373330916, 1373330889, 1373330862, 1373330492, 1373330466, 1373330441, 1373330414, 1373330367, 1373330320, 1373329940, 1373329895, 1373329849, 1373329802, 1373329753, 1373329703, 1373329343, 1373329304, 1373329257, 1373329211, 1373329157]} final : False mtd_id 4302 list_pids : [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398] 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, '3326663') ('4302', '25218980', '1373332711', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332687', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332662', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332635', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332607', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332581', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332421', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332418', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332417', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332414', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332408', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332398', None, None, None, None, None, '3326663') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25218980', '1373332711', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332687', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332662', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332635', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332607', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332581', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332421', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332418', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332417', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332414', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332408', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332398', None, None, None, None, None, '3326663')] time used for this insertion : 0.013768196105957031 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.25575852394104 time spend to save output : 0.014000177383422852 total time spend for step 4 : 2.269758701324463 step5:split_time_score Wed Jul 23 12:15:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25218980'] 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 : [('25218980',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25218980) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373332662: {'path': 'temp/1753265699_2713044_1373332662_6c52f6623f5b9bb5f1d20536a9863936.jpg', 'extension': 'jpg'}, 1373332687: {'path': 'temp/1753265699_2713044_1373332687_31b5df200511544872e4bf936a1ff5ca.jpg', 'extension': 'jpg'}, 1373332711: {'path': 'temp/1753265699_2713044_1373332711_a42767afdc9a64fe0da467cdcfbe8016.jpg', 'extension': 'jpg'}, 1373332398: {'path': 'temp/1753265699_2713044_1373332398_1f2bfb59b84bf742ce6da8b394adfaaf.jpg', 'extension': 'jpg'}, 1373332408: {'path': 'temp/1753265699_2713044_1373332408_ece9d9ab565865a17a78d68268e90775.jpg', 'extension': 'jpg'}, 1373332414: {'path': 'temp/1753265699_2713044_1373332414_5a0b75e2c9862571dae7b9b3aa24f86b.jpg', 'extension': 'jpg'}, 1373332581: {'path': 'temp/1753265699_2713044_1373332581_daaed2a837b0673250c8d112cd7ae850.jpg', 'extension': 'jpg'}, 1373332607: {'path': 'temp/1753265699_2713044_1373332607_ab552d95430a902ba274dadbeed5cd68.jpg', 'extension': 'jpg'}, 1373332635: {'path': 'temp/1753265699_2713044_1373332635_367b4c05bfc8a7e5e907b572764d6729.jpg', 'extension': 'jpg'}, 1373332417: {'path': 'temp/1753265699_2713044_1373332417_9c5fa7cc466a09fba7cba9d7b26f49b1.jpg', 'extension': 'jpg'}, 1373332418: {'path': 'temp/1753265699_2713044_1373332418_267796ed0df7584045334e1af06ffbd4.jpg', 'extension': 'jpg'}, 1373332421: {'path': 'temp/1753265699_2713044_1373332421_40b9e5c95a1fb95b82c8df38e42a8b85.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 = 25218980; (('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 = 25218980 group by h (('12', 78),) 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=25218980 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 (25218980) 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 (25218980) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23072025 25218980 Nombre de photos uploadées : 78 / 23040 (0%) 23072025 25218980 Nombre de photos taguées (types de déchets): 0 / 78 (0%) 23072025 25218980 Nombre de photos taguées (volume) : 0 / 78 (0%) [{'photo_id': 1373329343, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/ae7a08dbda825eaa151fb66c3ba3672c.jpg', 'username': None, 'uploaded_at': 1753264864, 'text': 'image_23072025_12_00_13_10159.jpg'}, {'photo_id': 1373329304, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/96216b3e026d60b23fae46547f0cedc3.jpg', 'username': None, 'uploaded_at': 1753264864, 'text': 'image_23072025_12_00_24_10141.jpg'}, {'photo_id': 1373329257, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/c3ac70893c61328276ec7d0296d6758f.jpg', 'username': None, 'uploaded_at': 1753264864, 'text': 'image_23072025_12_00_34_10145.jpg'}, {'photo_id': 1373329211, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/23/28d8244d730e30c46f15fbe902bceed7.jpg', 'username': None, 'uploaded_at': 1753264864, 'text': 'image_23072025_12_00_44_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0033369064331054688 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25218980, '2025-07-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1998971,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02763843536376953 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= 1998971 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25197613, 'dashboard_result_id': 12936869, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197982, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25197615, 'dashboard_result_id': 12936870, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198007, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25197619, 'dashboard_result_id': 12936871, '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_P25197619_23-07-2025_02_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197952, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25197657, 'dashboard_result_id': 12936872, '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_P25197657_23-07-2025_02_31_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197719, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25197783, 'dashboard_result_id': 12936873, '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_P25197783_23-07-2025_06_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197801, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25198343, 'dashboard_result_id': 12936874, '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_P25198343_23-07-2025_06_39_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198359, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25198784, 'dashboard_result_id': 12936875, '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_P25198784_23-07-2025_06_40_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198804, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25199165, 'dashboard_result_id': 12936876, '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_P25199165_23-07-2025_06_40_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199181, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25199515, 'dashboard_result_id': 12936877, '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_P25199515_23-07-2025_08_00_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199538, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25199911, 'dashboard_result_id': 12936879, '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_P25199911_23-07-2025_06_42_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199928, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25200162, 'dashboard_result_id': 12936880, '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_P25200162_23-07-2025_06_42_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200178, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25200433, 'dashboard_result_id': 12936881, '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_P25200433_23-07-2025_06_43_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200450, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25200785, 'dashboard_result_id': 12936883, '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_P25200785_23-07-2025_06_44_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200805, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25201192, 'dashboard_result_id': 12936884, '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_P25201192_23-07-2025_03_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201215, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25201529, 'dashboard_result_id': 12936885, '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_P25201529_23-07-2025_03_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201552, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25201927, 'dashboard_result_id': 12936886, '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_P25201927_23-07-2025_04_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201939, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25202358, 'dashboard_result_id': 12936888, '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_P25202358_23-07-2025_04_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25202377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202389, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25202820, 'dashboard_result_id': 12936889, '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_P25202820_23-07-2025_04_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25202839, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25203148, 'dashboard_result_id': 12936890, '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_P25203148_23-07-2025_04_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25203154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203160, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203165, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25203440, 'dashboard_result_id': 12936891, '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_P25203440_23-07-2025_05_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25203446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203457, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25203705, 'dashboard_result_id': 12936892, '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_P25203705_23-07-2025_05_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203725, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25204069, 'dashboard_result_id': 12936894, '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_P25204069_23-07-2025_05_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204085, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25204338, 'dashboard_result_id': 12936895, '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_P25204338_23-07-2025_09_59_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204360, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25204675, 'dashboard_result_id': 12936896, '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_P25204675_23-07-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204687, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25205033, 'dashboard_result_id': 12936897, '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_P25205033_23-07-2025_06_16_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205053, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25205470, 'dashboard_result_id': 12936898, '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_P25205470_23-07-2025_06_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205490, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25205786, 'dashboard_result_id': 12936899, '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_P25205786_23-07-2025_06_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25205828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205839, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25206122, 'dashboard_result_id': 12936900, '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_P25206122_23-07-2025_07_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206139, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25206518, 'dashboard_result_id': 12936901, '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_P25206518_23-07-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206545, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25206990, 'dashboard_result_id': 12936902, '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_P25206990_23-07-2025_07_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207008, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25207467, 'dashboard_result_id': 12936903, '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_P25207467_23-07-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25207513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25207520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25207521, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25208004, 'dashboard_result_id': 12936904, '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_P25208004_23-07-2025_08_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208017, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25208494, 'dashboard_result_id': 12936905, '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_P25208494_23-07-2025_08_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208511, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25209251, 'dashboard_result_id': 12936906, '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_P25209251_23-07-2025_08_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209272, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25209884, 'dashboard_result_id': 12936907, '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_P25209884_23-07-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209902, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25210669, 'dashboard_result_id': 12936908, '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_P25210669_23-07-2025_09_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25210712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25210713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25210714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25210715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25210716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25210717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25210718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25210719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25210720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25210721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25210722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25210723, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25211266, 'dashboard_result_id': 12936909, '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_P25211266_23-07-2025_09_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25211272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25211273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25211274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25211275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25211276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25211277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25211279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25211280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25211281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25211282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25211283, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25212119, 'dashboard_result_id': 12936910, '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_P25212119_23-07-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25212146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212160, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25212818, 'dashboard_result_id': 12936911, '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_P25212818_23-07-2025_09_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25212850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212856, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25213405, 'dashboard_result_id': 12936912, '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_P25213405_23-07-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25213427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25213428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25213429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25213430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25213431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25213432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25213433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25213435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25213436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25213437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25213438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25213439, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25214060, 'dashboard_result_id': 12936913, '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_P25214060_23-07-2025_10_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214116, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25214880, 'dashboard_result_id': 12936914, '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_P25214880_23-07-2025_10_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214905, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25215593, 'dashboard_result_id': 12936915, '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_P25215593_23-07-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25215618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25215619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25215620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25215621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25215622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25215623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25215624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25215625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25215626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25215627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25215628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25215629, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25216187, 'dashboard_result_id': 12936916, '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_P25216187_23-07-2025_11_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216246, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25216765, 'dashboard_result_id': 12936917, '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_P25216765_23-07-2025_11_17_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216786, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25217393, 'dashboard_result_id': 12936918, '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_P25217393_23-07-2025_11_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217410, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25217954, 'dashboard_result_id': 12936919, '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_P25217954_23-07-2025_11_46_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217975, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25218560, 'dashboard_result_id': 12936920, '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_P25218560_23-07-2025_12_00_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218577, 'pht': 3726}}"}, {'dashboat_entry_day': 1998971, 'dashboard_run_id': 2008229, 'mtr_portfolio_id': 25218980, 'dashboard_result_id': 12936921, '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_P25218980_23-07-2025_12_10_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218998, '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 = 25197613 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25197613 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197613 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25197613%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197613 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197973, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197975, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197976, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197981, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197982, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 25197613 and dashboard_run_id = 2008229 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 = 25197615 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': 3323715, 'mtr_portfolio_id': 25197615, 'created_at': datetime.datetime(2025, 7, 23, 6, 37, 2), 'result': '0.00839406749354818', 'result_long': None, 'result_double': None}] Qualite : 0.00839406749354818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197615 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%25197615%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197615 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198007, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 25197615 and dashboard_run_id = 2008229 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`=25197615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936870, 0.00839406749354818, "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198007, 'pht': 3726}, 'url_report': ''}") 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 = 25197619 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': 3323716, 'mtr_portfolio_id': 25197619, 'created_at': datetime.datetime(2025, 7, 23, 6, 37, 29), 'result': '0.056877370770490834', 'result_long': None, 'result_double': None}] Qualite : 0.056877370770490834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197619_23-07-2025_02_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197619 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_P25197619_23-07-2025_02_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197952, 'pht': 3726}}" where mtr_portfolio_id = 25197619 and dashboard_run_id = 2008229 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`=25197619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936871, 0.056877370770490834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197619_23-07-2025_02_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197952, '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 = 25197657 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25197657 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197657_23-07-2025_02_31_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197657 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_P25197657_23-07-2025_02_31_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197710, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197719, 'pht': 3726}}" where mtr_portfolio_id = 25197657 and dashboard_run_id = 2008229 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 = 25197783 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': 3323718, 'mtr_portfolio_id': 25197783, 'created_at': datetime.datetime(2025, 7, 23, 6, 38, 28), 'result': '0.02886245840882635', 'result_long': None, 'result_double': None}] Qualite : 0.02886245840882635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25197783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197783_23-07-2025_06_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25197783 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_P25197783_23-07-2025_06_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197801, 'pht': 3726}}" where mtr_portfolio_id = 25197783 and dashboard_run_id = 2008229 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`=25197783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936873, 0.02886245840882635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25197783_23-07-2025_06_38_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25197790, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25197791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25197792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25197793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25197794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25197795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25197796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25197797, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25197798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25197799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25197800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25197801, '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 = 25198343 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': 3323719, 'mtr_portfolio_id': 25198343, 'created_at': datetime.datetime(2025, 7, 23, 6, 39, 30), 'result': '0.041808970347004655', 'result_long': None, 'result_double': None}] Qualite : 0.041808970347004655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25198343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198343_23-07-2025_06_39_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25198343 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_P25198343_23-07-2025_06_39_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198359, 'pht': 3726}}" where mtr_portfolio_id = 25198343 and dashboard_run_id = 2008229 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`=25198343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936874, 0.041808970347004655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198343_23-07-2025_06_39_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198352, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198353, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198359, '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 = 25198784 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': 3323720, 'mtr_portfolio_id': 25198784, 'created_at': datetime.datetime(2025, 7, 23, 6, 39, 59), 'result': '0.026347513587036516', 'result_long': None, 'result_double': None}] Qualite : 0.026347513587036516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25198784 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198784_23-07-2025_06_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25198784 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_P25198784_23-07-2025_06_40_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198804, 'pht': 3726}}" where mtr_portfolio_id = 25198784 and dashboard_run_id = 2008229 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`=25198784 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936875, 0.026347513587036516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25198784_23-07-2025_06_40_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25198793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25198794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25198795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25198796, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25198797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25198798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25198799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25198800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25198801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25198802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25198803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25198804, '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 = 25199165 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': 3323721, 'mtr_portfolio_id': 25199165, 'created_at': datetime.datetime(2025, 7, 23, 6, 40, 28), 'result': '0.03960977473573029', 'result_long': None, 'result_double': None}] Qualite : 0.03960977473573029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25199165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199165_23-07-2025_06_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25199165 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_P25199165_23-07-2025_06_40_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199181, 'pht': 3726}}" where mtr_portfolio_id = 25199165 and dashboard_run_id = 2008229 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`=25199165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936876, 0.03960977473573029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199165_23-07-2025_06_40_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199171, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199172, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199176, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199177, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199179, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199181, '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 = 25199515 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': 3323722, 'mtr_portfolio_id': 25199515, 'created_at': datetime.datetime(2025, 7, 23, 8, 0, 29), 'result': '0.03859466299113504', 'result_long': None, 'result_double': None}] Qualite : 0.03859466299113504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25199515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199515_23-07-2025_08_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25199515 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_P25199515_23-07-2025_08_00_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199538, 'pht': 3726}}" where mtr_portfolio_id = 25199515 and dashboard_run_id = 2008229 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`=25199515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936877, 0.03859466299113504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199515_23-07-2025_08_00_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199528, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199529, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199533, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199538, '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 = 25199911 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': 3323723, 'mtr_portfolio_id': 25199911, 'created_at': datetime.datetime(2025, 7, 23, 6, 42), 'result': '0.05261409959447195', 'result_long': None, 'result_double': None}] Qualite : 0.05261409959447195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25199911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199911_23-07-2025_06_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25199911 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_P25199911_23-07-2025_06_42_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199928, 'pht': 3726}}" where mtr_portfolio_id = 25199911 and dashboard_run_id = 2008229 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`=25199911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936879, 0.05261409959447195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25199911_23-07-2025_06_42_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25199917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25199918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25199919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25199920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25199921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25199922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25199923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25199924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25199925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25199926, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25199927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25199928, '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 = 25200162 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': 3323724, 'mtr_portfolio_id': 25200162, 'created_at': datetime.datetime(2025, 7, 23, 6, 42, 31), 'result': '0.04392057109892702', 'result_long': None, 'result_double': None}] Qualite : 0.04392057109892702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25200162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200162_23-07-2025_06_42_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25200162 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_P25200162_23-07-2025_06_42_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200178, 'pht': 3726}}" where mtr_portfolio_id = 25200162 and dashboard_run_id = 2008229 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`=25200162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936880, 0.04392057109892702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200162_23-07-2025_06_42_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200168, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200175, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200178, '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 = 25200433 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': 3323725, 'mtr_portfolio_id': 25200433, 'created_at': datetime.datetime(2025, 7, 23, 6, 43, 27), 'result': '0.031179407153532762', 'result_long': None, 'result_double': None}] Qualite : 0.031179407153532762 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25200433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200433_23-07-2025_06_43_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25200433 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_P25200433_23-07-2025_06_43_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200450, 'pht': 3726}}" where mtr_portfolio_id = 25200433 and dashboard_run_id = 2008229 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`=25200433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936881, 0.031179407153532762, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200433_23-07-2025_06_43_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200439, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200450, '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 = 25200785 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': 3323726, 'mtr_portfolio_id': 25200785, 'created_at': datetime.datetime(2025, 7, 23, 6, 43, 58), 'result': '0.051755635640774206', 'result_long': None, 'result_double': None}] Qualite : 0.051755635640774206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25200785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200785_23-07-2025_06_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25200785 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_P25200785_23-07-2025_06_44_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200805, 'pht': 3726}}" where mtr_portfolio_id = 25200785 and dashboard_run_id = 2008229 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`=25200785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936883, 0.051755635640774206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25200785_23-07-2025_06_44_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25200794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25200795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25200796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25200797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25200798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25200799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25200800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25200801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25200802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25200803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25200804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25200805, '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 = 25201192 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': 3322978, 'mtr_portfolio_id': 25201192, 'created_at': datetime.datetime(2025, 7, 23, 3, 33, 1), 'result': '0.05648432438382716', 'result_long': None, 'result_double': None}] Qualite : 0.05648432438382716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25201192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201192_23-07-2025_03_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25201192 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_P25201192_23-07-2025_03_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201215, 'pht': 3726}}" where mtr_portfolio_id = 25201192 and dashboard_run_id = 2008229 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`=25201192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936884, 0.05648432438382716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201192_23-07-2025_03_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201215, '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 = 25201529 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': 3323063, 'mtr_portfolio_id': 25201529, 'created_at': datetime.datetime(2025, 7, 23, 3, 46, 58), 'result': '0.05412303578779002', 'result_long': None, 'result_double': None}] Qualite : 0.05412303578779002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25201529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201529_23-07-2025_03_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25201529 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_P25201529_23-07-2025_03_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201552, 'pht': 3726}}" where mtr_portfolio_id = 25201529 and dashboard_run_id = 2008229 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`=25201529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936885, 0.05412303578779002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201529_23-07-2025_03_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201546, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201551, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201552, '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 = 25201927 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': 3323150, 'mtr_portfolio_id': 25201927, 'created_at': datetime.datetime(2025, 7, 23, 4, 1, 1), 'result': '0.067160575223373', 'result_long': None, 'result_double': None}] Qualite : 0.067160575223373 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25201927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201927_23-07-2025_04_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25201927 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_P25201927_23-07-2025_04_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201939, 'pht': 3726}}" where mtr_portfolio_id = 25201927 and dashboard_run_id = 2008229 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`=25201927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936886, 0.067160575223373, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25201927_23-07-2025_04_01_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25201928, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25201929, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25201930, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25201931, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25201932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25201933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25201934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25201935, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25201936, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25201937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25201938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25201939, '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 = 25202358 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': 3323230, 'mtr_portfolio_id': 25202358, 'created_at': datetime.datetime(2025, 7, 23, 4, 16, 58), 'result': '0.0588588347259472', 'result_long': None, 'result_double': None}] Qualite : 0.0588588347259472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25202358 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202358_23-07-2025_04_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25202358 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_P25202358_23-07-2025_04_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25202377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202389, 'pht': 3726}}" where mtr_portfolio_id = 25202358 and dashboard_run_id = 2008229 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`=25202358 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936888, 0.0588588347259472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202358_23-07-2025_04_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25202377, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202383, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202389, '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 = 25202820 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': 3323286, 'mtr_portfolio_id': 25202820, 'created_at': datetime.datetime(2025, 7, 23, 4, 30, 56), 'result': '0.030636916095391813', 'result_long': None, 'result_double': None}] Qualite : 0.030636916095391813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25202820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202820_23-07-2025_04_30_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25202820 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_P25202820_23-07-2025_04_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25202839, 'pht': 3726}}" where mtr_portfolio_id = 25202820 and dashboard_run_id = 2008229 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`=25202820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936889, 0.030636916095391813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25202820_23-07-2025_04_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25202828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25202829, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25202830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25202831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25202832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25202833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25202834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25202835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25202836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25202837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25202838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25202839, '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 = 25203148 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': 3323342, 'mtr_portfolio_id': 25203148, 'created_at': datetime.datetime(2025, 7, 23, 4, 46, 30), 'result': '0.04546662090987921', 'result_long': None, 'result_double': None}] Qualite : 0.04546662090987921 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25203148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203148_23-07-2025_04_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25203148 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_P25203148_23-07-2025_04_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25203154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203160, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203165, 'pht': 3726}}" where mtr_portfolio_id = 25203148 and dashboard_run_id = 2008229 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`=25203148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936890, 0.04546662090987921, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203148_23-07-2025_04_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25203154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203160, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203161, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203165, '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 = 25203440 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': 3323427, 'mtr_portfolio_id': 25203440, 'created_at': datetime.datetime(2025, 7, 23, 5, 0, 32), 'result': '0.034047892328201164', 'result_long': None, 'result_double': None}] Qualite : 0.034047892328201164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25203440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203440_23-07-2025_05_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25203440 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_P25203440_23-07-2025_05_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25203446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203457, 'pht': 3726}}" where mtr_portfolio_id = 25203440 and dashboard_run_id = 2008229 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`=25203440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936891, 0.034047892328201164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203440_23-07-2025_05_00_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25203446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203450, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203453, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203456, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203457, '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 = 25203705 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25203705 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25203705 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25203705 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25203705 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3323504, 'mtr_portfolio_id': 25203705, 'created_at': datetime.datetime(2025, 7, 23, 5, 17), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25203705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203705_23-07-2025_05_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25203705 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_P25203705_23-07-2025_05_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203725, 'pht': 3726}}" where mtr_portfolio_id = 25203705 and dashboard_run_id = 2008229 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`=25203705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936892, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25203705_23-07-2025_05_17_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25203714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25203715, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25203716, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25203717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25203718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25203719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25203720, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25203721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25203722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25203723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25203724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25203725, '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 = 25204069 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': 3323569, 'mtr_portfolio_id': 25204069, 'created_at': datetime.datetime(2025, 7, 23, 5, 33, 1), 'result': '0.037719252713798175', 'result_long': None, 'result_double': None}] Qualite : 0.037719252713798175 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25204069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204069_23-07-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25204069 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_P25204069_23-07-2025_05_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204085, 'pht': 3726}}" where mtr_portfolio_id = 25204069 and dashboard_run_id = 2008229 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`=25204069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936894, 0.037719252713798175, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204069_23-07-2025_05_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204076, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204085, '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 = 25204338 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': 3323609, 'mtr_portfolio_id': 25204338, 'created_at': datetime.datetime(2025, 7, 23, 9, 59, 57), 'result': '0.040491279234443775', 'result_long': None, 'result_double': None}] Qualite : 0.040491279234443775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25204338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204338_23-07-2025_09_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25204338 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_P25204338_23-07-2025_09_59_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204360, 'pht': 3726}}" where mtr_portfolio_id = 25204338 and dashboard_run_id = 2008229 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`=25204338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936895, 0.040491279234443775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204338_23-07-2025_09_59_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204350, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204358, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204360, '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 = 25204675 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': 3323828, 'mtr_portfolio_id': 25204675, 'created_at': datetime.datetime(2025, 7, 23, 6, 0, 58), 'result': '0.043333880846648694', 'result_long': None, 'result_double': None}] Qualite : 0.043333880846648694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25204675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204675_23-07-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25204675 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_P25204675_23-07-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204687, 'pht': 3726}}" where mtr_portfolio_id = 25204675 and dashboard_run_id = 2008229 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`=25204675 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936896, 0.043333880846648694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25204675_23-07-2025_06_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25204676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25204677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25204678, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25204679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25204680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25204681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25204682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25204683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25204684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25204685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25204686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25204687, '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 = 25205033 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': 3323904, 'mtr_portfolio_id': 25205033, 'created_at': datetime.datetime(2025, 7, 23, 6, 16, 31), 'result': '0.04369284895710229', 'result_long': None, 'result_double': None}] Qualite : 0.04369284895710229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25205033 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205033_23-07-2025_06_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25205033 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_P25205033_23-07-2025_06_16_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205053, 'pht': 3726}}" where mtr_portfolio_id = 25205033 and dashboard_run_id = 2008229 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`=25205033 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936897, 0.04369284895710229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205033_23-07-2025_06_16_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205053, '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 = 25205470 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': 3323965, 'mtr_portfolio_id': 25205470, 'created_at': datetime.datetime(2025, 7, 23, 6, 30, 58), 'result': '0.037566501258232576', 'result_long': None, 'result_double': None}] Qualite : 0.037566501258232576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25205470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205470_23-07-2025_06_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25205470 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_P25205470_23-07-2025_06_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205490, 'pht': 3726}}" where mtr_portfolio_id = 25205470 and dashboard_run_id = 2008229 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`=25205470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936898, 0.037566501258232576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205470_23-07-2025_06_30_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25205480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205481, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205490, '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 = 25205786 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': 3324023, 'mtr_portfolio_id': 25205786, 'created_at': datetime.datetime(2025, 7, 23, 6, 46, 29), 'result': '0.020481238383310903', 'result_long': None, 'result_double': None}] Qualite : 0.020481238383310903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25205786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205786_23-07-2025_06_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25205786 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_P25205786_23-07-2025_06_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25205828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205839, 'pht': 3726}}" where mtr_portfolio_id = 25205786 and dashboard_run_id = 2008229 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`=25205786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936899, 0.020481238383310903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25205786_23-07-2025_06_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25205828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25205829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25205830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25205831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25205832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25205833, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25205834, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25205835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25205836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25205837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25205838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25205839, '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 = 25206122 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': 3324089, 'mtr_portfolio_id': 25206122, 'created_at': datetime.datetime(2025, 7, 23, 7, 0, 59), 'result': '0.05796048878129634', 'result_long': None, 'result_double': None}] Qualite : 0.05796048878129634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25206122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206122_23-07-2025_07_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25206122 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_P25206122_23-07-2025_07_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206139, 'pht': 3726}}" where mtr_portfolio_id = 25206122 and dashboard_run_id = 2008229 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`=25206122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936900, 0.05796048878129634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206122_23-07-2025_07_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206139, '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 = 25206518 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': 3324164, 'mtr_portfolio_id': 25206518, 'created_at': datetime.datetime(2025, 7, 23, 7, 16, 58), 'result': '0.07099667329341938', 'result_long': None, 'result_double': None}] Qualite : 0.07099667329341938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25206518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206518_23-07-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25206518 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_P25206518_23-07-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206545, 'pht': 3726}}" where mtr_portfolio_id = 25206518 and dashboard_run_id = 2008229 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`=25206518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936901, 0.07099667329341938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206518_23-07-2025_07_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25206535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25206536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206537, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25206538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25206539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25206540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25206541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25206542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25206543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25206544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206545, '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 = 25206990 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': 3324258, 'mtr_portfolio_id': 25206990, 'created_at': datetime.datetime(2025, 7, 23, 7, 33), 'result': '0.04000680346490748', 'result_long': None, 'result_double': None}] Qualite : 0.04000680346490748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25206990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206990_23-07-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25206990 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_P25206990_23-07-2025_07_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207008, 'pht': 3726}}" where mtr_portfolio_id = 25206990 and dashboard_run_id = 2008229 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`=25206990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936902, 0.04000680346490748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25206990_23-07-2025_07_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25206997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25206998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25206999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207008, '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 = 25207467 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': 3324327, 'mtr_portfolio_id': 25207467, 'created_at': datetime.datetime(2025, 7, 23, 7, 46, 59), 'result': '0.06197151389701075', 'result_long': None, 'result_double': None}] Qualite : 0.06197151389701075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25207467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25207467_23-07-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25207467 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_P25207467_23-07-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25207513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25207520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25207521, 'pht': 3726}}" where mtr_portfolio_id = 25207467 and dashboard_run_id = 2008229 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`=25207467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936903, 0.06197151389701075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25207467_23-07-2025_07_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25207510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25207511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25207512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25207513, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25207514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25207515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25207516, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25207517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25207518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25207519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25207520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25207521, '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 = 25208004 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': 3324425, 'mtr_portfolio_id': 25208004, 'created_at': datetime.datetime(2025, 7, 23, 8, 0, 59), 'result': '0.045073214150807984', 'result_long': None, 'result_double': None}] Qualite : 0.045073214150807984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25208004 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208004_23-07-2025_08_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25208004 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_P25208004_23-07-2025_08_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208017, 'pht': 3726}}" where mtr_portfolio_id = 25208004 and dashboard_run_id = 2008229 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`=25208004 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936904, 0.045073214150807984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208004_23-07-2025_08_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208010, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208014, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208016, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208017, '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 = 25208494 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': 3324523, 'mtr_portfolio_id': 25208494, 'created_at': datetime.datetime(2025, 7, 23, 8, 16, 58), 'result': '0.039640742541190085', 'result_long': None, 'result_double': None}] Qualite : 0.039640742541190085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25208494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208494_23-07-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25208494 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_P25208494_23-07-2025_08_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208511, 'pht': 3726}}" where mtr_portfolio_id = 25208494 and dashboard_run_id = 2008229 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`=25208494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936905, 0.039640742541190085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25208494_23-07-2025_08_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25208500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25208501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25208502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25208503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25208504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25208505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25208506, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25208507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25208508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25208509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25208510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25208511, '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 = 25209251 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': 3324702, 'mtr_portfolio_id': 25209251, 'created_at': datetime.datetime(2025, 7, 23, 8, 30, 58), 'result': '0.03862680704665533', 'result_long': None, 'result_double': None}] Qualite : 0.03862680704665533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25209251 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209251_23-07-2025_08_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25209251 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_P25209251_23-07-2025_08_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209272, 'pht': 3726}}" where mtr_portfolio_id = 25209251 and dashboard_run_id = 2008229 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`=25209251 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936906, 0.03862680704665533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209251_23-07-2025_08_30_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209272, '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 = 25209884 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': 3324906, 'mtr_portfolio_id': 25209884, 'created_at': datetime.datetime(2025, 7, 23, 8, 46, 30), 'result': '0.041345462400560466', 'result_long': None, 'result_double': None}] Qualite : 0.041345462400560466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25209884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209884_23-07-2025_08_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25209884 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_P25209884_23-07-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209902, 'pht': 3726}}" where mtr_portfolio_id = 25209884 and dashboard_run_id = 2008229 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`=25209884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936907, 0.041345462400560466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25209884_23-07-2025_08_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25209891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25209892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25209893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25209894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25209895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25209896, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25209897, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25209898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25209899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25209900, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25209901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25209902, '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 = 25210669 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': 3325103, 'mtr_portfolio_id': 25210669, 'created_at': datetime.datetime(2025, 7, 23, 9, 0, 57), 'result': '0.05059198256762291', 'result_long': None, 'result_double': None}] Qualite : 0.05059198256762291 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25210669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25210669_23-07-2025_09_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25210669 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_P25210669_23-07-2025_09_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25210712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25210713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25210714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25210715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25210716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25210717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25210718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25210719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25210720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25210721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25210722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25210723, 'pht': 3726}}" where mtr_portfolio_id = 25210669 and dashboard_run_id = 2008229 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`=25210669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936908, 0.05059198256762291, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25210669_23-07-2025_09_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25210712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25210713, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25210714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25210715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25210716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25210717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25210718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25210719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25210720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25210721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25210722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25210723, '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 = 25211266 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25211266 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25211266 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25211266 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25211266 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3325223, 'mtr_portfolio_id': 25211266, 'created_at': datetime.datetime(2025, 7, 23, 9, 16, 59), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25211266 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25211266_23-07-2025_09_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25211266 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_P25211266_23-07-2025_09_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25211272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25211273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25211274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25211275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25211276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25211277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25211279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25211280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25211281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25211282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25211283, 'pht': 3726}}" where mtr_portfolio_id = 25211266 and dashboard_run_id = 2008229 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`=25211266 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936909, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25211266_23-07-2025_09_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25211272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25211273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25211274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25211275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25211276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25211277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25211279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25211280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25211281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25211282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25211283, '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 = 25212119 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25212119 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25212119 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25212119 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25212119 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3325379, 'mtr_portfolio_id': 25212119, 'created_at': datetime.datetime(2025, 7, 23, 9, 32, 57), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25212119 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25212119_23-07-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25212119 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_P25212119_23-07-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25212146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212160, 'pht': 3726}}" where mtr_portfolio_id = 25212119 and dashboard_run_id = 2008229 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`=25212119 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936910, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25212119_23-07-2025_09_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25212146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212160, '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 = 25212818 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': 3325479, 'mtr_portfolio_id': 25212818, 'created_at': datetime.datetime(2025, 7, 23, 9, 46, 59), 'result': '0.013747771416496747', 'result_long': None, 'result_double': None}] Qualite : 0.013747771416496747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25212818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25212818_23-07-2025_09_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25212818 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_P25212818_23-07-2025_09_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25212850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212856, 'pht': 3726}}" where mtr_portfolio_id = 25212818 and dashboard_run_id = 2008229 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`=25212818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936911, 0.013747771416496747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25212818_23-07-2025_09_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25212845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25212846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25212847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25212848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25212849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25212850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25212851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25212852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25212853, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25212854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25212856, '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 = 25213405 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': 3325550, 'mtr_portfolio_id': 25213405, 'created_at': datetime.datetime(2025, 7, 23, 10, 2, 57), 'result': '0.02853943853269189', 'result_long': None, 'result_double': None}] Qualite : 0.02853943853269189 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25213405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25213405_23-07-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25213405 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_P25213405_23-07-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25213427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25213428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25213429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25213430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25213431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25213432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25213433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25213435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25213436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25213437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25213438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25213439, 'pht': 3726}}" where mtr_portfolio_id = 25213405 and dashboard_run_id = 2008229 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`=25213405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936912, 0.02853943853269189, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25213405_23-07-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25213427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25213428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25213429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25213430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25213431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25213432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25213433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25213435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25213436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25213437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25213438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25213439, '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 = 25214060 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': 3325682, 'mtr_portfolio_id': 25214060, 'created_at': datetime.datetime(2025, 7, 23, 10, 16, 59), 'result': '0.06279777488661284', 'result_long': None, 'result_double': None}] Qualite : 0.06279777488661284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25214060 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25214060_23-07-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25214060 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_P25214060_23-07-2025_10_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214116, 'pht': 3726}}" where mtr_portfolio_id = 25214060 and dashboard_run_id = 2008229 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`=25214060 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936913, 0.06279777488661284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25214060_23-07-2025_10_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214105, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214108, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214115, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214116, '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 = 25214880 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': 3325839, 'mtr_portfolio_id': 25214880, 'created_at': datetime.datetime(2025, 7, 23, 10, 30, 59), 'result': '0.03268004116190537', 'result_long': None, 'result_double': None}] Qualite : 0.03268004116190537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25214880 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25214880_23-07-2025_10_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25214880 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_P25214880_23-07-2025_10_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214905, 'pht': 3726}}" where mtr_portfolio_id = 25214880 and dashboard_run_id = 2008229 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`=25214880 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936914, 0.03268004116190537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25214880_23-07-2025_10_30_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25214892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25214893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25214894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25214895, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25214896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25214897, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25214898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25214899, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25214900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25214901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25214903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25214905, '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 = 25215593 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': 3325940, 'mtr_portfolio_id': 25215593, 'created_at': datetime.datetime(2025, 7, 23, 10, 47), 'result': '0.033317620992429714', 'result_long': None, 'result_double': None}] Qualite : 0.033317620992429714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25215593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25215593_23-07-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25215593 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_P25215593_23-07-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25215618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25215619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25215620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25215621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25215622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25215623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25215624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25215625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25215626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25215627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25215628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25215629, 'pht': 3726}}" where mtr_portfolio_id = 25215593 and dashboard_run_id = 2008229 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`=25215593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936915, 0.033317620992429714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25215593_23-07-2025_10_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25215618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25215619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25215620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25215621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25215622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25215623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25215624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25215625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25215626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25215627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25215628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25215629, '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 = 25216187 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': 3326045, 'mtr_portfolio_id': 25216187, 'created_at': datetime.datetime(2025, 7, 23, 11, 1), 'result': '0.060307244709620324', 'result_long': None, 'result_double': None}] Qualite : 0.060307244709620324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25216187 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25216187_23-07-2025_11_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25216187 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_P25216187_23-07-2025_11_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216246, 'pht': 3726}}" where mtr_portfolio_id = 25216187 and dashboard_run_id = 2008229 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`=25216187 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936916, 0.060307244709620324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25216187_23-07-2025_11_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216236, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216246, '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 = 25216765 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': 3326205, 'mtr_portfolio_id': 25216765, 'created_at': datetime.datetime(2025, 7, 23, 11, 17, 27), 'result': '0.04528198762322184', 'result_long': None, 'result_double': None}] Qualite : 0.04528198762322184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25216765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25216765_23-07-2025_11_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25216765 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_P25216765_23-07-2025_11_17_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216786, 'pht': 3726}}" where mtr_portfolio_id = 25216765 and dashboard_run_id = 2008229 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`=25216765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936917, 0.04528198762322184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25216765_23-07-2025_11_17_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25216775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25216776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25216777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25216778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25216779, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25216780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25216781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25216782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25216783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25216784, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25216785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25216786, '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 = 25217393 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': 3326303, 'mtr_portfolio_id': 25217393, 'created_at': datetime.datetime(2025, 7, 23, 11, 31), 'result': '0.027977561572364487', 'result_long': None, 'result_double': None}] Qualite : 0.027977561572364487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25217393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25217393_23-07-2025_11_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25217393 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_P25217393_23-07-2025_11_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217410, 'pht': 3726}}" where mtr_portfolio_id = 25217393 and dashboard_run_id = 2008229 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`=25217393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936918, 0.027977561572364487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25217393_23-07-2025_11_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217410, '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 = 25217954 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': 3326430, 'mtr_portfolio_id': 25217954, 'created_at': datetime.datetime(2025, 7, 23, 11, 46, 31), 'result': '0.0169894377098985', 'result_long': None, 'result_double': None}] Qualite : 0.0169894377098985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25217954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25217954_23-07-2025_11_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25217954 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_P25217954_23-07-2025_11_46_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217975, 'pht': 3726}}" where mtr_portfolio_id = 25217954 and dashboard_run_id = 2008229 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`=25217954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936919, 0.0169894377098985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25217954_23-07-2025_11_46_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25217964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25217965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25217966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25217967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25217968, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25217969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25217970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25217971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25217972, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25217973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25217974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25217975, '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 = 25218560 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': 3326552, 'mtr_portfolio_id': 25218560, 'created_at': datetime.datetime(2025, 7, 23, 12, 0, 32), 'result': '0.03352360847730685', 'result_long': None, 'result_double': None}] Qualite : 0.03352360847730685 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25218560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25218560_23-07-2025_12_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25218560 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_P25218560_23-07-2025_12_00_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218577, 'pht': 3726}}" where mtr_portfolio_id = 25218560 and dashboard_run_id = 2008229 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`=25218560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936920, 0.03352360847730685, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25218560_23-07-2025_12_00_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218570, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218576, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218577, '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 = 25218980 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': 3326663, 'mtr_portfolio_id': 25218980, 'created_at': datetime.datetime(2025, 7, 23, 12, 14, 59), 'result': '0.04737230622135593', 'result_long': None, 'result_double': None}] Qualite : 0.04737230622135593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25218980 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25218980_23-07-2025_12_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25218980 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_P25218980_23-07-2025_12_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218998, 'pht': 3726}}" where mtr_portfolio_id = 25218980 and dashboard_run_id = 2008229 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`=25218980 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12936921, 0.04737230622135593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25218980_23-07-2025_12_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25218987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25218988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25218989, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25218990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25218991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25218992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25218993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25218994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25218995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25218996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25218997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25218998, '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 (25197613,25197615,25197619,25197657,25197783,25198343,25198784,25199165,25199515,25199911,25200162,25200433,25200785,25201192,25201529,25201927,25202358,25202820,25203148,25203440,25203705,25204069,25204338,25204675,25205033,25205470,25205786,25206122,25206518,25206990,25207467,25208004,25208494,25209251,25209884,25210669,25211266,25212119,25212818,25213405,25214060,25214880,25215593,25216187,25216765,25217393,25217954,25218560,25218980) result : ((1373217415,), (1373217416,), (1373217419,), (1373217422,), (1373217428,), (1373217434,), (1373217436,), (1373217439,), (1373217441,), (1373217446,), (1373217449,), (1373217453,), (1373217457,), (1373217462,), (1373217596,), (1373217833,), (1373218054,), (1373218126,), (1373218320,), (1373217468,), (1373217469,), (1373217472,), (1373217478,), (1373217480,), (1373217486,), (1373217487,), (1373217490,), (1373217495,), (1373217499,), (1373217504,), (1373217506,), (1373217509,), (1373217510,), (1373217516,), (1373217592,), (1373217840,), (1373218072,), (1373218163,), (1373218297,), (1373217520,), (1373217526,), (1373217530,), (1373217531,), (1373217538,), (1373217543,), (1373217545,), (1373217548,), (1373217550,), (1373217553,), (1373217554,), (1373217560,), (1373217562,), (1373217566,), (1373217569,), (1373217624,), (1373217875,), (1373218078,), (1373218272,), (1373218344,), (1373234778,), (1373217741,), (1373217828,), (1373218043,), (1373218129,), (1373218279,), (1373218359,), (1373218425,), (1373218426,), (1373218427,), (1373218430,), (1373218437,), (1373218840,), (1373234776,), (1373218854,), (1373218893,), (1373218897,), (1373218901,), (1373218904,), (1373218907,), (1373218914,), (1373218944,), (1373218948,), (1373218951,), (1373218954,), (1373218956,), (1373218959,), (1373219138,), (1373219163,), (1373219211,), (1373219263,), (1373219311,), (1373219364,), (1373219907,), (1373220252,), (1373220270,), (1373220298,), (1373220325,), (1373220351,), (1373220378,), (1373220599,), (1373220631,), (1373220658,), (1373220684,), (1373220708,), (1373220734,), (1373221226,), (1373221254,), (1373221282,), (1373221318,), (1373221355,), (1373221403,), (1373221814,), (1373221845,), (1373221866,), (1373221868,), (1373221870,), (1373221871,), (1373222037,), (1373222052,), (1373222056,), (1373222058,), (1373222060,), (1373222063,), (1373222089,), (1373222093,), (1373222096,), (1373222100,), (1373222104,), (1373222106,), (1373222123,), (1373222127,), (1373222132,), (1373222135,), (1373222137,), (1373222139,), (1373222158,), (1373222161,), (1373222163,), (1373222165,), (1373222167,), (1373222170,), (1373222199,), (1373222205,), (1373222210,), (1373222214,), (1373222216,), (1373222218,), (1373222231,), (1373222256,), (1373222259,), (1373222263,), (1373222266,), (1373222269,), (1373222271,), (1373222292,), (1373222296,), (1373222299,), (1373222302,), (1373222304,), (1373222306,), (1373222336,), (1373222346,), (1373222349,), (1373222352,), (1373222354,), (1373222355,), (1373222376,), (1373222379,), (1373222382,), (1373222384,), (1373222386,), (1373222388,), (1373222469,), (1373222498,), (1373222526,), (1373222555,), (1373222586,), (1373222621,), (1373222898,), (1373222926,), (1373222955,), (1373222982,), (1373223006,), (1373223032,), (1373223263,), (1373223265,), (1373223267,), (1373223268,), (1373223270,), (1373223273,), (1373223563,), (1373223642,), (1373223720,), (1373223779,), (1373223828,), (1373223875,), (1373224558,), (1373224611,), (1373224666,), (1373224717,), (1373224765,), (1373224814,), (1373225228,), (1373225282,), (1373225333,), (1373225386,), (1373225436,), (1373225566,), (1373226091,), (1373226258,), (1373226260,), (1373226263,), (1373226264,), (1373226265,), (1373226268,), (1373226504,), (1373226564,), (1373226612,), (1373226660,), (1373226707,), (1373226763,), (1373227293,), (1373227317,), (1373227340,), (1373227371,), (1373227448,), (1373227481,), (1373227698,), (1373227730,), (1373227757,), (1373227783,), (1373227806,), (1373227853,), (1373228139,), (1373228147,), (1373228152,), (1373228154,), (1373228169,), (1373228183,), (1373228223,), (1373228227,), (1373228231,), (1373228235,), (1373228240,), (1373228244,), (1373228507,), (1373228521,), (1373228543,), (1373228560,), (1373228562,), (1373228563,), (1373228677,), (1373228711,), (1373228741,), (1373228762,), (1373228785,), (1373228809,), (1373229086,), (1373229300,), (1373229334,), (1373229337,), (1373229340,), (1373229351,), (1373229382,), (1373229465,), (1373229497,), (1373229528,), (1373229554,), (1373229579,), (1373229604,), (1373230037,), (1373230081,), (1373230122,), (1373230166,), (1373230211,), (1373230257,), (1373230492,), (1373230513,), (1373230541,), (1373230551,), (1373230560,), (1373230594,), (1373230885,), (1373230919,), (1373230951,), (1373230976,), (1373231000,), (1373231026,), (1373231383,), (1373231411,), (1373231464,), (1373231505,), (1373231533,), (1373231562,), (1373231879,), (1373231906,), (1373231944,), (1373231949,), (1373231971,), (1373231998,), (1373232358,), (1373232406,), (1373232459,), (1373232501,), (1373232528,), (1373232565,), (1373232717,), (1373232744,), (1373232752,), (1373232756,), (1373232778,), (1373232806,), (1373232831,), (1373232861,), (1373232862,), (1373232863,), (1373232864,), (1373232865,), (1373232867,), (1373232886,), (1373232889,), (1373232893,), (1373232896,), (1373232897,), (1373232900,), (1373233001,), (1373233052,), (1373233108,), (1373233166,), (1373233223,), (1373233280,), (1373233878,), (1373234222,), (1373234223,), (1373234228,), (1373234240,), (1373234246,), (1373234248,), (1373234282,), (1373234285,), (1373234308,), (1373234347,), (1373234374,), (1373234402,), (1373234673,), (1373234678,), (1373234684,), (1373234711,), (1373234722,), (1373234738,), (1373234784,), (1373234788,), (1373234791,), (1373234796,), (1373234797,), (1373234802,), (1373234813,), (1373234816,), (1373234818,), (1373234820,), (1373234822,), (1373234824,), (1373234848,), (1373234852,), (1373234855,), (1373234857,), (1373234860,), (1373234865,), (1373234891,), (1373234894,), (1373234897,), (1373234899,), (1373234900,), (1373234901,), (1373234927,), (1373234929,), (1373234932,), (1373234934,), (1373234935,), (1373234936,), (1373234955,), (1373234959,), (1373234963,), (1373234966,), (1373234968,), (1373234996,), (1373236879,), (1373237558,), (1373237572,), (1373237576,), (1373237594,), (1373237625,), (1373237717,), (1373237742,), (1373237770,), (1373237797,), (1373237823,), (1373237857,), (1373238159,), (1373238193,), (1373238229,), (1373238266,), (1373238294,), (1373238321,), (1373238552,), (1373238555,), (1373238573,), (1373238601,), (1373238620,), (1373238625,), (1373238683,), (1373238707,), (1373238709,), (1373238712,), (1373238715,), (1373238718,), (1373238720,), (1373238732,), (1373238736,), (1373238740,), (1373238745,), (1373238747,), (1373238750,), (1373238774,), (1373238779,), (1373238784,), (1373238788,), (1373238790,), (1373238793,), (1373238829,), (1373238867,), (1373238900,), (1373238904,), (1373238907,), (1373238910,), (1373238914,), (1373238918,), (1373238956,), (1373238963,), (1373238966,), (1373238968,), (1373238972,), (1373238974,), (1373239085,), (1373239112,), (1373239124,), (1373239127,), (1373239130,), (1373239131,), (1373239161,), (1373239165,), (1373239167,), (1373239170,), (1373239172,), (1373239174,), (1373239196,), (1373256806,), (1373256852,), (1373239224,), (1373239229,), (1373239232,), (1373239235,), (1373239237,), (1373239240,), (1373239321,), (1373239355,), (1373239391,), (1373239403,), (1373239406,), (1373239424,), (1373239503,), (1373239505,), (1373239513,), (1373239525,), (1373239527,), (1373239529,), (1373239552,), (1373239554,), (1373239557,), (1373239560,), (1373239564,), (1373239567,), (1373239595,), (1373239598,), (1373239602,), (1373239607,), (1373239608,), (1373239610,), (1373239628,), (1373239631,), (1373239634,), (1373239635,), (1373239637,), (1373239638,), (1373239829,), (1373239859,), (1373239892,), (1373239921,), (1373239966,), (1373240018,), (1373240158,), (1373240187,), (1373240192,), (1373240194,), (1373240215,), (1373240216,), (1373240257,), (1373240260,), (1373240263,), (1373240264,), (1373240265,), (1373240266,), (1373240284,), (1373240312,), (1373240316,), (1373240319,), (1373240322,), (1373240323,), (1373240325,), (1373240341,), (1373240344,), (1373240347,), (1373240350,), (1373240353,), (1373240357,), (1373240418,), (1373240423,), (1373240424,), (1373240427,), (1373240430,), (1373240434,), (1373240458,), (1373240460,), (1373240463,), (1373240465,), (1373240467,), (1373240470,), (1373240501,), (1373240505,), (1373240508,), (1373240510,), (1373240511,), (1373240514,), (1373240549,), (1373240551,), (1373240553,), (1373240554,), (1373240556,), (1373240558,), (1373240584,), (1373240617,), (1373240618,), (1373240620,), (1373240622,), (1373240624,), (1373240627,), (1373240656,), (1373240658,), (1373240660,), (1373240662,), (1373240663,), (1373240666,), (1373240689,), (1373240691,), (1373240693,), (1373240697,), (1373240699,), (1373240701,), (1373240732,), (1373240762,), (1373240765,), (1373240767,), (1373240768,), (1373240769,), (1373240772,), (1373240796,), (1373240799,), (1373240802,), (1373240805,), (1373240807,), (1373240809,), (1373240855,), (1373240876,), (1373240885,), (1373240894,), (1373240899,), (1373240901,), (1373240966,), (1373240967,), (1373240982,), (1373240988,), (1373240989,), (1373240991,), (1373241026,), (1373241029,), (1373241032,), (1373241034,), (1373241037,), (1373241040,), (1373241067,), (1373241071,), (1373241076,), (1373241078,), (1373241080,), (1373241082,), (1373241108,), (1373241140,), (1373241144,), (1373241148,), (1373241151,), (1373241154,), (1373241157,), (1373241191,), (1373241209,), (1373241211,), (1373241213,), (1373241214,), (1373241215,), (1373241217,), (1373241226,), (1373241230,), (1373241235,), (1373241238,), (1373241243,), (1373241247,), (1373241405,), (1373241437,), (1373241464,), (1373241493,), (1373241519,), (1373241547,), (1373241644,), (1373241668,), (1373241671,), (1373241675,), (1373241686,), (1373241688,), (1373241911,), (1373241948,), (1373241987,), (1373241989,), (1373241990,), (1373242004,), (1373242072,), (1373242076,), (1373242080,), (1373242083,), (1373242087,), (1373242090,), (1373242114,), (1373242118,), (1373242121,), (1373242124,), (1373242128,), (1373242130,), (1373242149,), (1373242153,), (1373242157,), (1373242159,), (1373242160,), (1373242162,), (1373242179,), (1373242189,), (1373242194,), (1373242197,), (1373242200,), (1373242203,), (1373242223,), (1373242580,), (1373242589,), (1373242596,), (1373242602,), (1373242604,), (1373242607,), (1373242620,), (1373242624,), (1373242629,), (1373242631,), (1373242634,), (1373242637,), (1373243156,), (1373243246,), (1373243323,), (1373243394,), (1373243466,), (1373243538,), (1373244656,), (1373244855,), (1373244858,), (1373244861,), (1373244863,), (1373244867,), (1373244891,), (1373244895,), (1373244899,), (1373244902,), (1373244905,), (1373244908,), (1373244925,), (1373245100,), (1373245667,), (1373245726,), (1373245793,), (1373245835,), (1373245885,), (1373245939,), (1373246478,), (1373246948,), (1373247018,), (1373247089,), (1373247139,), (1373247182,), (1373247215,), (1373247519,), (1373247525,), (1373247528,), (1373247530,), (1373247537,), (1373247563,), (1373247758,), (1373247762,), (1373247768,), (1373247771,), (1373247773,), (1373247775,), (1373247798,), (1373247799,), (1373247801,), (1373247802,), (1373247803,), (1373247806,), (1373247833,), (1373247836,), (1373247838,), (1373247841,), (1373247844,), (1373247847,), (1373247874,), (1373247879,), (1373247884,), (1373247887,), (1373247889,), (1373247891,), (1373247906,), (1373247910,), (1373247913,), (1373247916,), (1373247918,), (1373247920,), (1373247941,), (1373247945,), (1373247948,), (1373247949,), (1373247952,), (1373247955,), (1373247973,), (1373248009,), (1373248022,), (1373248030,), (1373248031,), (1373248033,), (1373248034,), (1373248053,), (1373248086,), (1373248103,), (1373248106,), (1373248107,), (1373248109,), (1373248112,), (1373248152,), (1373248177,), (1373248205,), (1373248228,), (1373248250,), (1373248293,), (1373248797,), (1373248841,), (1373248890,), (1373248939,), (1373248986,), (1373249032,), (1373249420,), (1373249466,), (1373249511,), (1373249535,), (1373249561,), (1373249587,), (1373249807,), (1373249824,), (1373249826,), (1373249840,), (1373249841,), (1373249842,), (1373249863,), (1373249892,), (1373249896,), (1373249905,), (1373249908,), (1373249913,), (1373249917,), (1373249935,), (1373249952,), (1373249961,), (1373249964,), (1373249965,), (1373249966,), (1373249969,), (1373249983,), (1373249987,), (1373249991,), (1373249993,), (1373249996,), (1373249998,), (1373250017,), (1373250022,), (1373250028,), (1373250031,), (1373250034,), (1373250037,), (1373250063,), (1373250080,), (1373250094,), (1373250103,), (1373250109,), (1373250113,), (1373250118,), (1373250133,), (1373250138,), (1373250142,), (1373250146,), (1373250150,), (1373250153,), (1373250173,), (1373250180,), (1373250192,), (1373250198,), (1373250201,), (1373250206,), (1373250229,), (1373250232,), (1373250235,), (1373250237,), (1373250239,), (1373250241,), (1373250282,), (1373250284,), (1373250287,), (1373250290,), (1373250292,), (1373250295,), (1373250318,), (1373250421,), (1373250437,), (1373250443,), (1373250446,), (1373250447,), (1373250464,), (1373250524,), (1373250527,), (1373250529,), (1373250532,), (1373250534,), (1373250537,), (1373250798,), (1373250834,), (1373250865,), (1373250889,), (1373250913,), (1373250946,), (1373251329,), (1373251380,), (1373251428,), (1373251489,), (1373251530,), (1373251575,), (1373251894,), (1373251957,), (1373252015,), (1373252056,), (1373252093,), (1373252125,), (1373252441,), (1373252444,), (1373252453,), (1373252467,), (1373252486,), (1373252510,), (1373252742,), (1373252757,), (1373252765,), (1373252768,), (1373252770,), (1373252772,), (1373252791,), (1373252795,), (1373252799,), (1373252803,), (1373252805,), (1373252808,), (1373252822,), (1373252831,), (1373252842,), (1373252850,), (1373252854,), (1373252857,), (1373252881,), (1373252910,), (1373252918,), (1373252925,), (1373252929,), (1373252932,), (1373252935,), (1373252973,), (1373252975,), (1373252978,), (1373252980,), (1373252982,), (1373252986,), (1373253115,), (1373253140,), (1373253165,), (1373253189,), (1373253213,), (1373253240,), (1373253407,), (1373253425,), (1373253429,), (1373253440,), (1373253463,), (1373253486,), (1373253738,), (1373253764,), (1373253799,), (1373253841,), (1373253870,), (1373253899,), (1373254244,), (1373254841,), (1373254845,), (1373254849,), (1373254858,), (1373254866,), (1373254891,), (1373255093,), (1373255558,), (1373255582,), (1373255608,), (1373255634,), (1373255667,), (1373255696,), (1373255856,), (1373255980,), (1373255983,), (1373255985,), (1373255987,), (1373255988,), (1373255990,), (1373256016,), (1373256020,), (1373256023,), (1373256026,), (1373256029,), (1373256033,), (1373256052,), (1373256059,), (1373256068,), (1373256072,), (1373256075,), (1373256080,), (1373256766,), (1373257757,), (1373258372,), (1373258399,), (1373258433,), (1373258442,), (1373258471,), (1373258502,), (1373258771,), (1373258776,), (1373258788,), (1373258801,), (1373258808,), (1373258813,), (1373258889,), (1373258905,), (1373258909,), (1373258913,), (1373258915,), (1373258919,), (1373258937,), (1373258963,), (1373258966,), (1373258975,), (1373258988,), (1373258992,), (1373258994,), (1373259020,), (1373259023,), (1373259025,), (1373259026,), (1373259027,), (1373259030,), (1373259059,), (1373259062,), (1373259066,), (1373259068,), (1373259070,), (1373259072,), (1373259117,), (1373259120,), (1373259123,), (1373259125,), (1373259128,), (1373259130,), (1373259326,), (1373259387,), (1373259444,), (1373259502,), (1373259545,), (1373259592,), (1373260009,), (1373260033,), (1373260080,), (1373260117,), (1373260150,), (1373260181,), (1373260294,), (1373260305,), (1373260315,), (1373260318,), (1373260321,), (1373260336,), (1373260571,), (1373260699,), (1373260705,), (1373260709,), (1373260713,), (1373260716,), (1373260724,), (1373260998,), (1373261032,), (1373261040,), (1373261044,), (1373261046,), (1373261047,), (1373261049,), (1373261101,), (1373261106,), (1373261110,), (1373261113,), (1373261115,), (1373261117,), (1373261146,), (1373261184,), (1373261217,), (1373261243,), (1373261268,), (1373261290,), (1373261428,), (1373261457,), (1373261464,), (1373261470,), (1373261472,), (1373261475,), (1373261477,), (1373261592,), (1373261867,), (1373261880,), (1373261894,), (1373261897,), (1373261898,), (1373261905,), (1373261974,), (1373261978,), (1373261982,), (1373261985,), (1373261989,), (1373261992,), (1373262016,), (1373262020,), (1373262024,), (1373262025,), (1373262028,), (1373262031,), (1373262049,), (1373262054,), (1373262059,), (1373262063,), (1373262067,), (1373262076,), (1373262100,), (1373262132,), (1373262185,), (1373262190,), (1373262194,), (1373262197,), (1373262202,), (1373262205,), (1373262222,), (1373262226,), (1373262231,), (1373262235,), (1373262237,), (1373262240,), (1373262276,), (1373262279,), (1373262282,), (1373262284,), (1373262286,), (1373262289,), (1373262319,), (1373262323,), (1373262327,), (1373262329,), (1373262330,), (1373262332,), (1373262356,), (1373262361,), (1373262365,), (1373262369,), (1373262373,), (1373262376,), (1373262401,), (1373262404,), (1373262406,), (1373262408,), (1373262409,), (1373262411,), (1373262434,), (1373262436,), (1373262438,), (1373262440,), (1373262441,), (1373262442,), (1373262468,), (1373262502,), (1373262506,), (1373262521,), (1373262525,), (1373262529,), (1373262530,), (1373262554,), (1373262559,), (1373262564,), (1373262567,), (1373262570,), (1373262574,), (1373262596,), (1373262599,), (1373262608,), (1373262618,), (1373262627,), (1373262629,), (1373262659,), (1373262661,), (1373262664,), (1373262665,), (1373262666,), (1373262667,), (1373262690,), (1373262708,), (1373262716,), (1373262719,), (1373262722,), (1373262724,), (1373262773,), (1373262777,), (1373262779,), (1373262780,), (1373262781,), (1373262784,), (1373262798,), (1373262809,), (1373262820,), (1373262824,), (1373262827,), (1373262829,), (1373262853,), (1373262856,), (1373262860,), (1373262863,), (1373262866,), (1373262869,), (1373262891,), (1373262901,), (1373262904,), (1373262907,), (1373262910,), (1373262911,), (1373262941,), (1373262967,), (1373262974,), (1373262977,), (1373262980,), (1373262982,), (1373262984,), (1373263005,), (1373263009,), (1373263011,), (1373263013,), (1373263015,), (1373263019,), (1373263046,), (1373263050,), (1373263053,), (1373263054,), (1373263057,), (1373263059,), (1373263088,), (1373263091,), (1373263093,), (1373263095,), (1373263097,), (1373263099,), (1373263118,), (1373263122,), (1373263126,), (1373263128,), (1373263130,), (1373263133,), (1373263169,), (1373263170,), (1373263173,), (1373263176,), (1373263178,), (1373263183,), (1373263208,), (1373263214,), (1373263217,), (1373263220,), (1373263222,), (1373263224,), (1373263241,), (1373263243,), (1373263245,), (1373263247,), (1373263250,), (1373263254,), (1373263282,), (1373263296,), (1373263297,), (1373263299,), (1373263301,), (1373263303,), (1373263336,), (1373263342,), (1373263345,), (1373263346,), (1373263348,), (1373263349,), (1373263370,), (1373263397,), (1373263402,), (1373263406,), (1373263409,), (1373263412,), (1373263416,), (1373263477,), (1373263509,), (1373263536,), (1373263585,), (1373263610,), (1373263638,), (1373264288,), (1373264321,), (1373264804,), (1373264831,), (1373264855,), (1373264878,), (1373264903,), (1373265325,), (1373265379,), (1373265417,), (1373265448,), (1373265486,), (1373265488,), (1373265589,), (1373265605,), (1373265634,), (1373265652,), (1373265655,), (1373265677,), (1373265707,), (1373265711,), (1373265714,), (1373265716,), (1373265718,), (1373265722,), (1373265744,), (1373265749,), (1373265752,), (1373265756,), (1373265761,), (1373265765,), (1373265782,), (1373265814,), (1373265852,), (1373265892,), (1373265895,), (1373265898,), (1373265901,), (1373265902,), (1373265905,), (1373265922,), (1373265926,), (1373265930,), (1373265931,), (1373265934,), (1373265937,), (1373265955,), (1373265958,), (1373265962,), (1373265964,), (1373265967,), (1373265969,), (1373265989,), (1373265994,), (1373265996,), (1373266002,), (1373266005,), (1373266010,), (1373266030,), (1373266068,), (1373266091,), (1373266094,), (1373266096,), (1373266097,), (1373266099,), (1373266101,), (1373266121,), (1373266148,), (1373266150,), (1373266152,), (1373266153,), (1373266154,), (1373266156,), (1373266174,), (1373266175,), (1373266176,), (1373266177,), (1373266179,), (1373266181,), (1373266311,), (1373266333,), (1373266357,), (1373266427,), (1373266464,), (1373266513,), (1373266917,), (1373266942,), (1373266972,), (1373266997,), (1373267022,), (1373267046,), (1373267476,), (1373267489,), (1373267515,), (1373267518,), (1373267519,), (1373267520,), (1373267659,), (1373267693,), (1373267727,), (1373267748,), (1373267755,), (1373267758,), (1373267853,), (1373267883,), (1373267891,), (1373267893,), (1373267894,), (1373267895,), (1373267896,), (1373267917,), (1373267920,), (1373267922,), (1373267925,), (1373267926,), (1373267927,), (1373267944,), (1373267974,), (1373267977,), (1373267979,), (1373267981,), (1373267983,), (1373267985,), (1373268006,), (1373268011,), (1373268013,), (1373268015,), (1373268017,), (1373268019,), (1373268037,), (1373268068,), (1373268071,), (1373268075,), (1373268076,), (1373268079,), (1373268082,), (1373268102,), (1373268106,), (1373268109,), (1373268113,), (1373268115,), (1373268117,), (1373268129,), (1373268133,), (1373268135,), (1373268138,), (1373268139,), (1373268140,), (1373268203,), (1373268231,), (1373268261,), (1373268288,), (1373268314,), (1373268336,), (1373268606,), (1373268636,), (1373268689,), (1373268736,), (1373268764,), (1373268799,), (1373269080,), (1373269107,), (1373269133,), (1373269159,), (1373269182,), (1373269206,), (1373269316,), (1373269472,), (1373269476,), (1373269480,), (1373269483,), (1373269485,), (1373269488,), (1373269507,), (1373269519,), (1373269524,), (1373269526,), (1373269527,), (1373269528,), (1373269537,), (1373269541,), (1373269546,), (1373269547,), (1373269549,), (1373269551,), (1373269569,), (1373269577,), (1373269584,), (1373269588,), (1373269592,), (1373269593,), (1373269623,), (1373269625,), (1373269628,), (1373269629,), (1373269630,), (1373269631,), (1373269660,), (1373269662,), (1373269665,), (1373269666,), (1373269667,), (1373269668,), (1373269687,), (1373269688,), (1373269690,), (1373269691,), (1373269692,), (1373269693,), (1373269716,), (1373269726,), (1373269736,), (1373269741,), (1373269742,), (1373269745,), (1373269757,), (1373269760,), (1373269762,), (1373269764,), (1373269765,), (1373269766,), (1373275143,), (1373298819,), (1373269799,), (1373269816,), (1373269821,), (1373269824,), (1373269825,), (1373269827,), (1373269829,), (1373269850,), (1373269855,), (1373269859,), (1373269861,), (1373269863,), (1373269865,), (1373269886,), (1373269913,), (1373269917,), (1373269921,), (1373269923,), (1373269928,), (1373269931,), (1373269949,), (1373269952,), (1373269955,), (1373269956,), (1373269958,), (1373269962,), (1373269979,), (1373269982,), (1373269997,), (1373270023,), (1373270050,), (1373270075,), (1373270328,), (1373270353,), (1373270378,), (1373270402,), (1373270426,), (1373270449,), (1373270585,), (1373270593,), (1373270622,), (1373270656,), (1373270679,), (1373270705,), (1373270799,), (1373270820,), (1373270843,), (1373270850,), (1373270851,), (1373270852,), (1373270866,), (1373270883,), (1373270910,), (1373271407,), (1373271461,), (1373271517,), (1373271567,), (1373271592,), (1373271618,), (1373272107,), (1373272163,), (1373272202,), (1373272229,), (1373272256,), (1373272302,), (1373272512,), (1373272536,), (1373272547,), (1373272557,), (1373272576,), (1373272591,), (1373272807,), (1373273005,), (1373273032,), (1373273063,), (1373273089,), (1373273112,), (1373273140,), (1373273415,), (1373273441,), (1373273466,), (1373273489,), (1373273514,), (1373273539,), (1373273646,), (1373273885,), (1373273891,), (1373273895,), (1373273897,), (1373273900,), (1373273903,), (1373274135,), (1373274169,), (1373274199,), (1373274225,), (1373274247,), (1373274271,), (1373274528,), (1373274552,), (1373274591,), (1373274599,), (1373274601,), (1373274604,), (1373274728,), (1373274756,), (1373274782,), (1373274785,), (1373274787,), (1373274811,), (1373274884,), (1373274886,), (1373274888,), (1373274889,), (1373274890,), (1373274891,), (1373274926,), (1373274930,), (1373274933,), (1373274934,), (1373274935,), (1373274936,), (1373274966,), (1373274969,), (1373274972,), (1373274974,), (1373274977,), (1373274980,), (1373275010,), (1373275013,), (1373275017,), (1373275021,), (1373275023,), (1373275025,), (1373275045,), (1373275049,), (1373275053,), (1373275055,), (1373275056,), (1373275057,), (1373275083,), (1373275084,), (1373275086,), (1373275088,), (1373275091,), (1373275094,), (1373275113,), (1373275117,), (1373275119,), (1373275123,), (1373275127,), (1373275131,), (1373275153,), (1373275160,), (1373275167,), (1373275171,), (1373275175,), (1373275200,), (1373275447,), (1373275477,), (1373275526,), (1373275573,), (1373275628,), (1373275665,), (1373276038,), (1373276069,), (1373276099,), (1373276133,), (1373276159,), (1373276184,), (1373276337,), (1373276557,), (1373276563,), (1373276566,), (1373276585,), (1373276610,), (1373276632,), (1373276680,), (1373276682,), (1373276685,), (1373276688,), (1373276691,), (1373276694,), (1373276722,), (1373276733,), (1373276743,), (1373276745,), (1373276746,), (1373276748,), (1373276775,), (1373276778,), (1373276780,), (1373276781,), (1373276784,), (1373276786,), (1373276809,), (1373276844,), (1373276848,), (1373276850,), (1373276853,), (1373276858,), (1373276860,), (1373276883,), (1373276892,), (1373276897,), (1373276898,), (1373276899,), (1373276900,), (1373276927,), (1373276932,), (1373276934,), (1373276936,), (1373276937,), (1373276940,), (1373276960,), (1373276965,), (1373276971,), (1373276973,), (1373276976,), (1373276978,), (1373277007,), (1373277011,), (1373277015,), (1373277016,), (1373277017,), (1373277018,), (1373277046,), (1373277049,), (1373277052,), (1373277054,), (1373277055,), (1373277058,), (1373277080,), (1373277083,), (1373277088,), (1373277091,), (1373277094,), (1373277098,), (1373277122,), (1373277130,), (1373277136,), (1373277139,), (1373277142,), (1373277147,), (1373277172,), (1373277202,), (1373277205,), (1373277210,), (1373277211,), (1373277212,), (1373277214,), (1373277251,), (1373277295,), (1373277305,), (1373277310,), (1373277313,), (1373277314,), (1373277316,), (1373277339,), (1373277375,), (1373277379,), (1373277383,), (1373277386,), (1373277389,), (1373277393,), (1373277411,), (1373277413,), (1373277416,), (1373277417,), (1373277419,), (1373277420,), (1373277451,), (1373277454,), (1373277458,), (1373277461,), (1373277464,), (1373277468,), (1373277493,), (1373277496,), (1373277500,), (1373277502,), (1373277505,), (1373277508,), (1373277538,), (1373277544,), (1373277554,), (1373277561,), (1373277562,), (1373277566,), (1373277586,), (1373277614,), (1373277617,), (1373277622,), (1373277636,), (1373277638,), (1373277642,), (1373277675,), (1373277677,), (1373277680,), (1373277681,), (1373277682,), (1373277683,), (1373277710,), (1373277712,), (1373277720,), (1373277728,), (1373277735,), (1373277738,), (1373277763,), (1373277767,), (1373277771,), (1373277773,), (1373277777,), (1373277781,), (1373277812,), (1373277816,), (1373277819,), (1373277821,), (1373277822,), (1373277823,), (1373277841,), (1373277844,), (1373277847,), (1373277849,), (1373277851,), (1373277857,), (1373277888,), (1373277929,), (1373277932,), (1373277935,), (1373277937,), (1373277939,), (1373277941,), (1373277967,), (1373277975,), (1373277984,), (1373277985,), (1373277987,), (1373277989,), (1373277995,), (1373277996,), (1373278014,), (1373278019,), (1373278021,), (1373278024,), (1373278026,), (1373278028,), (1373278045,), (1373278069,), (1373278073,), (1373278075,), (1373278086,), (1373278109,), (1373278140,), (1373278283,), (1373278285,), (1373278288,), (1373278290,), (1373278292,), (1373278294,), (1373278378,), (1373278413,), (1373278459,), (1373278507,), (1373278554,), (1373278608,), (1373279059,), (1373279545,), (1373279576,), (1373279622,), (1373279656,), (1373279681,), (1373279712,), (1373279773,), (1373279800,), (1373279828,), (1373279854,), (1373279882,), (1373279903,), (1373280017,), (1373280018,), (1373280021,), (1373280023,), (1373280025,), (1373280029,), (1373280053,), (1373280056,), (1373280057,), (1373280059,), (1373280061,), (1373280063,), (1373280082,), (1373280307,), (1373280343,), (1373280377,), (1373280401,), (1373280427,), (1373280454,), (1373280584,), (1373280588,), (1373280617,), (1373280655,), (1373280702,), (1373280746,), (1373280895,), (1373280898,), (1373280900,), (1373280903,), (1373280925,), (1373280951,), (1373281141,), (1373281167,), (1373281193,), (1373281216,), (1373281240,), (1373281263,), (1373281279,), (1373281283,), (1373281287,), (1373281290,), (1373281291,), (1373281295,), (1373281313,), (1373281316,), (1373281321,), (1373281332,), (1373281334,), (1373281335,), (1373281355,), (1373281364,), (1373281370,), (1373281371,), (1373281373,), (1373281379,), (1373281436,), (1373281462,), (1373281490,), (1373281512,), (1373281521,), (1373281526,), (1373281540,), (1373281543,), (1373281546,), (1373281548,), (1373281549,), (1373281551,), (1373281576,), (1373281765,), (1373281777,), (1373281783,), (1373281790,), (1373281792,), (1373281797,), (1373281818,), (1373281915,), (1373281943,), (1373281969,), (1373281979,), (1373281983,), (1373281999,), (1373282030,), (1373282035,), (1373282040,), (1373282043,), (1373282047,), (1373282051,), (1373282129,), (1373282132,), (1373282136,), (1373282142,), (1373282167,), (1373282170,), (1373282217,), (1373282247,), (1373282273,), (1373282296,), (1373282299,), (1373282303,), (1373282331,), (1373282338,), (1373282349,), (1373282352,), (1373282357,), (1373282361,), (1373282380,), (1373282383,), (1373282387,), (1373282390,), (1373282392,), (1373282395,), (1373282419,), (1373282426,), (1373282429,), (1373282432,), (1373282434,), (1373282437,), (1373282457,), (1373282458,), (1373282461,), (1373282463,), (1373282465,), (1373282468,), (1373282629,), (1373282901,), (1373282902,), (1373282903,), (1373282904,), (1373282905,), (1373282929,), (1373283166,), (1373283192,), (1373283216,), (1373283242,), (1373283264,), (1373283287,), (1373283408,), (1373283410,), (1373283427,), (1373283439,), (1373283441,), (1373283458,), (1373283497,), (1373283500,), (1373283506,), (1373283511,), (1373283513,), (1373283517,), (1373283549,), (1373283551,), (1373283553,), (1373283554,), (1373283555,), (1373283557,), (1373283609,), (1373283614,), (1373283623,), (1373283625,), (1373283626,), (1373283630,), (1373283760,), (1373283762,), (1373283764,), (1373283766,), (1373283768,), (1373283771,), (1373284011,), (1373284470,), (1373284477,), (1373284481,), (1373284483,), (1373284497,), (1373284500,), (1373284868,), (1373285251,), (1373285483,), (1373285539,), (1373285542,), (1373285545,), (1373285548,), (1373285549,), (1373285551,), (1373285576,), (1373285582,), (1373285586,), (1373285587,), (1373285589,), (1373285593,), (1373285678,), (1373285681,), (1373285684,), (1373285685,), (1373285688,), (1373285692,), (1373285715,), (1373285721,), (1373285731,), (1373285735,), (1373285738,), (1373285744,), (1373285766,), (1373285768,), (1373285771,), (1373285774,), (1373285775,), (1373285780,), (1373285822,), (1373285829,), (1373285834,), (1373285837,), (1373285840,), (1373285842,), (1373285866,), (1373285870,), (1373285875,), (1373285876,), (1373285878,), (1373285880,), (1373285912,), (1373286046,), (1373286049,), (1373286052,), (1373286053,), (1373286054,), (1373286056,), (1373286081,), (1373286088,), (1373286110,), (1373286136,), (1373286163,), (1373286192,), (1373286381,), (1373286415,), (1373286444,), (1373286479,), (1373286505,), (1373286536,), (1373286821,), (1373286850,), (1373286879,), (1373286907,), (1373286938,), (1373286967,), (1373287275,), (1373287327,), (1373287397,), (1373287441,), (1373287494,), (1373287543,), (1373287783,), (1373287790,), (1373287796,), (1373287799,), (1373287803,), (1373287807,), (1373287827,), (1373287831,), (1373287841,), (1373287843,), (1373287845,), (1373287847,), (1373287871,), (1373287877,), (1373287885,), (1373287892,), (1373287895,), (1373287898,), (1373287934,), (1373287938,), (1373287942,), (1373287944,), (1373287948,), (1373287951,), (1373287970,), (1373287973,), (1373287977,), (1373287978,), (1373287982,), (1373287987,), (1373288011,), (1373288019,), (1373288027,), (1373288031,), (1373288033,), (1373288037,), (1373288072,), (1373288079,), (1373288082,), (1373288084,), (1373288086,), (1373288090,), (1373288112,), (1373288116,), (1373288121,), (1373288125,), (1373288128,), (1373288132,), (1373288152,), (1373288156,), (1373288188,), (1373288222,), (1373288250,), (1373288275,), (1373288542,), (1373288586,), (1373288614,), (1373288639,), (1373288663,), (1373288695,), (1373288886,), (1373289033,), (1373289035,), (1373289037,), (1373289039,), (1373289041,), (1373289044,), (1373289189,), (1373289564,), (1373289593,), (1373289635,), (1373289659,), (1373289683,), (1373289725,), (1373289975,), (1373289977,), (1373289979,), (1373289981,), (1373289982,), (1373289986,), (1373290272,), (1373290312,), (1373290339,), (1373290367,), (1373290409,), (1373290480,), (1373290823,), (1373290871,), (1373290923,), (1373290971,), (1373290994,), (1373291021,), (1373291295,), (1373291306,), (1373291308,), (1373291310,), (1373291312,), (1373291314,), (1373291478,), (1373291509,), (1373291535,), (1373291544,), (1373291548,), (1373291550,), (1373291668,), (1373291670,), (1373291673,), (1373291674,), (1373291677,), (1373291680,), (1373291840,), (1373292212,), (1373292240,), (1373292272,), (1373292299,), (1373292307,), (1373292310,), (1373292442,), (1373292457,), (1373292458,), (1373292461,), (1373292462,), (1373292467,), (1373292488,), (1373292493,), (1373292497,), (1373292500,), (1373292504,), (1373292506,), (1373292521,), (1373292523,), (1373292525,), (1373292528,), (1373292530,), (1373292531,), (1373292555,), (1373292558,), (1373292561,), (1373292562,), (1373292563,), (1373292566,), (1373292586,), (1373292589,), (1373292593,), (1373292595,), (1373292598,), (1373292602,), (1373292619,), (1373292622,), (1373292625,), (1373292627,), (1373292630,), (1373292634,), (1373292659,), (1373292662,), (1373292665,), (1373292668,), (1373292671,), (1373292676,), (1373292696,), (1373292725,), (1373292757,), (1373292780,), (1373292805,), (1373292832,), (1373293101,), (1373293126,), (1373293151,), (1373293176,), (1373293200,), (1373293229,), (1373293325,), (1373293345,), (1373293376,), (1373293401,), (1373293431,), (1373293456,), (1373293614,), (1373293645,), (1373293650,), (1373293651,), (1373293652,), (1373293654,), (1373293658,), (1373293688,), (1373293722,), (1373293725,), (1373293728,), (1373293729,), (1373293733,), (1373293737,), (1373293760,), (1373293773,), (1373293777,), (1373293779,), (1373293782,), (1373293785,), (1373293806,), (1373293814,), (1373293819,), (1373293820,), (1373293821,), (1373293824,), (1373293848,), (1373293851,), (1373293854,), (1373293855,), (1373293856,), (1373293859,), (1373293884,), (1373293889,), (1373293895,), (1373293911,), (1373293920,), (1373293926,), (1373293959,), (1373293962,), (1373293966,), (1373293969,), (1373293972,), (1373293976,), (1373294031,), (1373294057,), (1373294082,), (1373294109,), (1373294135,), (1373294158,), (1373294436,), (1373294463,), (1373294491,), (1373294517,), (1373294541,), (1373294569,), (1373294675,), (1373294692,), (1373294702,), (1373294705,), (1373294724,), (1373294762,), (1373295149,), (1373295184,), (1373295231,), (1373295279,), (1373295304,), (1373295331,), (1373295491,), (1373295513,), (1373295524,), (1373295526,), (1373295527,), (1373295529,), (1373295554,), (1373295556,), (1373295559,), (1373295561,), (1373295564,), (1373295569,), (1373295605,), (1373295612,), (1373295616,), (1373295618,), (1373295621,), (1373295624,), (1373295679,), (1373295683,), (1373295687,), (1373295689,), (1373295690,), (1373295693,), (1373295765,), (1373295770,), (1373295773,), (1373295774,), (1373295775,), (1373295777,), (1373296027,), (1373296054,), (1373296078,), (1373296111,), (1373296112,), (1373296141,), (1373296226,), (1373296231,), (1373296236,), (1373296260,), (1373296283,), (1373296309,), (1373296346,), (1373296355,), (1373296359,), (1373296361,), (1373296362,), (1373296365,), (1373296382,), (1373296385,), (1373296395,), (1373296403,), (1373296405,), (1373296409,), (1373296462,), (1373296471,), (1373296473,), (1373296475,), (1373296478,), (1373296482,), (1373296524,), (1373296529,), (1373296531,), (1373296534,), (1373296550,), (1373296552,), (1373296573,), (1373296579,), (1373296589,), (1373296592,), (1373296594,), (1373296597,), (1373296624,), (1373296635,), (1373296639,), (1373296640,), (1373296645,), (1373296649,), (1373297014,), (1373297048,), (1373297099,), (1373297143,), (1373297180,), (1373297211,), (1373297450,), (1373297453,), (1373297456,), (1373297458,), (1373297472,), (1373297496,), (1373297657,), (1373297667,), (1373297711,), (1373297758,), (1373297796,), (1373297827,), (1373297966,), (1373297974,), (1373297980,), (1373297982,), (1373297984,), (1373297987,), (1373298011,), (1373298015,), (1373298017,), (1373298019,), (1373298021,), (1373298023,), (1373298041,), (1373298043,), (1373298046,), (1373298048,), (1373298051,), (1373298054,), (1373298078,), (1373298082,), (1373298086,), (1373298088,), (1373298094,), (1373298119,), (1373298395,), (1373298427,), (1373298455,), (1373298485,), (1373298505,), (1373298511,), (1373298791,), (1373299247,), (1373299278,), (1373299305,), (1373299329,), (1373299346,), (1373299476,), (1373299489,), (1373299496,), (1373299497,), (1373299498,), (1373299502,), (1373299538,), (1373299540,), (1373299541,), (1373299542,), (1373299543,), (1373299545,), (1373299795,), (1373299825,), (1373299854,), (1373299879,), (1373299905,), (1373299935,), (1373300086,), (1373300108,), (1373300136,), (1373300150,), (1373300161,), (1373300166,), (1373300186,), (1373300190,), (1373300194,), (1373300198,), (1373300200,), (1373300211,), (1373300492,), (1373300518,), (1373300545,), (1373300568,), (1373300593,), (1373300618,), (1373300757,), (1373300760,), (1373300763,), (1373300779,), (1373300807,), (1373300835,), (1373300927,), (1373301272,), (1373301300,), (1373301326,), (1373301353,), (1373301380,), (1373301415,), (1373301809,), (1373301814,), (1373301818,), (1373301847,), (1373301871,), (1373301920,), (1373302170,), (1373302174,), (1373302180,), (1373302208,), (1373302222,), (1373302227,), (1373302247,), (1373302251,), (1373302254,), (1373302256,), (1373302258,), (1373302262,), (1373302283,), (1373302289,), (1373302295,), (1373302299,), (1373302302,), (1373302305,), (1373302514,), (1373302519,), (1373302523,), (1373302524,), (1373302528,), (1373302560,), (1373302701,), (1373302720,), (1373302727,), (1373302730,), (1373302733,), (1373302736,), (1373302753,), (1373302762,), (1373302793,), (1373302824,), (1373302855,), (1373302882,), (1373302984,), (1373303003,), (1373303013,), (1373303022,), (1373303024,), (1373303037,), (1373303094,), (1373303097,), (1373303100,), (1373303117,), (1373303142,), (1373303166,), (1373303244,), (1373303246,), (1373303248,), (1373303249,), (1373303252,), (1373303256,), (1373303495,), (1373303499,), (1373303503,), (1373303529,), (1373303553,), (1373303575,), (1373303694,), (1373303697,), (1373303700,), (1373303719,), (1373303742,), (1373303767,), (1373304045,), (1373304062,), (1373304066,), (1373304069,), (1373304076,), (1373304078,), (1373304104,), (1373304107,), (1373304110,), (1373304113,), (1373304117,), (1373304122,), (1373304328,), (1373304357,), (1373304386,), (1373304413,), (1373304436,), (1373304462,), (1373304621,), (1373304625,), (1373304654,), (1373304700,), (1373304744,), (1373304789,), (1373305033,), (1373305065,), (1373305092,), (1373305124,), (1373305163,), (1373305173,), (1373305191,), (1373305193,), (1373305195,), (1373305196,), (1373305198,), (1373305199,), (1373305233,), (1373305488,), (1373305507,), (1373305509,), (1373305512,), (1373305516,), (1373305522,), (1373305622,), (1373305644,), (1373305647,), (1373305654,), (1373305677,), (1373305704,), (1373305730,), (1373305879,), (1373305890,), (1373305897,), (1373305928,), (1373305932,), (1373305937,), (1373305959,), (1373305962,), (1373305964,), (1373305965,), (1373305967,), (1373305969,), (1373305993,), (1373305995,), (1373305997,), (1373305999,), (1373306000,), (1373306002,), (1373306235,), (1373306238,), (1373306248,), (1373306274,), (1373306299,), (1373306311,), (1373306400,), (1373306403,), (1373306407,), (1373306410,), (1373306412,), (1373306415,), (1373306436,), (1373306440,), (1373306444,), (1373306446,), (1373306448,), (1373306451,), (1373306631,), (1373306658,), (1373306668,), (1373306670,), (1373306672,), (1373306683,), (1373306817,), (1373306819,), (1373306823,), (1373306824,), (1373306827,), (1373306831,), (1373306855,), (1373306857,), (1373306865,), (1373306893,), (1373306919,), (1373306945,), (1373307077,), (1373307092,), (1373307120,), (1373307125,), (1373307127,), (1373307130,), (1373307240,), (1373307244,), (1373307248,), (1373307253,), (1373307274,), (1373307275,), (1373307352,), (1373307355,), (1373307358,), (1373307373,), (1373307399,), (1373307416,), (1373307618,), (1373307853,), (1373307865,), (1373307873,), (1373307875,), (1373307877,), (1373307905,), (1373307978,), (1373307982,), (1373307986,), (1373307989,), (1373307991,), (1373307995,), (1373308029,), (1373308032,), (1373308036,), (1373308038,), (1373308040,), (1373308044,), (1373308172,), (1373308198,), (1373308225,), (1373308249,), (1373308273,), (1373308303,), (1373308580,), (1373308584,), (1373308587,), (1373308611,), (1373308637,), (1373308660,), (1373309105,), (1373309112,), (1373309116,), (1373309134,), (1373309158,), (1373309178,), (1373309551,), (1373309603,), (1373309647,), (1373309672,), (1373309697,), (1373309724,), (1373309775,), (1373309779,), (1373309782,), (1373309783,), (1373309795,), (1373309820,), (1373310051,), (1373310075,), (1373310080,), (1373310082,), (1373310102,), (1373310132,), (1373310498,), (1373310527,), (1373310551,), (1373310577,), (1373310590,), (1373310594,), (1373310738,), (1373310763,), (1373310773,), (1373310774,), (1373310775,), (1373310777,), (1373310947,), (1373310955,), (1373310958,), (1373310962,), (1373310964,), (1373310968,), (1373311000,), (1373311003,), (1373311006,), (1373311022,), (1373311046,), (1373311070,), (1373311920,), (1373311948,), (1373311976,), (1373312005,), (1373312041,), (1373312086,), (1373312382,), (1373312769,), (1373312798,), (1373312826,), (1373312853,), (1373312887,), (1373312934,), (1373313253,), (1373313428,), (1373313451,), (1373313475,), (1373313491,), (1373313501,), (1373313506,), (1373313700,), (1373313739,), (1373313764,), (1373313788,), (1373313814,), (1373313850,), (1373314260,), (1373314287,), (1373314314,), (1373314364,), (1373314405,), (1373314436,), (1373314744,), (1373314747,), (1373314749,), (1373314751,), (1373314752,), (1373314754,), (1373314912,), (1373314953,), (1373314977,), (1373315017,), (1373315026,), (1373315043,), (1373315332,), (1373315339,), (1373315352,), (1373315372,), (1373315374,), (1373315376,), (1373315400,), (1373315403,), (1373315404,), (1373315406,), (1373315407,), (1373315409,), (1373315445,), (1373315449,), (1373315453,), (1373315456,), (1373315483,), (1373315531,), (1373315793,), (1373315819,), (1373315845,), (1373315858,), (1373315860,), (1373315862,), (1373315996,), (1373316021,), (1373316047,), (1373316073,), (1373316099,), (1373316122,), (1373316226,), (1373316229,), (1373316232,), (1373316234,), (1373316237,), (1373316242,), (1373316398,), (1373316431,), (1373316459,), (1373316485,), (1373316511,), (1373316537,), (1373316700,), (1373316729,), (1373316753,), (1373316779,), (1373316823,), (1373316872,), (1373317192,), (1373317224,), (1373317252,), (1373317257,), (1373317264,), (1373317289,), (1373317453,), (1373317456,), (1373317458,), (1373317459,), (1373317461,), (1373317463,), (1373317483,), (1373317492,), (1373317493,), (1373317494,), (1373317496,), (1373317498,), (1373317650,), (1373318126,), (1373318141,), (1373318142,), (1373318145,), (1373318146,), (1373318149,), (1373318271,), (1373318274,), (1373318276,), (1373318278,), (1373318281,), (1373318284,), (1373318312,), (1373318321,), (1373318343,), (1373318369,), (1373318392,), (1373318417,), (1373318573,), (1373318576,), (1373318579,), (1373318598,), (1373318620,), (1373318625,), (1373318654,), (1373318657,), (1373318660,), (1373318661,), (1373318664,), (1373318668,), (1373318695,), (1373318697,), (1373318700,), (1373318701,), (1373318704,), (1373318711,), (1373318912,), (1373318924,), (1373318948,), (1373318973,), (1373318988,), (1373318990,), (1373319105,), (1373319107,), (1373319109,), (1373319110,), (1373319111,), (1373319113,), (1373319143,), (1373319144,), (1373319146,), (1373319147,), (1373319149,), (1373319154,), (1373319188,), (1373319190,), (1373319192,), (1373319195,), (1373319197,), (1373319200,), (1373319225,), (1373319227,), (1373319228,), (1373319230,), (1373319231,), (1373319233,), (1373319339,), (1373319364,), (1373319388,), (1373319417,), (1373319444,), (1373319470,), (1373319736,), (1373319769,), (1373319798,), (1373319827,), (1373319851,), (1373319876,), (1373320159,), (1373320165,), (1373320169,), (1373320171,), (1373320174,), (1373320177,), (1373320351,), (1373320354,), (1373320360,), (1373320386,), (1373320415,), (1373320425,), (1373320471,), (1373320481,), (1373320490,), (1373320496,), (1373320498,), (1373320502,), (1373320521,), (1373320530,), (1373320533,), (1373320534,), (1373320536,), (1373320539,), (1373320705,), (1373320735,), (1373320760,), (1373320787,), (1373320812,), (1373320835,), (1373320947,), (1373320955,), (1373320968,), (1373320972,), (1373320974,), (1373320979,), (1373321004,), (1373321009,), (1373321012,), (1373321016,), (1373321018,), (1373321022,), (1373321047,), (1373321048,), (1373321050,), (1373321051,), (1373321053,), (1373321055,), (1373321144,), (1373321164,), (1373321168,), (1373321169,), (1373321192,), (1373321205,), (1373321281,), (1373321284,), (1373321293,), (1373321315,), (1373321337,), (1373321353,), (1373321373,), (1373321377,), (1373321384,), (1373321385,), (1373321388,), (1373321391,), (1373321464,), (1373321467,), (1373321469,), (1373321472,), (1373321475,), (1373321479,), (1373321499,), (1373321502,), (1373321506,), (1373321509,), (1373321513,), (1373321517,), (1373321541,), (1373321574,), (1373321578,), (1373321581,), (1373321583,), (1373321586,), (1373321591,), (1373321614,), (1373321623,), (1373321627,), (1373321628,), (1373321630,), (1373321633,), (1373321659,), (1373321671,), (1373321680,), (1373321681,), (1373321684,), (1373321688,), (1373321715,), (1373321717,), (1373321719,), (1373321720,), (1373321722,), (1373321725,), (1373321743,), (1373321746,), (1373321749,), (1373321751,), (1373321755,), (1373321757,), (1373321821,), (1373321826,), (1373321829,), (1373321830,), (1373321832,), (1373321835,), (1373321989,), (1373321992,), (1373321995,), (1373322000,), (1373322024,), (1373322053,), (1373322121,), (1373322141,), (1373322171,), (1373322198,), (1373322209,), (1373322213,), (1373322233,), (1373322237,), (1373322240,), (1373322242,), (1373322245,), (1373322249,), (1373322269,), (1373322272,), (1373322275,), (1373322278,), (1373322281,), (1373322285,), (1373322312,), (1373322319,), (1373322322,), (1373322325,), (1373322329,), (1373322333,), (1373322370,), (1373322744,), (1373322789,), (1373322818,), (1373322844,), (1373322892,), (1373323144,), (1373323151,), (1373323157,), (1373323188,), (1373323234,), (1373323281,), (1373323425,), (1373323431,), (1373323441,), (1373323444,), (1373323446,), (1373323449,), (1373323612,), (1373323640,), (1373323679,), (1373323704,), (1373323730,), (1373323759,), (1373323985,), (1373323989,), (1373323993,), (1373324003,), (1373324034,), (1373324063,), (1373324200,), (1373324205,), (1373324209,), (1373324212,), (1373324214,), (1373324217,), (1373324441,), (1373324471,), (1373324498,), (1373324524,), (1373324549,), (1373324573,), (1373324751,), (1373324773,), (1373324800,), (1373324827,), (1373324851,), (1373324862,), (1373325009,), (1373325015,), (1373325021,), (1373325023,), (1373325025,), (1373325028,), (1373325180,), (1373325208,), (1373325210,), (1373325213,), (1373325218,), (1373325223,), (1373325329,), (1373325425,), (1373325435,), (1373325438,), (1373325439,), (1373325442,), (1373325445,), (1373325476,), (1373325479,), (1373325482,), (1373325484,), (1373325486,), (1373325490,), (1373325529,), (1373325531,), (1373325536,), (1373325540,), (1373325543,), (1373325548,), (1373325577,), (1373325578,), (1373325580,), (1373325581,), (1373325582,), (1373325584,), (1373325622,), (1373325626,), (1373325629,), (1373325631,), (1373325632,), (1373325635,), (1373325665,), (1373325668,), (1373325671,), (1373325673,), (1373325674,), (1373325677,), (1373325707,), (1373325711,), (1373325713,), (1373325717,), (1373325719,), (1373325722,), (1373325744,), (1373325747,), (1373325750,), (1373325751,), (1373325752,), (1373325755,), (1373325786,), (1373325790,), (1373325794,), (1373325796,), (1373325798,), (1373325801,), (1373325913,), (1373325916,), (1373325918,), (1373325919,), (1373325921,), (1373325924,), (1373325942,), (1373325945,), (1373325948,), (1373325950,), (1373325953,), (1373325956,), (1373325982,), (1373326018,), (1373326026,), (1373326036,), (1373326038,), (1373326040,), (1373326043,), (1373326063,), (1373326074,), (1373326083,), (1373326091,), (1373326092,), (1373326094,), (1373326121,), (1373326125,), (1373326128,), (1373326131,), (1373326132,), (1373326136,), (1373326158,), (1373326167,), (1373326174,), (1373326176,), (1373326177,), (1373326179,), (1373326202,), (1373326209,), (1373326212,), (1373326213,), (1373326214,), (1373326216,), (1373326232,), (1373326235,), (1373326238,), (1373326239,), (1373326241,), (1373326244,), (1373326271,), (1373326275,), (1373326279,), (1373326282,), (1373326285,), (1373326289,), (1373326314,), (1373326316,), (1373326318,), (1373326320,), (1373326321,), (1373326324,), (1373326348,), (1373326351,), (1373326354,), (1373326356,), (1373326357,), (1373326361,), (1373326385,), (1373326389,), (1373326392,), (1373326393,), (1373326396,), (1373326400,), (1373326429,), (1373326431,), (1373326432,), (1373326434,), (1373326436,), (1373326439,), (1373326456,), (1373326461,), (1373326466,), (1373326469,), (1373326472,), (1373326478,), (1373326504,), (1373326507,), (1373326510,), (1373326511,), (1373326513,), (1373326516,), (1373326538,), (1373326540,), (1373326543,), (1373326544,), (1373326547,), (1373326551,), (1373326592,), (1373326594,), (1373326596,), (1373326597,), (1373326598,), (1373326601,), (1373326626,), (1373326627,), (1373326628,), (1373326629,), (1373326631,), (1373326634,), (1373326661,), (1373326664,), (1373326667,), (1373326669,), (1373326677,), (1373326679,), (1373326706,), (1373326708,), (1373326731,), (1373326756,), (1373326772,), (1373326775,), (1373326851,), (1373326854,), (1373326858,), (1373326860,), (1373326862,), (1373326865,), (1373327045,), (1373327051,), (1373327058,), (1373327060,), (1373327062,), (1373327065,), (1373327090,), (1373327098,), (1373327102,), (1373327104,), (1373327106,), (1373327109,), (1373327176,), (1373327184,), (1373327188,), (1373327190,), (1373327193,), (1373327197,), (1373327293,), (1373327316,), (1373327345,), (1373327356,), (1373327358,), (1373327365,), (1373327464,), (1373327473,), (1373327490,), (1373327494,), (1373327495,), (1373327499,), (1373327623,), (1373327625,), (1373327628,), (1373327631,), (1373327632,), (1373327636,), (1373327662,), (1373327672,), (1373327678,), (1373327683,), (1373327685,), (1373327688,), (1373327717,), (1373327719,), (1373327721,), (1373327722,), (1373327726,), (1373327753,), (1373328026,), (1373328050,), (1373328073,), (1373328090,), (1373328093,), (1373328095,), (1373328120,), (1373328124,), (1373328126,), (1373328128,), (1373328129,), (1373328132,), (1373328160,), (1373328163,), (1373328166,), (1373328167,), (1373328170,), (1373328172,), (1373328204,), (1373328213,), (1373328217,), (1373328219,), (1373328222,), (1373328226,), (1373328266,), (1373328312,), (1373328316,), (1373328319,), (1373328321,), (1373328322,), (1373328324,), (1373328343,), (1373328348,), (1373328352,), (1373328354,), (1373328356,), (1373328358,), (1373328383,), (1373328387,), (1373328390,), (1373328391,), (1373328392,), (1373328404,), (1373328596,), (1373329157,), (1373329211,), (1373329257,), (1373329304,), (1373329343,), (1373329703,), (1373329753,), (1373329802,), (1373329849,), (1373329895,), (1373329940,), (1373330320,), (1373330367,), (1373330414,), (1373330441,), (1373330466,), (1373330492,), (1373330862,), (1373330889,), (1373330916,), (1373330942,), (1373330967,), (1373331000,), (1373331269,), (1373331296,), (1373331321,), (1373331344,), (1373331368,), (1373331391,), (1373331477,), (1373331481,), (1373331485,), (1373331495,), (1373331522,), (1373331549,), (1373331714,), (1373331874,), (1373331877,), (1373331880,), (1373331881,), (1373331884,), (1373331888,), (1373331909,), (1373331912,), (1373331914,), (1373331916,), (1373331919,), (1373331923,), (1373331982,), (1373332010,), (1373332037,), (1373332062,), (1373332088,), (1373332119,), (1373332326,), (1373332335,), (1373332338,), (1373332339,), (1373332341,), (1373332345,), (1373332361,), (1373332362,), (1373332364,), (1373332366,), (1373332367,), (1373332370,), (1373332398,), (1373332408,), (1373332414,), (1373332417,), (1373332418,), (1373332421,), (1373332581,), (1373332607,), (1373332635,), (1373332662,), (1373332687,), (1373332711,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23072025': {'nb_upload': 78, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25218980]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398] map_info['map_portfolio_photo'] : {25218980: [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398, 1373332370, 1373332367, 1373332366, 1373332364, 1373332362, 1373332361, 1373332345, 1373332341, 1373332339, 1373332338, 1373332335, 1373332326, 1373332119, 1373332088, 1373332062, 1373332037, 1373332010, 1373331982, 1373331923, 1373331919, 1373331916, 1373331914, 1373331912, 1373331909, 1373331888, 1373331884, 1373331881, 1373331880, 1373331877, 1373331874, 1373331714, 1373331549, 1373331522, 1373331495, 1373331485, 1373331481, 1373331477, 1373331391, 1373331368, 1373331344, 1373331321, 1373331296, 1373331269, 1373331000, 1373330967, 1373330942, 1373330916, 1373330889, 1373330862, 1373330492, 1373330466, 1373330441, 1373330414, 1373330367, 1373330320, 1373329940, 1373329895, 1373329849, 1373329802, 1373329753, 1373329703, 1373329343, 1373329304, 1373329257, 1373329211, 1373329157]} final : True mtd_id 4302 list_pids : [1373332711, 1373332687, 1373332662, 1373332635, 1373332607, 1373332581, 1373332421, 1373332418, 1373332417, 1373332414, 1373332408, 1373332398] Looping around the photos to save general results len do output : 1 /25218980Didn'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, '3326663') ('4302', '25218980', '1373332711', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332687', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332662', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332635', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332607', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332581', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332421', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332418', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332417', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332414', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332408', None, None, None, None, None, '3326663') ('4302', None, None, None, None, None, None, None, '3326663') ('4302', '25218980', '1373332398', None, None, None, None, None, '3326663') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25218980', 'None', None, None, None, None, '3326663'), ('4302', '25218980', '1373332711', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332687', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332662', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332635', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332607', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332581', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332421', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332418', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332417', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332414', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332408', None, None, None, None, None, '3326663'), ('4302', '25218980', '1373332398', None, None, None, None, None, '3326663')] time used for this insertion : 0.01688528060913086 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.549620151519775 time spend to save output : 0.01709747314453125 total time spend for step 5 : 4.566717624664307 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 (3326663) 2.12user 2.41system 0:10.70elapsed 42%CPU (0avgtext+0avgdata 161128maxresident)k 0inputs+7584outputs (3major+64162minor)pagefaults 0swaps